var pollClosed1038113 = true;
//v2.61 11/Nov/09

if (pollClosed1038113 == false)
 {
    var PDV_server1038113 = 'http://polls.polldaddy.com';
    var AA1038113 = new Array();
    var PDV_html1038113 = '<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form1038113" id="PDI_form1038113"><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">' + media1038113(PDV_POLL_medType1038113, PDV_POLL_medID1038113) + ' ' + unescape_HTML_1038113( PDV_POLL_q1038113 ) + '</div></div></div></div><div class="pds-answer"><span id="pds-answer1038113"></span>';
    if (PDV_po1038113 == 1)
    {
		PDV_html1038113 += '<span class="pds-answer-group">';
		
        if (PDV_pt1038113 == 0)
        {
            PDV_html1038113 += '<span class="pds-answer-input"><input type="radio" name="PDI_answer1038113" id="PDI_answerOther1038113" value="other" class="pds-radiobutton"/></span>';
        }
        PDV_html1038113 += '<label for="PDI_answerOther1038113" class="pds-other-label"><span class="pds-answer-span">' + PDV_l2_1038113 + '</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText1038113" name="PDI_OtherText1038113" onclick="PDI_checkOther1038113();" onchange="PDI_checkOther1038113(true);" /></span>';

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

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

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

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

    if (PDV_pr1038113 == 2) {
        PDV_html1038113 += '<br/>';
    }
    else {
        PDV_html1038113 += '<a href="javascript:PD_vote1038113(1);" class="pds-view-results">' + PDV_l1_1038113 + '</a><br/>';
    }

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

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

    for (PDV_x = 0; PDV_x < PDV_A1038113.length; PDV_x++)
    {
        if (PDV_pt1038113 == 0)
        {
            AA1038113[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer' + PDV_A1038113[PDV_x][0] + '" value="' + PDV_A1038113[PDV_x][0] + '" name="PDI_answer1038113" /></span><label for="PDI_answer' + PDV_A1038113[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_1038113( PDV_A1038113[PDV_x][1] ) + '</span></label>' + media1038113(PDV_A1038113[PDV_x][2], PDV_A1038113[PDV_x][3]) + '<span class="pds-clear"></span><br/></span>';
        }
        else
        {
            AA1038113[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer' + PDV_A1038113[PDV_x][0] + '" value="' + PDV_A1038113[PDV_x][0] + '" name="PDI_answer' + PDV_A1038113[PDV_x][0] + '" onclick="javascript:PDF_mc1038113(this);" /></span><label for="PDI_answer' + PDV_A1038113[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_1038113( PDV_A1038113[PDV_x][1] ) + '</span></label>' + media1038113(PDV_A1038113[PDV_x][2], PDV_A1038113[PDV_x][3]) + '<span class="pds-clear"></span><br/></span>';
        }
    }
}

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

function PDF_a1038113()
 {
    PDF_o1038113();
    var r;
    if (PDV_pt1038113 == 0)
    {
    	for (var i = 0; i < AA1038113.length; i++)
        {
            r = document.getElementById(AA1038113[i].substring(AA1038113[i].indexOf('id=') + 4, AA1038113[i].indexOf('"', AA1038113[i].indexOf('id=') + 4)));
            if (r.checked) {
                return r.value + ",";
            }
        }
        r = document.getElementById("PDI_answerOther1038113");
        if (r) {
            if (r.checked) {
                return r.value + ",";
            } else {
                return '';
            }
        } else {
            return "";
        }
    }
    else
    {
        for (i = 0; i < AA1038113.length; i++)
        {
            r = document.getElementById(AA1038113[i].substring(AA1038113[i].indexOf('id=') + 4, AA1038113[i].indexOf('"', AA1038113[i].indexOf('id=') + 4)));
            if (r.type == "checkbox" && r.checked)
            {
                PDV_a1038113 = PDV_a1038113 + r.value + ",";
            }
        }
        return PDV_a1038113;
    }
}
function PDF_o1038113(r) {
    if (PDV_po1038113 == 1) {
        PDV_o1038113 = document.getElementById("PDI_OtherText1038113").value;
    }
}
function PDI_checkOther1038113( lostfocus )
 {
	var reset = false;
	if( lostfocus ){
		var ot = document.getElementById("PDI_OtherText1038113").value;
		if( ot.length == 0 ){ reset = true; }
	}
	
    if (PDV_pt1038113 == 0)
    {
		if(lostfocus && reset){ document.getElementById("PDI_answerOther1038113").checked = false; }
		else{ document.getElementById("PDI_answerOther1038113").checked = true; }
    }
	else if ( PDV_pt1038113 > 1 ){
		var nc = 1;
		obj = document.getElementById("PDI_OtherText1038113");
		if(lostfocus && reset){ nc = 0; }
		
		for (i = 0; i < AA1038113.length; i++)
	    {
	        r = document.getElementById(AA1038113[i].substring(AA1038113[i].indexOf('id=') + 4, AA1038113[i].indexOf('"', AA1038113[i].indexOf('id=') + 4)));
	        if (r.type == "checkbox" && r.checked) { nc += 1; }
	    }

		if ( nc > PDV_pt1038113 ){
			obj.disabled=true;
			obj.value='';
			for (i = 0; i < AA1038113.length; i++)
		    {
		        r = document.getElementById(AA1038113[i].substring(AA1038113[i].indexOf('id=') + 4, AA1038113[i].indexOf('"', AA1038113[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = true; }
		    }
		}
		else if( nc < PDV_pt1038113 ){
			obj.disabled=false;
			for (i = 0; i < AA1038113.length; i++)
		    {
		        r = document.getElementById(AA1038113[i].substring(AA1038113[i].indexOf('id=') + 4, AA1038113[i].indexOf('"', AA1038113[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = false; }
		    }
		}
	}
}
function PD_vote1038113(R)
 {
    var randomnumber = Math.floor(Math.random() * 11);
    if (R == 1)
    {
        var s = document.createElement("SCRIPT");
        s.charset = "utf-8";
        s.src = PDV_server1038113 + "/vote-js.php?s=" + PDV_s1038113 + "&vr=1&b=" + PDV_b1038113 + "&p=" + PDV_id1038113 + "&l=" + PDV_l1038113 + "&sl=" + PDV_sl1038113 + "&pr=" + PDV_pr1038113 + "&pt=" + PDV_pt1038113 + "&va=" + PDV_va1038113 + "&cookie=" + PD_ck1038113 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w1038113;
        var h = document.getElementsByTagName("head").item(0);
        h.appendChild(s);
    }
    else
    {
        if (PDV_b1038113 > 0)
        {
            Set_Cookie1038113('PD_poll_' + PDV_id1038113, 'true', 0, '/', '', '');
        }
        PDV_a1038113 = '';
        PDV_a1038113 = PDF_a1038113(document.getElementById("PDI_form1038113"));
        if (PDV_a1038113.length == 0 && PDV_o1038113.length == 0)
        {
            alert(PDV_l4_1038113);
        }
        else
        {
			if ( PDV_def1038113.indexOf('input.pds-votebutton') == -1 ) {
				document.getElementById('pd-vote-button1038113').className = 'pds-vote-button-load';
			}
	
            var s = document.createElement("SCRIPT");
            s.charset = "utf-8";
            s.src = PDV_server1038113 + "/vote-js.php?s=" + PDV_s1038113 + "&b=" + PDV_b1038113 + "&p=" + PDV_id1038113 + "&a=" + PDV_a1038113 + "&o=" + PDV_o1038113 + "&l=" + PDV_l1038113 + "&sl=" + PDV_sl1038113 + "&pr=" + PDV_pr1038113 + "&pt=" + PDV_pt1038113 + "&va=" + PDV_va1038113 + "&cookie=" + PD_ck1038113 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w1038113;
            var h = document.getElementsByTagName("head").item(0);
            h.appendChild(s);
        }
    }
}
var PD_pollString1038113 = PDV_html1038113;
var PD_ck1038113 = 0;

function PDV_rand1038113(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_go1038113()
 {
    if (!document.getElementById('poll_style1038113'))
    {
        fileref = document.createElement("style");
        fileref.setAttribute("type", "text/css");
        fileref.setAttribute("id", "poll_style1038113");
        if (fileref.styleSheet)
        // IE
        {
            fileref.styleSheet.cssText = PDV_def1038113;
        }
        else
        // the world
        {
            fileref.appendChild(document.createTextNode(PDV_def1038113));
        }
        document.getElementsByTagName("head").item(0).appendChild(fileref);
    }
    if (!document.getElementById('PDI_container1038113'))
    {
        document.write('<a name="pd_a_1038113" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container1038113"></div>');
    }
    if (Get_Cookie1038113('PD_poll_' + PDV_id1038113) == 'true')
    {
        PD_ck1038113 = 1;
    }

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

    if (PDV_POLLRAND1038113) {
        AA1038113 = PDV_rand1038113(AA1038113);
    }
    y1038113 = '';
    for (x1038113 = 0; x1038113 < AA1038113.length; x1038113++) {
        y1038113 = y1038113 + AA1038113[x1038113];
    }
    document.getElementById('pds-answer1038113').innerHTML = y1038113;
	share1038113();
}
function Set_Cookie1038113(name, value, expires, path, domain, secure)
 {
    var today = new Date();
    today.setTime(today.getTime());
    if(typeof(PDV_expire1038113) !== 'undefined') {
    	expires = parseInt( PDV_expire1038113 );
    }
    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_Cookie1038113(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 (pollClosed1038113 == false)
 {
    PDV_go1038113();
}

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

st1038113 = {
    "p": "1038113",
    "v": "0"
};

st_go1038113(st1038113);

function share1038113()
{
	if( typeof PDV_share1038113 != "undefined") {
		if (PDV_share1038113 == 1 ) {
			a2a_linkname = 'Poll: ' + PDV_POLL_q1038113;
			a2a_linkurl = document.location + '#pd_a_1038113';
			a2a_track_links = 'custom';
			a2a_track_links_key = document.location + '#pd_a_1038113';
			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 media1038113(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_1038113(html) {
	var htmlNode = document.createElement("DIV");
	
	htmlNode.innerHTML = html;
	
	if(htmlNode.innerText !== undefined)
		return htmlNode.innerText; // IE
	
	return htmlNode.textContent; // FF
}

if (pollClosed1038113 == true)
{
	share1038113();
}