var PDV_POLL_q2131209 = 'No site \"Juntos Construímos o Futuro\", Fernanda Asseiceira colocou a seguinte sondagem: - QUAL DOS PROJECTOS CONSIDERA MAIS PRIORITÁRIO PARA O CONCELHO?';var PDV_share2131209 = 1;var PDV_A2131209 = new Array();PDV_A2131209[0] = new Array(4); PDV_A2131209[0][0] = "10525158"; PDV_A2131209[0][1] = "Resolução do problema ambiental";   PDV_A2131209[0][2] = "0"; PDV_A2131209[0][3] = "";PDV_A2131209[1] = new Array(4); PDV_A2131209[1][0] = "10525159"; PDV_A2131209[1][1] = "Desenvolvimento económico";   PDV_A2131209[1][2] = "0"; PDV_A2131209[1][3] = "";PDV_A2131209[2] = new Array(4); PDV_A2131209[2][0] = "10525160"; PDV_A2131209[2][1] = "Planeamento e ordenamento do território";   PDV_A2131209[2][2] = "0"; PDV_A2131209[2][3] = "";PDV_A2131209[3] = new Array(4); PDV_A2131209[3][0] = "10525161"; PDV_A2131209[3][1] = "Plano Directo Municioal";   PDV_A2131209[3][2] = "0"; PDV_A2131209[3][3] = "";PDV_A2131209[4] = new Array(4); PDV_A2131209[4][0] = "10525162"; PDV_A2131209[4][1] = "Apoio e reforço da rede social";   PDV_A2131209[4][2] = "0"; PDV_A2131209[4][3] = "";PDV_A2131209[5] = new Array(4); PDV_A2131209[5][0] = "10525163"; PDV_A2131209[5][1] = "Reordenamento da rede escolar";   PDV_A2131209[5][2] = "0"; PDV_A2131209[5][3] = "";PDV_A2131209[6] = new Array(4); PDV_A2131209[6][0] = "10525164"; PDV_A2131209[6][1] = "Desenvolvimento do Turismo";   PDV_A2131209[6][2] = "0"; PDV_A2131209[6][3] = "";PDV_A2131209[7] = new Array(4); PDV_A2131209[7][0] = "10525165"; PDV_A2131209[7][1] = "Apoio à dinamização da actividade desportiva";   PDV_A2131209[7][2] = "0"; PDV_A2131209[7][3] = "";PDV_A2131209[8] = new Array(4); PDV_A2131209[8][0] = "10525166"; PDV_A2131209[8][1] = "Elevação dos índices de segurança";   PDV_A2131209[8][2] = "0"; PDV_A2131209[8][3] = "";PDV_A2131209[9] = new Array(4); PDV_A2131209[9][0] = "10525167"; PDV_A2131209[9][1] = "Melhoria das condições de acessibilidade";   PDV_A2131209[9][2] = "0"; PDV_A2131209[9][3] = "";var pollClosed2131209 = true;if(!document.getElementById('poll_style2131209'))
    {
    fileref=document.createElement("style");
    fileref.setAttribute("type", "text/css");
    fileref.setAttribute("id", "poll_style2131209");
    var def = '#PDI_container2131209 .pds-box {width: 270px;color: #333;background: #86858a url(http://i.polldaddy.com/polls/pdb01-bottom-left.gif) no-repeat left bottom;font-family: Helvetica, Arial, sans-serif;text-align: left;} #PDI_container2131209 .pds-box A{outline: none;} #PDI_container2131209 .pds-clear{display: block;clear: both;} #PDI_container2131209 .pds-box-outer {background: url(http://i.polldaddy.com/polls/pdb01-bottom-right.gif) no-repeat right bottom;} #PDI_container2131209 .pds-box-inner {background: url(http://i.polldaddy.com/polls/pdb01-top-left.gif) no-repeat left top;} #PDI_container2131209 .pds-box-top {background: url(http://i.polldaddy.com/polls/pdb01-top-right.gif) no-repeat right top;padding: 20px;} #PDI_container2131209 .pds-question {background: url(http://i.polldaddy.com/polls/pdq01-bottom-left.gif) no-repeat left bottom;} #PDI_container2131209 .pds-question-outer {background: url(http://i.polldaddy.com/polls/pdq01-bottom-right.gif) no-repeat right bottom;padding-bottom: 15px;} #PDI_container2131209 .pds-question-inner {background: url(http://i.polldaddy.com/polls/pdq01-top-left.gif) no-repeat left top;} #PDI_container2131209 .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: 13px;line-height: 140%;color: #ECBF00;} #PDI_container2131209 .pds-answer {padding: 10px 0px 10px 0px;border-bottom: 1px dashed #aaa;} #PDI_container2131209 .pds-answer-group{display: block;padding: 8px 0px;} #PDI_container2131209 .pds-answer-group BR{display: none;} #PDI_container2131209 .pds-answer-input{display: block;float:left;width: 25px;} #PDI_container2131209 .pds-input-label{display: block;float:left;width: 195px;cursor: pointer;padding-top: 2px;} #PDI_container2131209 .pds-answer label{color: #555;font-size: 12px;line-height: 140%;position: relative;font-family: Helvetica, Arial, sans-serif;} #PDI_container2131209 .pds-answer-other{padding: 0px 0px 0px 10px;} #PDI_container2131209 .pds-textfield {color: #333;background: #ccc;border: 1px solid #999;font-size: 11px;padding: 2px;width: 145px;} #PDI_container2131209 .pds-answer-other BR{display: none;} #PDI_container2131209 .pds-other-label{padding: 3px 0px 0px 0px;display: block;float: left;cursor: pointer;} #PDI_container2131209 .pds-feedback-group{display: block;padding: 8px 0px 8px 0px;} #PDI_container2131209 .pds-feedback-label{display: block;padding: 0px 0px 5px 0px;} #PDI_container2131209 .pds-feedback-per{font-weight: bold;} #PDI_container2131209 .pds-feedback-votes{font-weight: normal;} #PDI_container2131209 .pds-answer-feedback {background-color: #ccc;padding: 2px;height:12px;} #PDI_container2131209 .pds-answer-feedback-bar {font-size: 2px;background: url(http://i.polldaddy.com/polls/pd01-bargif.gif) repeat-x;height:12px;border-left: 1px solid #be8c2e;border-right: 1px solid #be8c2e;} #PDI_container2131209 .pds-vote {} #PDI_container2131209 .pds-votebutton-outer {} #PDI_container2131209 .pds-vote BR{display: none;} #PDI_container2131209 .pds-vote-button {display: block;width: 61px;height: 61px;background: url(http://i.polldaddy.com/polls/pd01-votebutton.gif) no-repeat;cursor: pointer;text-indent: -99999px;float: right;} #PDI_container2131209 .pds-vote-button:hover{background: url(http://i.polldaddy.com/polls/pd01-votebutton.gif) no-repeat 0 -60px;} #PDI_container2131209 .pds-vote-button-load {display: block;width: 61px;height: 61px;cursor: pointer;text-indent: -99999px;float: right;background:#ededed url(http://i.polldaddy.com/polls/vote-loader-ededed.gif) no-repeat scroll 50% 50%;} #PDI_container2131209 .pds-vote-button-load SPAN{visibility: hidden;} #PDI_container2131209 .pds-vote {padding: 15px 0px 15px 0px;} #PDI_container2131209 .pds-links{display: block;float: left;padding: 0px 0px;} #PDI_container2131209 .pds-links-back{display: block;float: left;padding: 0px 0px;} #PDI_container2131209 .pds-links A {font-family: Helvetica, Arial, sans-serif;font-size:12px;color: #555;line-height: 20px;text-decoration: none;padding: 0px 15px 0px 0px;display: block;} #PDI_container2131209 .pds-links-back A {font-family: Helvetica, Arial, sans-serif;font-size:12px;color: #555;line-height: 20px;text-decoration: none;padding: 0px 15px 0px 0px;display: block;} #PDI_container2131209 .pds-pd-link{padding: 0px;} #PDI_container2131209 .pds-links A:hover {text-decoration: underline;color: #222;} #PDI_container2131209 .pds-links-back A:hover {text-decoration: underline;color: #222;} #PDI_container2131209 .pds-comments SPAN{font-weight: normal;} #PDI_container2131209 .pds-total-votes{padding: 10px 0px 5px 0px;position: relative;font-family: Helvetica, Arial, sans-serif;color: #555;font-size:12px;} #PDI_container2131209 .pds-total-votes SPAN{font-weight: bold;}';
    if (fileref.styleSheet) // IE
    {fileref.styleSheet.cssText = def;}
    else // the world
    {fileref.appendChild(document.createTextNode(def));}
    document.getElementsByTagName("head").item(0).appendChild(fileref);
    }
    if(!document.getElementById('PDI_container2131209')){document.write('<a xmlns:pd="http://api.polldaddy.com/pdapi.xsd" name="pd_a_2131209"></a><div xmlns:pd="http://api.polldaddy.com/pdapi.xsd" class="PDS_Poll" id="PDI_container2131209"></div>');};document.getElementById('PDI_container2131209').innerHTML = '<div xmlns:pd="http://api.polldaddy.com/pdapi.xsd" 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">' + unescape_HTML_2131209( PDV_POLL_q2131209 ) + ' (Sondagem Encerrada)</div></div></div></div><div class="pds-answer"><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback1"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[0][1] ) + '</span> <span class="pds-feedback-per">18% </span> <span class="pds-feedback-votes">(15 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback1"><div class="pds-answer-feedback-bar" style="width:18%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback2"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[1][1] ) + '</span> <span class="pds-feedback-per">44% </span> <span class="pds-feedback-votes">(36 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback2"><div class="pds-answer-feedback-bar" style="width:44%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback3"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[2][1] ) + '</span> <span class="pds-feedback-per">5% </span> <span class="pds-feedback-votes">(4 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback3"><div class="pds-answer-feedback-bar" style="width:5%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback4"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[3][1] ) + '</span> <span class="pds-feedback-per">7% </span> <span class="pds-feedback-votes">(6 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback4"><div class="pds-answer-feedback-bar" style="width:7%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback5"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[4][1] ) + '</span> <span class="pds-feedback-per">0% </span> <span class="pds-feedback-votes">(0 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback5"><div class="pds-answer-feedback-bar" style="width:0%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback6"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[5][1] ) + '</span> <span class="pds-feedback-per">1% </span> <span class="pds-feedback-votes">(1 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback6"><div class="pds-answer-feedback-bar" style="width:1%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback7"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[6][1] ) + '</span> <span class="pds-feedback-per">11% </span> <span class="pds-feedback-votes">(9 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback7"><div class="pds-answer-feedback-bar" style="width:11%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback8"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[7][1] ) + '</span> <span class="pds-feedback-per">1% </span> <span class="pds-feedback-votes">(1 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback8"><div class="pds-answer-feedback-bar" style="width:1%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback9"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[8][1] ) + '</span> <span class="pds-feedback-per">5% </span> <span class="pds-feedback-votes">(4 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback9"><div class="pds-answer-feedback-bar" style="width:5%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><div class="pds-feedback-group"><label class="pds-feedback-label" for="PDI_feedback10"><span class="pds-answer-text">' + unescape_HTML_2131209( PDV_A2131209[9][1] ) + '</span> <span class="pds-feedback-per">7% </span> <span class="pds-feedback-votes">(6 votos)</span></label><div class="pds-answer-feedback" id="PDI_feedback10"><div class="pds-answer-feedback-bar" style="width:7%;"></div></div><span class="pds-clear" style="display: block;clear: both;"></span></div><span class="pds-clear" style="display: block;clear: both;"></span><div class="pds-total-votes">Total Votos: <span>82</span></div></div><div class="pds-vote"><div class="pds-totalvotes-outer"><span class="pds-links-back"><a class="a2a_dd pds-share" href="javascript:"></a><br><a href="http://www.polldaddy.com" target="_blank" class="pds-pd-link">PollDaddy.com</a><span class="pds-clear" style="display: block;clear: both;"></span></span><span class="pds-clear" style="display: block;clear: both;"></span></div></div></div></div></div></div><img xmlns:pd="http://api.polldaddy.com/pdapi.xsd" src="http://pixel.quantserve.com/pixel/p-ab3gTb8xb3dLg.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast">';

