var pollClosed3474631 = false;
var PDV_POLLRAND3474631 = false;
var PDV_a3474631 = '';
var PDV_o3474631 = '';
var PDV_id3474631 = 3474631;
var PDV_pt3474631 = 0;
var PDV_po3474631 = 0;
var PDV_b3474631 = 1;
var PDV_pr3474631 = 0;
var PDV_l3474631 = 1;
var PDV_s3474631 = 53989;
var PDV_w3474631 = 3474631;
var PDV_share3474631 = 1;
var PDV_expire3474631 = 2592000;
var PDV_version3474631 = 0;
var PDV_def3474631 = '#PDI_container3474631 .pds-box{width:100%;text-align:left} #PDI_container3474631 .pds-question{margin-bottom:10px} #PDI_container3474631 .pds-answer{font-size:10px;margin-bottom:10px} #PDI_container3474631 .pds-answer label{} #PDI_container3474631 .pds-radiobutton{} #PDI_container3474631 .pds-checkbox{} #PDI_container3474631 .pds-textfield{width:100%;font-size:10px;color:#fff;background-color:#666;border:1px;border-color:#666;padding:1px 1px 1px 1px;margin:5px 0px 0px 0px} #PDI_container3474631 .pds-answer-feedback{background-color:#eeeeee;padding:0px 0px 0px 0px;height:18px;margin:2px 0px 5px 0px} #PDI_container3474631 .pds-answer-feedback-bar{background-color:#ff9900;margin:3px;padding:0px;height:12px;border:0px} #PDI_container3474631 .pds-answer-feedback img{background-color:#ff9900;margin:3px;padding:0px;height:12px;border:0px} #PDI_container3474631 .pds-answer-feedback img{background-color:#ff9900;margin:3px;padding:0px;height:12px;border:0px} #PDI_container3474631 .pds-vote{font-size:9px;line-height:17px} #PDI_container3474631 .pds-votebutton-outer{height:38px} #PDI_container3474631 .pds-vote a{font-size:9px;text-decoration:none;border-top:1px;border-bottom:1px;border-top-color:#c0c0c0;border-bottom-color:#c0c0c0;border-top-style:solid;border-bottom-style:solid;padding:2px 0px 2px 0px} #PDI_container3474631 input.pds-votebutton{width:105px;height:25px;background:url(content/imgs/ui_button_poll_vote.gif);outline:none;float:right} #PDI_container3474631 input.pds-votebutton:hover{background:url(content/imgs/ui_button_poll_vote.gif) no-repeat 0 -25px} #PDI_container3474631 .pds-totalvotes-outer{} #PDI_container3474631 .pds-totalvotes-inner{visibility:hidden} #PDI_container3474631 div {margin:0;padding:0;}';
var PDV_sl3474631 = 1;
var PDV_lnk3474631 = 1;
var PDV_va3474631 = 0;
var PDV_POLL_q3474631 = 'Does rain affect your festival fun?';
var PDV_POLL_medType3474631 = '0';
var PDV_POLL_medID3474631 = '';

var PDV_A3474631 = new Array();
PDV_A3474631[0] = new Array(4);
PDV_A3474631[0][0] = '16055086';
PDV_A3474631[0][1] = 'No. Once I&#039;m prepared the weather is irrelevant.';
PDV_A3474631[0][2] = '0';
PDV_A3474631[0][3] = '';

PDV_A3474631[1] = new Array(4);
PDV_A3474631[1][0] = '16055087';
PDV_A3474631[1][1] = 'Yes, a mucky festival ruins my fun.';
PDV_A3474631[1][2] = '0';
PDV_A3474631[1][3] = '';

PDV_A3474631[2] = new Array(4);
PDV_A3474631[2][0] = '16055088';
PDV_A3474631[2][1] = 'No. It wouldn&#039;t be an Irish festival without mud!';
PDV_A3474631[2][2] = '0';
PDV_A3474631[2][3] = '';

var PDV_l1_3474631 = 'View Results';
var PDV_l2_3474631 = 'Other:';
var PDV_l3_3474631  = '';
var PDV_l4_3474631 = 'Please choose an answer first!';
var PDV_l12_3474631  = 'Share This';

var PDV_audio_3474631  = 0;

//v2.76 9/Aug/10
var protocol = document.location.protocol;
var a2a_track_pub = 'polldaddy';
var a2a_no_3p = 1;
var PD_ck3474631 = 0;
var PD_ck_name3474631 = 'PD_poll_' + PDV_id3474631;

