  
  
 var pollClosed857320 = false;
var PDV_POLLRAND857320 = false;
 
 var PDV_a857320 = "";
 var PDV_o857320 = "";
 var PDV_id857320 = 857320;
 var PDV_pt857320 = 0;
 var PDV_po857320 = 0;
 var PDV_s857320 = 40333;
 var PDV_b857320 = 2;
 var PDV_l857320 = 0;
 var PDV_pr857320 = 1;
 var PDV_w857320 = 857320;
 
 var PDV_sl857320 = 1;
 var PDV_va857320 = 0;
 
var PDV_lnk857320 = 1;



var PDV_def857320 = '#PDI_container857320 .pds-box{width:270px;color:#333;background:#86858a url(http://i.polldaddy.com/polls/pdb01-bottom-left.gif) no-repeat left bottom;font-family:Verdana,Arial,Helvetica,sans-serif;text-align:left} #PDI_container857320 .pds-box-outer{background:url(http://i.polldaddy.com/polls/pdb01-bottom-right.gif) no-repeat right bottom} #PDI_container857320 .pds-box-inner{background:url(http://i.polldaddy.com/polls/pdb01-top-left.gif) no-repeat left top} #PDI_container857320 .pds-box-top{background:url(http://i.polldaddy.com/polls/pdb01-top-right.gif) no-repeat right top;padding:20px 20px 20px 20px} #PDI_container857320 .pds-question{background:url(http://i.polldaddy.com/polls/pdq01-bottom-left.gif) no-repeat left bottom} #PDI_container857320 .pds-question-outer{background:url(http://i.polldaddy.com/polls/pdq01-bottom-right.gif) no-repeat right bottom;padding-bottom:15px} #PDI_container857320 .pds-question-inner{background:url(http://i.polldaddy.com/polls/pdq01-top-left.gif) no-repeat left top} #PDI_container857320 .pds-question-top{background:url(http://i.polldaddy.com/polls/pdq01-top-right.gif) no-repeat right top;padding:15px 15px 0px 15px;font-size:12px;color:#66ccff} #PDI_container857320 .pds-answer{font-size:10px;color:#003366;padding:10px 20px 15px 20px} #PDI_container857320 .pds-answer label{} #PDI_container857320 .pds-radiobutton{} #PDI_container857320 .pds-checkbox{} #PDI_container857320 .pds-textfield{width:100%;font-size:10px;color:#003366;background-color:#ccc;border:1px;border-color:#ccc;padding:1px 1px 1px 1px;margin:5px 0px 0px 0px} #PDI_container857320 .pds-answer-feedback{background-color:#003366;padding:0px 0px 0px 0px;height:18px;margin:2px 0px 5px 0px} #PDI_container857320 .pds-answer-feedback-bar{background:url(http://i.polldaddy.com/polls/pd01-bargif.gif) repeat-x;margin:3px;padding:0px;height:12px;border:0px} #PDI_container857320 .pds-answer-feedback img{background:url(http://i.polldaddy.com/polls/pd01-bargif.gif) repeat-x;margin:3px;padding:0px;height:12px;border:0px} #PDI_container857320 .pds-vote{font-size:9px;color:#66ccff;line-height:17px;padding:0px 20px 10px 20px} #PDI_container857320 .pds-votebutton-outer{height:61px} #PDI_container857320 .pds-vote a{font-size:9px;color:#666;text-decoration:none;border-top:1px;border-bottom:1px;border-top-color:#ccc;border-bottom-color:#ccc;border-top-style:solid;border-bottom-style:solid;padding:2px 0px 2px 0px} #PDI_container857320 input.pds-votebutton{width:61px;height:61px;background:url(http://i.polldaddy.com/polls/pd01-votebutton.gif) no-repeat;outline:none;float:right} #PDI_container857320 input.pds-votebutton:hover{background:url(http://i.polldaddy.com/polls/pd01-votebutton.gif) no-repeat 0 -60px} #PDI_container857320 input.pds-votebutton-pack{float:right;font-size:10px} #PDI_container857320 .pds-totalvotes-outer{} #PDI_container857320 .pds-totalvotes-inner{font-size:10px;color:#66ccff;background-color:#666;padding:3px 6px 3px 3px;margin:0px 0px 10px 0px;text-transform:uppercase;letter-spacing:1px}';

