if(typeof(PolarRoseBadge) != 'undefined') {

    document.write('<div id="tc_pr_badge"></div>');        
            
    container = document.getElementById('tc_pr_badge');
    container.style.width = "70em";
    container.style.background = "#e5e5e5";
    container.style.padding = "10px 5px 10px 10px";
    container.style.overflow = "hidden";
    container.style.textAlign = "right";

    var h1 = document.createElement('h1');
    // h1.style.width = "90em";
    h1.style.textAlign = "left";
    h1.style.paddingBottom = "5px";
    h1.style.margin = "0px 4px 11px 0px";
    h1.style.borderBottom = "1px solid #999";
    h1.innerHTML = "Who's at TechCrunch40&hellip;";
    
    container.appendChild(h1);
    
    for (var i=0, face; face = PolarRoseBadge.faces[i]; i++) {
        var img = document.createElement('img');
        img.style.display = 'inline';
        img.style.padding = '2px';
        img.style.border = '1px solid #999';
        img.style.margin  = '0px 3px 3px 0px';
        img.style.background = '#fff';
        img.style.cursor = 'pointer';
        img.title = face.name;
        img.linkurl = face.linkUrl;
        img.onmouseover = function(){this.style.background = '#a8ce7a'; this.style.borderColor = '#a8ce7a';}
        img.onmouseout = function(){this.style.background = '#fff'; this.style.borderColor = '#999'}
        img.onclick = function(){window.location = this.linkurl}
        img.src = face.imageUrl;
        img.style[document.all ? 'styleFloat' : 'cssFloat'] = 'left';
        container.appendChild(img);
    }
    
    var foot = document.createElement('a')
    foot.href = "http://www.polarrose.com/events/techcrunch40/";
    foot.style.margin = "10px 7px 6px 0px";
    foot.style[document.all ? 'styleFloat' : 'cssFloat'] = 'right';
    foot.innerHTML = "View more people at TechCrunch40";
    container.appendChild(foot);
 
} else {
    
    document.write('<div id="tc_pr_badge"></div>');        
    container = document.getElementById('tc_pr_badge');
    container.style.background = "#f5f5f5";
    container.innerHTML = "Sorry, service unavailable at the moment. Check the <a href='http://www.polarrose.com/events/techcrunch40/'>TechCrunch40 page</a> at www.polarrose.com!";
}