if (pollClosed3474631 == false)
 {
    var PDV_server3474631 = protocol + '//polls.polldaddy.com';
    var AA3474631 = new Array();
    var PDV_html3474631 = '<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form3474631" id="PDI_form3474631"><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">' + PDV_POLL_medID3474631 + ' ' + unescape_HTML_3474631( PDV_POLL_q3474631 ) + '</div></div></div></div><div class="pds-answer"><span id="pds-answer3474631"></span>';
    if (PDV_po3474631 == 1)
    {
		PDV_html3474631 += '<span class="pds-answer-group">';
		
        if (PDV_pt3474631 == 0) {
            PDV_html3474631 += '<span class="pds-answer-input"><input type="radio" name="PDI_answer3474631" id="PDI_answerOther3474631" value="other" class="pds-radiobutton"/></span>';
        }
        PDV_html3474631 += '<label for="PDI_answerOther3474631" class="pds-other-label"><span class="pds-answer-span">' + PDV_l2_3474631 + '</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText3474631" name="PDI_OtherText3474631" onclick="PDI_checkOther3474631();" onchange="PDI_checkOther3474631(true);" /></span>';

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

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

    if ( PDV_l3_3474631 == '' )
    {
		PDV_l3_3474631 = 'Vote';
    }
	
	if ( PDV_s3474631 < 99 || PDV_def3474631.indexOf('input.pds-votebutton') != -1 )	
	{
		if (PDV_l3_3474631 == 'Vote' || PDV_l3_3474631 == '')
	    {
	        PDV_html3474631 += '<input type="button" class="pds-votebutton" style="border:none;cursor: pointer;" src="' + ( is_secure() ? 'https://polldaddy' : 'http://i.polldaddy' ) + '.com/polls/spacer.gif" onclick="PD_vote3474631(0);">';
	    }
	    else
	    {
	        PDV_html3474631 += '<input type="button" class="pds-votebutton-pack" value="' + PDV_l3_3474631 + '"  onclick="PD_vote3474631(0);" />';
	    }
	}
	else
	{
		PDV_html3474631 += '<a href="javascript:PD_vote3474631(0);" id="pd-vote-button3474631" class="pds-vote-button"><span>' + PDV_l3_3474631 + '</span></a>';
	}

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

    if (PDV_pr3474631 == 2) {
        PDV_html3474631 += '<br/>';
    }
    else {
        PDV_html3474631 += '<a href="javascript:PD_vote3474631(1);" class="pds-view-results">' + PDV_l1_3474631 + '</a><br/>';
    }

	if( typeof PDV_share3474631 != "undefined") {
		if (PDV_share3474631 == 1 ) {
			PDV_html3474631 += '<a class="a2a_dd pds-share"  href="javascript:">' + PDV_l12_3474631 + '</a>';
		}
	}
	
    if (PDV_lnk3474631 == 1) {
        PDV_html3474631 += '<a href="' + protocol + '//polldaddy.com/signup-now/?ad=poll-front" target="_blank" class="pds-pd-link">Polldaddy.com</a>';
    }

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

    for (PDV_x = 0; PDV_x < PDV_A3474631.length; PDV_x++)
    {
        if (PDV_pt3474631 == 0)
        {
            AA3474631[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer' + PDV_A3474631[PDV_x][0] + '" value="' + PDV_A3474631[PDV_x][0] + '" name="PDI_answer3474631" /></span><label for="PDI_answer' + PDV_A3474631[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_3474631( PDV_A3474631[PDV_x][1] ) + '</span></label>' + PDV_A3474631[PDV_x][3] + '<span class="pds-clear"></span><br/></span>';
        }
        else
        {
            AA3474631[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer' + PDV_A3474631[PDV_x][0] + '" value="' + PDV_A3474631[PDV_x][0] + '" name="PDI_answer' + PDV_A3474631[PDV_x][0] + '" onclick="javascript:PDF_mc3474631(this);" /></span><label for="PDI_answer' + PDV_A3474631[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_3474631( PDV_A3474631[PDV_x][1] ) + '</span></label>' + PDV_A3474631[PDV_x][3] + '<span class="pds-clear"></span><br/></span>';
        }
    }
}

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

function PDF_a3474631()
 {
    PDF_o3474631();
    var r;
    if (PDV_pt3474631 == 0)
    {
    	for (var i = 0; i < AA3474631.length; i++)
        {
            r = document.getElementById(AA3474631[i].substring(AA3474631[i].indexOf('id=') + 4, AA3474631[i].indexOf('"', AA3474631[i].indexOf('id=') + 4)));
            if (r.checked) {
                return r.value + ",";
            }
        }
        r = document.getElementById("PDI_answerOther3474631");
        if (r) {
            if (r.checked) {
                return r.value + ",";
            } else {
                return '';
            }
        } else {
            return "";
        }
    }
    else
    {
        for (i = 0; i < AA3474631.length; i++)
        {
            r = document.getElementById(AA3474631[i].substring(AA3474631[i].indexOf('id=') + 4, AA3474631[i].indexOf('"', AA3474631[i].indexOf('id=') + 4)));
            if (r.type == "checkbox" && r.checked)
            {
                PDV_a3474631 = PDV_a3474631 + r.value + ",";
            }
        }
        return PDV_a3474631;
    }
}
function PDF_o3474631(r) {
    if (PDV_po3474631 == 1) {
        PDV_o3474631 = document.getElementById("PDI_OtherText3474631").value;
    }
}
function PDI_checkOther3474631( lostfocus )
 {
	var reset = false;
	if( lostfocus ){
		var ot = document.getElementById("PDI_OtherText3474631").value;
		if( ot.length == 0 ){ reset = true; }
	}
	
    if (PDV_pt3474631 == 0)
    {
		if(lostfocus && reset){ document.getElementById("PDI_answerOther3474631").checked = false; }
		else{ document.getElementById("PDI_answerOther3474631").checked = true; }
    }
	else if ( PDV_pt3474631 > 1 ){
		var nc = 1;
		obj = document.getElementById("PDI_OtherText3474631");
		if(lostfocus && reset){ nc = 0; }
		
		for (i = 0; i < AA3474631.length; i++)
	    {
	        r = document.getElementById(AA3474631[i].substring(AA3474631[i].indexOf('id=') + 4, AA3474631[i].indexOf('"', AA3474631[i].indexOf('id=') + 4)));
	        if (r.type == "checkbox" && r.checked) { nc += 1; }
	    }

		if ( nc > PDV_pt3474631 ){
			obj.disabled=true;
			obj.value='';
			for (i = 0; i < AA3474631.length; i++)
		    {
		        r = document.getElementById(AA3474631[i].substring(AA3474631[i].indexOf('id=') + 4, AA3474631[i].indexOf('"', AA3474631[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = true; }
		    }
		}
		else if( nc < PDV_pt3474631 ){
			obj.disabled=false;
			for (i = 0; i < AA3474631.length; i++)
		    {
		        r = document.getElementById(AA3474631[i].substring(AA3474631[i].indexOf('id=') + 4, AA3474631[i].indexOf('"', AA3474631[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = false; }
		    }
		}
	}
}
function PD_vote3474631(R)
 {
    var randomnumber = Math.floor(Math.random() * 11);
    var tags = pd_get_tags3474631();
    if (R == 1)
    {
        var s = document.createElement("SCRIPT");
        s.charset = "utf-8";
        s.src = PDV_server3474631 + "/vote-js.php?s=" + PDV_s3474631 + "&vr=1&b=" + PDV_b3474631 + "&p=" + PDV_id3474631 + "&l=" + PDV_l3474631 + "&sl=" + PDV_sl3474631 + "&pr=" + PDV_pr3474631 + "&pt=" + PDV_pt3474631 + "&va=" + PDV_va3474631 + "&cookie=" + PD_ck3474631 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w3474631 + ( tags.length > 0 ? '&tags=' + tags : '' );
        var h = document.getElementsByTagName("head").item(0);
        h.appendChild(s);
    }
    else
    {
        if (PDV_b3474631 > 0 && PD_ck3474631 == 0 ) {
            Set_Cookie3474631(PD_ck_name3474631, 'true', 0, '/', '', '');
        }
        PDV_a3474631 = '';
        PDV_a3474631 = PDF_a3474631(document.getElementById("PDI_form3474631"));
        if (PDV_a3474631.length == 0 && PDV_o3474631.length == 0)
        {
            alert(PDV_l4_3474631);
        }
        else
        {
			if ( PDV_def3474631.indexOf('input.pds-votebutton') == -1 ) {
				document.getElementById('pd-vote-button3474631').className = 'pds-vote-button-load';
			}
	
            var s = document.createElement("SCRIPT");
            s.charset = "utf-8";
            s.src = PDV_server3474631 + "/vote-js.php?s=" + PDV_s3474631 + "&b=" + PDV_b3474631 + "&p=" + PDV_id3474631 + "&a=" + PDV_a3474631 + "&o=" + PDV_o3474631 + "&l=" + PDV_l3474631 + "&sl=" + PDV_sl3474631 + "&pr=" + PDV_pr3474631 + "&pt=" + PDV_pt3474631 + "&va=" + PDV_va3474631 + "&cookie=" + PD_ck3474631 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w3474631 + ( tags.length > 0 ? '&tags=' + tags : '' );
            var h = document.getElementsByTagName("head").item(0);
            h.appendChild(s);
        }
    }
}

function pd_get_tags3474631() {
	if( typeof pd_tags == "undefined" ) return '';
	var tags = '';
					
	for ( var key in pd_tags )
		tags += pd_url_encode3474631( key ) + ':' + pd_url_encode3474631( pd_tags[ key ] ) + ';';
		
	return tags.slice(0,-1);
}

function pd_url_encode3474631( s ) {
	return encodeURIComponent( s ).replace( /\%20/g, '+' ).replace( /!/g, '%21' ).replace( /'/g, '%27' ).replace( /\(/g, '%28' ).replace( /\)/g, '%29' ).replace( /\*/g, '%2A' ).replace( /\~/g, '%7E' );
}

var PD_pollString3474631 = PDV_html3474631;

function PDV_rand3474631(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_go3474631()
 {
 	if ( is_secure() ){
 		PDV_def3474631 = PDV_def3474631.replace(/http:\/\/i.polldaddy/g,'https://polldaddy');
 		PDV_def3474631 = PDV_def3474631.replace(/http:\/\/s3.wordpress/g,'https://s-ssl.wordpress');
 	}
    if (!document.getElementById('poll_style3474631')) {
        fileref = document.createElement("style");
        fileref.setAttribute("type", "text/css");
        fileref.setAttribute("id", "poll_style3474631");
        if (fileref.styleSheet) { // IE
            fileref.styleSheet.cssText = PDV_def3474631;
        }
        else { // the world
            fileref.appendChild(document.createTextNode(PDV_def3474631));
        }
        document.getElementsByTagName("head").item(0).appendChild(fileref);
    }
    if (typeof load_audioLibrary_3474631 == "function" && typeof PDV_audio_3474631 !== "undefined" && PDV_audio_3474631 > 0 ) {
    	load_audioLibrary_3474631();
    }
    if (!document.getElementById('PDI_container3474631')) {
        document.write('<a name="pd_a_3474631" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container3474631"></div>');
    }    
    if( typeof PDV_version3474631 !== "undefined" ) {
       	PD_ck_name3474631 += ( PDV_version3474631 > 0 ? '.' + PDV_version3474631 : '' );
    }    
    if (Get_Cookie3474631(PD_ck_name3474631) == 'true') {
        PD_ck3474631 = 1;
    }

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

    if (PDV_POLLRAND3474631) {
        AA3474631 = PDV_rand3474631(AA3474631);
    }
    y3474631 = '';
    for (x3474631 = 0; x3474631 < AA3474631.length; x3474631++) {
        y3474631 = y3474631 + AA3474631[x3474631];
    }
    document.getElementById('pds-answer3474631').innerHTML = y3474631;
	share3474631();
}
function Set_Cookie3474631(name, value, expires, path, domain, secure)
 {
    var today = new Date();
    today.setTime(today.getTime());
    if(typeof(PDV_expire3474631) !== 'undefined') {
    	expires = parseInt( PDV_expire3474631 );
    }
    if (expires>0) {
        expires = expires * 1000;
    } else{
    	expires = 60 * 60 * 24 * 30 * 1000;
    }
    
    expires = today.getTime() + (expires);
    var expires_date = new Date(expires);

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

function Get_Cookie3474631(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, ''));
            }
            if( cookie_value == 'true' )
            {
            	return cookie_value;
            }
            else
			{
				var today = new Date();
   			 	cookie_value = parseInt( cookie_value );
   			 	if( cookie_value > today.getTime() )
				{
					return 'true';
				}
			}
            break;
        }
        a_temp_cookie = null;
        cookie_name = '';
    }
    if (!b_cookie_found)
    {
        return null;
    }
}

if (pollClosed3474631 == false) {
    PDV_go3474631();
}


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

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

if (pollClosed3474631 == true) {
	share3474631();
}

function is_secure() {
	return "https:" == document.location.protocol ? true: false;
}