var PDV_POLL_q857320 = 'What did you think of the 2008 Summer Olympics?'; var PDV_POLL_medType857320 = '0'; var PDV_POLL_medID857320 = '';
var PDV_A857320 = new Array();


  PDV_A857320[0] = new Array(4); PDV_A857320[0][0] = "4479359"; PDV_A857320[0][1] = "Best ever. Michael Phelps is my hero.";   PDV_A857320[0][2] = "0"; PDV_A857320[0][3] = "";

  PDV_A857320[1] = new Array(4); PDV_A857320[1][0] = "4479360"; PDV_A857320[1][1] = "I watched, but it didn?t hold my interest like some previous games. ";   PDV_A857320[1][2] = "0"; PDV_A857320[1][3] = "";

  PDV_A857320[2] = new Array(4); PDV_A857320[2][0] = "4479361"; PDV_A857320[2][1] = "I avoided it because I object to China?s policies. ";   PDV_A857320[2][2] = "0"; PDV_A857320[2][3] = "";

  PDV_A857320[3] = new Array(4); PDV_A857320[3][0] = "4479362"; PDV_A857320[3][1] = "The good stuff was too late at night for me. ";   PDV_A857320[3][2] = "0"; PDV_A857320[3][3] = "";

  PDV_A857320[4] = new Array(4); PDV_A857320[4][0] = "4479363"; PDV_A857320[4][1] = "I didn?t care to watch it.";   PDV_A857320[4][2] = "0"; PDV_A857320[4][3] = "";


var PDV_l1_857320 = 'View Results';
var PDV_l2_857320 = 'Other:';
var PDV_l3_857320  = '';

  
var PDV_l4_857320 = 'Please choose an answer first!';


//v2.61 11/Nov/09