//v2.61 11/Nov/09

if (pollClosed2131209 == false)
 {
    var PDV_server2131209 = 'http://polls.polldaddy.com';
    var AA2131209 = new Array();
    var PDV_html2131209 = '<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form2131209" id="PDI_form2131209"><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">' + media2131209(PDV_POLL_medType2131209, PDV_POLL_medID2131209) + ' ' + unescape_HTML_2131209( PDV_POLL_q2131209 ) + '</div></div></div></div><div class="pds-answer"><span id="pds-answer2131209"></span>';
    if (PDV_po2131209 == 1)
    {
		PDV_html2131209 += '<span class="pds-answer-group">';
		
        if (PDV_pt2131209 == 0)
        {
            PDV_html2131209 += '<span class="pds-answer-input"><input type="radio" name="PDI_answer2131209" id="PDI_answerOther2131209" value="other" class="pds-radiobutton"/></span>';
        }
        PDV_html2131209 += '<label for="PDI_answerOther2131209" class="pds-other-label"><span class="pds-answer-span">' + PDV_l2_2131209 + '</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText2131209" name="PDI_OtherText2131209" onclick="PDI_checkOther2131209();" onchange="PDI_checkOther2131209(true);" /></span>';

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

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

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

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

    if (PDV_pr2131209 == 2) {
        PDV_html2131209 += '<br/>';
    }
    else {
        PDV_html2131209 += '<a href="javascript:PD_vote2131209(1);" class="pds-view-results">' + PDV_l1_2131209 + '</a><br/>';
    }

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

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

    for (PDV_x = 0; PDV_x < PDV_A2131209.length; PDV_x++)
    {
        if (PDV_pt2131209 == 0)
        {
            AA2131209[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer' + PDV_A2131209[PDV_x][0] + '" value="' + PDV_A2131209[PDV_x][0] + '" name="PDI_answer2131209" /></span><label for="PDI_answer' + PDV_A2131209[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_2131209( PDV_A2131209[PDV_x][1] ) + '</span></label>' + media2131209(PDV_A2131209[PDV_x][2], PDV_A2131209[PDV_x][3]) + '<span class="pds-clear"></span><br/></span>';
        }
        else
        {
            AA2131209[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer' + PDV_A2131209[PDV_x][0] + '" value="' + PDV_A2131209[PDV_x][0] + '" name="PDI_answer' + PDV_A2131209[PDV_x][0] + '" onclick="javascript:PDF_mc2131209(this);" /></span><label for="PDI_answer' + PDV_A2131209[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_2131209( PDV_A2131209[PDV_x][1] ) + '</span></label>' + media2131209(PDV_A2131209[PDV_x][2], PDV_A2131209[PDV_x][3]) + '<span class="pds-clear"></span><br/></span>';
        }
    }
}

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

function PDF_a2131209()
 {
    PDF_o2131209();
    var r;
    if (PDV_pt2131209 == 0)
    {
    	for (var i = 0; i < AA2131209.length; i++)
        {
            r = document.getElementById(AA2131209[i].substring(AA2131209[i].indexOf('id=') + 4, AA2131209[i].indexOf('"', AA2131209[i].indexOf('id=') + 4)));
            if (r.checked) {
                return r.value + ",";
            }
        }
        r = document.getElementById("PDI_answerOther2131209");
        if (r) {
            if (r.checked) {
                return r.value + ",";
            } else {
                return '';
            }
        } else {
            return "";
        }
    }
    else
    {
        for (i = 0; i < AA2131209.length; i++)
        {
            r = document.getElementById(AA2131209[i].substring(AA2131209[i].indexOf('id=') + 4, AA2131209[i].indexOf('"', AA2131209[i].indexOf('id=') + 4)));
            if (r.type == "checkbox" && r.checked)
            {
                PDV_a2131209 = PDV_a2131209 + r.value + ",";
            }
        }
        return PDV_a2131209;
    }
}
function PDF_o2131209(r) {
    if (PDV_po2131209 == 1) {
        PDV_o2131209 = document.getElementById("PDI_OtherText2131209").value;
    }
}
function PDI_checkOther2131209( lostfocus )
 {
	var reset = false;
	if( lostfocus ){
		var ot = document.getElementById("PDI_OtherText2131209").value;
		if( ot.length == 0 ){ reset = true; }
	}
	
    if (PDV_pt2131209 == 0)
    {
		if(lostfocus && reset){ document.getElementById("PDI_answerOther2131209").checked = false; }
		else{ document.getElementById("PDI_answerOther2131209").checked = true; }
    }
	else if ( PDV_pt2131209 > 1 ){
		var nc = 1;
		obj = document.getElementById("PDI_OtherText2131209");
		if(lostfocus && reset){ nc = 0; }
		
		for (i = 0; i < AA2131209.length; i++)
	    {
	        r = document.getElementById(AA2131209[i].substring(AA2131209[i].indexOf('id=') + 4, AA2131209[i].indexOf('"', AA2131209[i].indexOf('id=') + 4)));
	        if (r.type == "checkbox" && r.checked) { nc += 1; }
	    }

		if ( nc > PDV_pt2131209 ){
			obj.disabled=true;
			obj.value='';
			for (i = 0; i < AA2131209.length; i++)
		    {
		        r = document.getElementById(AA2131209[i].substring(AA2131209[i].indexOf('id=') + 4, AA2131209[i].indexOf('"', AA2131209[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = true; }
		    }
		}
		else if( nc < PDV_pt2131209 ){
			obj.disabled=false;
			for (i = 0; i < AA2131209.length; i++)
		    {
		        r = document.getElementById(AA2131209[i].substring(AA2131209[i].indexOf('id=') + 4, AA2131209[i].indexOf('"', AA2131209[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = false; }
		    }
		}
	}
}
function PD_vote2131209(R)
 {
    var randomnumber = Math.floor(Math.random() * 11);
    if (R == 1)
    {
        var s = document.createElement("SCRIPT");
        s.charset = "utf-8";
        s.src = PDV_server2131209 + "/vote-js.php?s=" + PDV_s2131209 + "&vr=1&b=" + PDV_b2131209 + "&p=" + PDV_id2131209 + "&l=" + PDV_l2131209 + "&sl=" + PDV_sl2131209 + "&pr=" + PDV_pr2131209 + "&pt=" + PDV_pt2131209 + "&va=" + PDV_va2131209 + "&cookie=" + PD_ck2131209 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w2131209;
        var h = document.getElementsByTagName("head").item(0);
        h.appendChild(s);
    }
    else
    {
        if (PDV_b2131209 > 0)
        {
            Set_Cookie2131209('PD_poll_' + PDV_id2131209, 'true', 0, '/', '', '');
        }
        PDV_a2131209 = '';
        PDV_a2131209 = PDF_a2131209(document.getElementById("PDI_form2131209"));
        if (PDV_a2131209.length == 0 && PDV_o2131209.length == 0)
        {
            alert(PDV_l4_2131209);
        }
        else
        {
			if ( PDV_def2131209.indexOf('input.pds-votebutton') == -1 ) {
				document.getElementById('pd-vote-button2131209').className = 'pds-vote-button-load';
			}
	
            var s = document.createElement("SCRIPT");
            s.charset = "utf-8";
            s.src = PDV_server2131209 + "/vote-js.php?s=" + PDV_s2131209 + "&b=" + PDV_b2131209 + "&p=" + PDV_id2131209 + "&a=" + PDV_a2131209 + "&o=" + PDV_o2131209 + "&l=" + PDV_l2131209 + "&sl=" + PDV_sl2131209 + "&pr=" + PDV_pr2131209 + "&pt=" + PDV_pt2131209 + "&va=" + PDV_va2131209 + "&cookie=" + PD_ck2131209 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w2131209;
            var h = document.getElementsByTagName("head").item(0);
            h.appendChild(s);
        }
    }
}
var PD_pollString2131209 = PDV_html2131209;
var PD_ck2131209 = 0;

function PDV_rand2131209(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_go2131209()
 {
    if (!document.getElementById('poll_style2131209'))
    {
        fileref = document.createElement("style");
        fileref.setAttribute("type", "text/css");
        fileref.setAttribute("id", "poll_style2131209");
        if (fileref.styleSheet)
        // IE
        {
            fileref.styleSheet.cssText = PDV_def2131209;
        }
        else
        // the world
        {
            fileref.appendChild(document.createTextNode(PDV_def2131209));
        }
        document.getElementsByTagName("head").item(0).appendChild(fileref);
    }
    if (!document.getElementById('PDI_container2131209'))
    {
        document.write('<a name="pd_a_2131209" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container2131209"></div>');
    }
    if (Get_Cookie2131209('PD_poll_' + PDV_id2131209) == 'true')
    {
        PD_ck2131209 = 1;
    }

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

    if (PDV_POLLRAND2131209) {
        AA2131209 = PDV_rand2131209(AA2131209);
    }
    y2131209 = '';
    for (x2131209 = 0; x2131209 < AA2131209.length; x2131209++) {
        y2131209 = y2131209 + AA2131209[x2131209];
    }
    document.getElementById('pds-answer2131209').innerHTML = y2131209;
	share2131209();
}
function Set_Cookie2131209(name, value, expires, path, domain, secure)
 {
    var today = new Date();
    today.setTime(today.getTime());
    if(typeof(PDV_expire2131209) !== 'undefined') {
    	expires = parseInt( PDV_expire2131209 );
    }
    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_Cookie2131209(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 (pollClosed2131209 == false)
 {
    PDV_go2131209();
}

function st_go2131209(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;
}

st2131209 = {
    "p": "2131209",
    "v": "0"
};

st_go2131209(st2131209);

function share2131209()
{
	if( typeof PDV_share2131209 != "undefined") {
		if (PDV_share2131209 == 1 ) {
			a2a_linkname = 'Poll: ' + PDV_POLL_q2131209;
			a2a_linkurl = document.location + '#pd_a_2131209';
			a2a_track_links = 'custom';
			a2a_track_links_key = document.location + '#pd_a_2131209';
			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 media2131209(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_2131209(html) {
	var htmlNode = document.createElement("DIV");
	
	htmlNode.innerHTML = html;
	
	if(htmlNode.innerText !== undefined)
		return htmlNode.innerText; // IE
	
	return htmlNode.textContent; // FF
}

if (pollClosed2131209 == true)
{
	share2131209();
}