if (pollClosed857320 == false)
 {
    var PDV_server857320 = 'http://polls.polldaddy.com';
    var AA857320 = new Array();
    var PDV_html857320 = '<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form857320" id="PDI_form857320"><div class="pds-box"><div class="pds-box-outer"><div class="pds-box-inner"><div class="pds-box-top"><div class="pds-question"><div class="pds-question-outer"><div class="pds-question-inner"><div class="pds-question-top">' + media857320(PDV_POLL_medType857320, PDV_POLL_medID857320) + ' ' + unescape_HTML_857320( PDV_POLL_q857320 ) + '</div></div></div></div><div class="pds-answer"><span id="pds-answer857320"></span>';
    if (PDV_po857320 == 1)
    {
		PDV_html857320 += '<span class="pds-answer-group">';
		
        if (PDV_pt857320 == 0)
        {
            PDV_html857320 += '<span class="pds-answer-input"><input type="radio" name="PDI_answer857320" id="PDI_answerOther857320" value="other" class="pds-radiobutton"/></span>';
        }
        PDV_html857320 += '<label for="PDI_answerOther857320" class="pds-other-label"><span class="pds-answer-span">' + PDV_l2_857320 + '</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText857320" name="PDI_OtherText857320" onclick="PDI_checkOther857320();" onchange="PDI_checkOther857320(true);" /></span>';

		PDV_html857320 += '<span class="pds-clear"></span>';
		PDV_html857320 += '</span>';
    }

    PDV_html857320 += '</div><div class="pds-vote"><div class="pds-votebutton-outer">';

    if ( PDV_l3_857320 == '' )
    {
		PDV_l3_857320 = 'Vote';
    }
	
	if ( PDV_s857320 < 99 || PDV_def857320.indexOf('input.pds-votebutton') != -1 )	
	{
		if (PDV_l3_857320 == 'Vote' || PDV_l3_857320 == '')
	    {
	        PDV_html857320 += '<input type="button" class="pds-votebutton" style="border:none;cursor: pointer;" src="http://i.polldaddy.com/polls/spacer.gif" onclick="PD_vote857320(0);">';
	    }
	    else
	    {
	        PDV_html857320 += '<input type="button" class="pds-votebutton-pack" value="' + PDV_l3_857320 + '"  onclick="PD_vote857320(0);" />';
	    }
	}
	else
	{
		PDV_html857320 += '<a href="javascript:PD_vote857320(0);" id="pd-vote-button857320" class="pds-vote-button"><span>' + PDV_l3_857320 + '</span></a>';
	}

	PDV_html857320 += '<span class="pds-links">';

    if (PDV_pr857320 == 2) {
        PDV_html857320 += '<br/>';
    }
    else {
        PDV_html857320 += '<a href="javascript:PD_vote857320(1);" class="pds-view-results">' + PDV_l1_857320 + '</a><br/>';
    }

	if( typeof PDV_share857320 != "undefined") {
		if (PDV_share857320 == 1 ) {
			PDV_html857320 += '<a class="a2a_dd pds-share"  href="javascript:">' + PDV_l12_857320 + '</a>';
		}
	}
	
    if (PDV_lnk857320 == 1) {
        PDV_html857320 += '<a href="http://www.polldaddy.com" target="_blank" class="pds-pd-link">Polldaddy.com</a>';
    }

	PDV_html857320 += '<span class="pds-clear"></span>';
	PDV_html857320 += '</span><span class="pds-clear"></span>';
	
    PDV_html857320 += '</div></div></div></div></div></div></div>';

    for (PDV_x = 0; PDV_x < PDV_A857320.length; PDV_x++)
    {
        if (PDV_pt857320 == 0)
        {
            AA857320[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer' + PDV_A857320[PDV_x][0] + '" value="' + PDV_A857320[PDV_x][0] + '" name="PDI_answer857320" /></span><label for="PDI_answer' + PDV_A857320[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_857320( PDV_A857320[PDV_x][1] ) + '</span></label>' + media857320(PDV_A857320[PDV_x][2], PDV_A857320[PDV_x][3]) + '<span class="pds-clear"></span><br/></span>';
        }
        else
        {
            AA857320[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer' + PDV_A857320[PDV_x][0] + '" value="' + PDV_A857320[PDV_x][0] + '" name="PDI_answer' + PDV_A857320[PDV_x][0] + '" onclick="javascript:PDF_mc857320(this);" /></span><label for="PDI_answer' + PDV_A857320[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_857320( PDV_A857320[PDV_x][1] ) + '</span></label>' + media857320(PDV_A857320[PDV_x][2], PDV_A857320[PDV_x][3]) + '<span class="pds-clear"></span><br/></span>';
        }
    }
}

function PDF_mc857320(obj){
	if ( PDV_pt857320 > 1 ){
		var nc = 0;
		for (i = 0; i < AA857320.length; i++)
	    {
	        r = document.getElementById(AA857320[i].substring(AA857320[i].indexOf('id=') + 4, AA857320[i].indexOf('"', AA857320[i].indexOf('id=') + 4)));
	        if (r.type == "checkbox" && r.checked) { nc += 1; }
	    }
	
		if (PDV_po857320 == 1)
	    {
			var otherText = document.getElementById("PDI_OtherText857320").value;
			if( otherText.length > 0 ) { nc += 1; }	
		}		
		
		if ( nc > PDV_pt857320 ){
			obj.checked = false;
			obj.disabled = true;
		}
		
		if ( nc >= PDV_pt857320 ){
			for (i = 0; i < AA857320.length; i++)
		    {
		        r = document.getElementById(AA857320[i].substring(AA857320[i].indexOf('id=') + 4, AA857320[i].indexOf('"', AA857320[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = true; }
		    }
		}
		else{
			if (PDV_po857320 == 1) { document.getElementById("PDI_OtherText857320").disabled=false; }
			for (i = 0; i < AA857320.length; i++)
		    {
		        r = document.getElementById(AA857320[i].substring(AA857320[i].indexOf('id=') + 4, AA857320[i].indexOf('"', AA857320[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = false; }
		    }
		}
	}
}

function PDF_a857320()
 {
    PDF_o857320();
    var r;
    if (PDV_pt857320 == 0)
    {
    	for (var i = 0; i < AA857320.length; i++)
        {
            r = document.getElementById(AA857320[i].substring(AA857320[i].indexOf('id=') + 4, AA857320[i].indexOf('"', AA857320[i].indexOf('id=') + 4)));
            if (r.checked) {
                return r.value + ",";
            }
        }
        r = document.getElementById("PDI_answerOther857320");
        if (r) {
            if (r.checked) {
                return r.value + ",";
            } else {
                return '';
            }
        } else {
            return "";
        }
    }
    else
    {
        for (i = 0; i < AA857320.length; i++)
        {
            r = document.getElementById(AA857320[i].substring(AA857320[i].indexOf('id=') + 4, AA857320[i].indexOf('"', AA857320[i].indexOf('id=') + 4)));
            if (r.type == "checkbox" && r.checked)
            {
                PDV_a857320 = PDV_a857320 + r.value + ",";
            }
        }
        return PDV_a857320;
    }
}
function PDF_o857320(r) {
    if (PDV_po857320 == 1) {
        PDV_o857320 = document.getElementById("PDI_OtherText857320").value;
    }
}
function PDI_checkOther857320( lostfocus )
 {
	var reset = false;
	if( lostfocus ){
		var ot = document.getElementById("PDI_OtherText857320").value;
		if( ot.length == 0 ){ reset = true; }
	}
	
    if (PDV_pt857320 == 0)
    {
		if(lostfocus && reset){ document.getElementById("PDI_answerOther857320").checked = false; }
		else{ document.getElementById("PDI_answerOther857320").checked = true; }
    }
	else if ( PDV_pt857320 > 1 ){
		var nc = 1;
		obj = document.getElementById("PDI_OtherText857320");
		if(lostfocus && reset){ nc = 0; }
		
		for (i = 0; i < AA857320.length; i++)
	    {
	        r = document.getElementById(AA857320[i].substring(AA857320[i].indexOf('id=') + 4, AA857320[i].indexOf('"', AA857320[i].indexOf('id=') + 4)));
	        if (r.type == "checkbox" && r.checked) { nc += 1; }
	    }

		if ( nc > PDV_pt857320 ){
			obj.disabled=true;
			obj.value='';
			for (i = 0; i < AA857320.length; i++)
		    {
		        r = document.getElementById(AA857320[i].substring(AA857320[i].indexOf('id=') + 4, AA857320[i].indexOf('"', AA857320[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = true; }
		    }
		}
		else if( nc < PDV_pt857320 ){
			obj.disabled=false;
			for (i = 0; i < AA857320.length; i++)
		    {
		        r = document.getElementById(AA857320[i].substring(AA857320[i].indexOf('id=') + 4, AA857320[i].indexOf('"', AA857320[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = false; }
		    }
		}
	}
}
function PD_vote857320(R)
 {
    var randomnumber = Math.floor(Math.random() * 11);
    if (R == 1)
    {
        var s = document.createElement("SCRIPT");
        s.charset = "utf-8";
        s.src = PDV_server857320 + "/vote-js.php?s=" + PDV_s857320 + "&vr=1&b=" + PDV_b857320 + "&p=" + PDV_id857320 + "&l=" + PDV_l857320 + "&sl=" + PDV_sl857320 + "&pr=" + PDV_pr857320 + "&pt=" + PDV_pt857320 + "&va=" + PDV_va857320 + "&cookie=" + PD_ck857320 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w857320;
        var h = document.getElementsByTagName("head").item(0);
        h.appendChild(s);
    }
    else
    {
        if (PDV_b857320 > 0)
        {
            Set_Cookie857320('PD_poll_' + PDV_id857320, 'true', 0, '/', '', '');
        }
        PDV_a857320 = '';
        PDV_a857320 = PDF_a857320(document.getElementById("PDI_form857320"));
        if (PDV_a857320.length == 0 && PDV_o857320.length == 0)
        {
            alert(PDV_l4_857320);
        }
        else
        {
			if ( PDV_def857320.indexOf('input.pds-votebutton') == -1 ) {
				document.getElementById('pd-vote-button857320').className = 'pds-vote-button-load';
			}
	
            var s = document.createElement("SCRIPT");
            s.charset = "utf-8";
            s.src = PDV_server857320 + "/vote-js.php?s=" + PDV_s857320 + "&b=" + PDV_b857320 + "&p=" + PDV_id857320 + "&a=" + PDV_a857320 + "&o=" + PDV_o857320 + "&l=" + PDV_l857320 + "&sl=" + PDV_sl857320 + "&pr=" + PDV_pr857320 + "&pt=" + PDV_pt857320 + "&va=" + PDV_va857320 + "&cookie=" + PD_ck857320 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w857320;
            var h = document.getElementsByTagName("head").item(0);
            h.appendChild(s);
        }
    }
}
var PD_pollString857320 = PDV_html857320;
var PD_ck857320 = 0;

function PDV_rand857320(myArray) {
    var i = myArray.length;
    if (i == 0) return false;
    while (--i) {
        var j = Math.floor(Math.random() * (i + 1));
        var tempi = myArray[i];
        var tempj = myArray[j];
        myArray[i] = tempj;
        myArray[j] = tempi;
    }
    return myArray;
}


function PDV_go857320()
 {
    if (!document.getElementById('poll_style857320'))
    {
        fileref = document.createElement("style");
        fileref.setAttribute("type", "text/css");
        fileref.setAttribute("id", "poll_style857320");
        if (fileref.styleSheet)
        // IE
        {
            fileref.styleSheet.cssText = PDV_def857320;
        }
        else
        // the world
        {
            fileref.appendChild(document.createTextNode(PDV_def857320));
        }
        document.getElementsByTagName("head").item(0).appendChild(fileref);
    }
    if (!document.getElementById('PDI_container857320'))
    {
        document.write('<a name="pd_a_857320" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container857320"></div>');
    }
    if (Get_Cookie857320('PD_poll_' + PDV_id857320) == 'true')
    {
        PD_ck857320 = 1;
    }

    document.getElementById('PDI_container857320').innerHTML = PD_pollString857320 + '<img src="http://pixel.quantserve.com/pixel/p-ab3gTb8xb3dLg.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>';

    if (PDV_POLLRAND857320) {
        AA857320 = PDV_rand857320(AA857320);
    }
    y857320 = '';
    for (x857320 = 0; x857320 < AA857320.length; x857320++) {
        y857320 = y857320 + AA857320[x857320];
    }
    document.getElementById('pds-answer857320').innerHTML = y857320;
	share857320();
}
function Set_Cookie857320(name, value, expires, path, domain, secure)
 {
    var today = new Date();
    today.setTime(today.getTime());
    if(typeof(PDV_expire857320) !== 'undefined') {
    	expires = parseInt( PDV_expire857320 );
    }
    if (expires>0) {
        expires = expires * 1000;
    } else{
    	expires = 60 * 60 * 24 * 30 * 1000;
    }

    var expires_date = new Date(today.getTime() + (expires));

    document.cookie = name + "=" + escape(value) +
    ((expires) ? ";expires=" + expires_date.toGMTString() : "") +
    ((path) ? ";path=" + path: "") +
    ((domain) ? ";domain=" + domain: "") +
    ((secure) ? ";secure": "");
}

function Get_Cookie857320(check_name)
 {
    var a_all_cookies = document.cookie.split(';');
    var a_temp_cookie = '';
    var cookie_name = '';
    var cookie_value = '';
    var b_cookie_found = false;

    for (i = 0; i < a_all_cookies.length; i++)
    {
        a_temp_cookie = a_all_cookies[i].split('=');
        cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
        if (cookie_name == check_name)
        {
            b_cookie_found = true;
            if (a_temp_cookie.length > 1)
            {
                cookie_value = unescape(a_temp_cookie[1].replace(/^\s+|\s+$/g, ''));
            }
            return cookie_value;
            break;
        }
        a_temp_cookie = null;
        cookie_name = '';
    }
    if (!b_cookie_found)
    {
        return null;
    }
}

if (pollClosed857320 == false)
 {
    PDV_go857320();
}

function st_go857320(a)
 {
    var i;
    var u = document.location.protocol + '//stats.polldaddy.com/p.gif?host=' + escape(document.location.host) + '&rand=' + Math.random();

    for (i in a)
    {
        u = u + '&' + i + '=' + escape(a[i]);
    }
    u = u + '&ref=' + escape(document.referrer);
    var TrkImg = new Image();
    TrkImg.src = u;
}

st857320 = {
    "p": "857320",
    "v": "0"
};

st_go857320(st857320);

function share857320()
{
	if( typeof PDV_share857320 != "undefined") {
		if (PDV_share857320 == 1 ) {
			a2a_linkname = 'Poll: ' + PDV_POLL_q857320;
			a2a_linkurl = document.location + '#pd_a_857320';
			a2a_track_links = 'custom';
			a2a_track_links_key = document.location + '#pd_a_857320';
			a2a_onclick = 1;
			
	        var s = document.createElement("SCRIPT");
	        s.charset = "utf-8";
	        s.src = "http://static.addtoany.com/menu/page.js";
	        var h = document.getElementsByTagName("head").item(0);
	        h.appendChild(s);
		}
	}
}

function media857320(medType, medID)
 {
    switch (medType)
    {
    case '0':
        {
            return '';
            break;
        }
    case '1':
        {
            return '<div style="padding: 10px 0px;"><a target="_blank" href="http://services.nirvanix.com/polldaddy/polldaddy/images/' + medID + '.jpg"><img border="0" title="Click to enlarge" src="http://services.nirvanix.com/polldaddy/polldaddy/images/' + medID + '_sml.jpg"></a></div>';
            break;
        }
    case '2':
        {
            return '<div style="padding: 10px 0px;"><object width="200" height="161"><param name="movie" value="http://www.youtube.com/v/' + medID + '&amp;hl=en&amp;fs=1"><param name="allowFullScreen" value="true"><embed type="application/x-shockwave-flash" allowfullscreen="true" width="200" height="161" src="http://www.youtube.com/v/' + medID + '&amp;hl=en&amp;fs=1"></embed></object></div>';
            break;
        }
    case '3':
        {
            return '<div style="padding: 10px 0px;"><object width="200" height="163"><param name="movie" value="http://seesmic.com/embeds/wrapper.swf"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="flashVars" value="video=' + medID + '&amp;version=threadedplayer"><embed src="http://seesmic.com/embeds/wrapper.swf" type="application/x-shockwave-flash" allowFullScreen="true" wmode="transparent" allowScriptAccess="always" width="200" height="163" flashvars="video=' + medID + '&amp;version=threadedplayer"></embed></object></div>';
            break;
        }
    }
}

function unescape_HTML_857320(html) {
	var htmlNode = document.createElement("DIV");
	
	htmlNode.innerHTML = html;
	
	if(htmlNode.innerText !== undefined)
		return htmlNode.innerText; // IE
	
	return htmlNode.textContent; // FF
}

if (pollClosed857320 == true)
{
	share857320();
}