var pollClosed3011641 = false;
var PDV_POLLRAND3011641 = false;

var PDV_a3011641 = "";
var PDV_o3011641 = "";
var PDV_id3011641 = 3011641;
var PDV_pt3011641 = 0;
var PDV_po3011641 = 0;
var PDV_s3011641 = 49404;
var PDV_b3011641 = 1;
var PDV_l3011641 = 0;
var PDV_pr3011641 = 0;
var PDV_w3011641 = 3011641;
var PDV_share3011641 = 1;
var PDV_expire3011641 = 7257600;

var PDV_sl3011641 = 1;
var PDV_va3011641 = 0;

var PDV_lnk3011641 = 1;



var PDV_def3011641 = '#PDI_container3011641 .pds-box{background-color:#ffffff;border:1px solid #ffffff;margin:0px 0px 0px 0px;padding:15px 15px 15px 15px;width:350px} #PDI_container3011641 .pds-question-top{font:normal normal normal 16px/18px arial;color:#009ddc;border:0px none #000000;background-color:transparent;margin:0px 0px 10px 0px;padding:0px 0px 0px 0px} #PDI_container3011641 .pds-answer{font:normal normal normal 12px/30px arial;color:#808084;background-color:transparent;border:0px none #ffffff;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px} #PDI_container3011641 .pds-textfield{font:normal normal normal 12px/12px verdana;color:#808084;background-color:#ffffff;border:1px solid #999999;margin:1px 1px 15px 1px;padding:1px 5px 1px 1px;width:150px} #PDI_container3011641 .pds-answer-feedback{background-color:#f0f0f0;border:0px solid #999999;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px} #PDI_container3011641 .pds-answer-feedback-bar{background-color:#7ac142;border:0px solid #999999;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px} #PDI_container3011641 .pds-totalvotes-inner{font:normal normal normal 6px/6px verdana;color:#f0f0f0;background-color:#f0f0f0;border:0px solid #f0f0f0;padding:2px 2px 2px 2px} #PDI_container3011641 .pds-vote{color:#c3c4c7;font-size:9px;line-height:17px;padding:15px 0px 10px} #PDI_container3011641 .pds-vote a{border-bottom:1px solid #808084;border-top:1px solid #808084;color:#808084;font-size:9px;padding:2px 0px;text-decoration:none} #PDI_container3011641 input.pds-votebutton{background:transparent url(http://s3.polldaddy.com/images/pdsimple-votebutton.gif) no-repeat scroll 0%;float:right;height:21px;margin:0px 0px 10px;outline-color:invert;outline-style:none;outline-width:medium;width:55px} #PDI_container3011641 .pds-box{color:#333333;font-family:verdana,arial,helvetica,sans-serif;text-align:left} #PDI_container3011641 .pds-answer-feedback-bar{height:12px} #PDI_container3011641 .pds-totalvotes-inner{margin:0px 0px 15px} #PDI_container3011641 input.pds-votebutton-pack{float:right;font-size:10px} #PDI_container3011641 div {margin:0;padding:0;}';

var PDV_POLL_q3011641 = 'Is now a good time to fix the interest rate on your home loan?'; var PDV_POLL_medType3011641 = '0'; var PDV_POLL_medID3011641 = '';
var PDV_A3011641 = new Array();


  PDV_A3011641[0] = new Array(4); PDV_A3011641[0][0] = "14211924"; PDV_A3011641[0][1] = "Yes, I am now considering fixing the interest rate on my home loan";   PDV_A3011641[0][2] = "0"; PDV_A3011641[0][3] = "";

  PDV_A3011641[1] = new Array(4); PDV_A3011641[1][0] = "14211925"; PDV_A3011641[1][1] = "Maybe I will fix the interest rate on my home loan later in the year";   PDV_A3011641[1][2] = "0"; PDV_A3011641[1][3] = "";

  PDV_A3011641[2] = new Array(4); PDV_A3011641[2][0] = "14211926"; PDV_A3011641[2][1] = "No, I think interest rates may still come down";   PDV_A3011641[2][2] = "0"; PDV_A3011641[2][3] = "";

  PDV_A3011641[3] = new Array(4); PDV_A3011641[3][0] = "14211927"; PDV_A3011641[3][1] = "No, I do not wish to fix the interest rates on my home loan";   PDV_A3011641[3][2] = "0"; PDV_A3011641[3][3] = "";


var PDV_l1_3011641 = 'View Results';
var PDV_l2_3011641 = 'Other:';
var PDV_l3_3011641  = '';

  
var PDV_l4_3011641 = 'Please choose an answer first!';

var PDV_l12_3011641  = 'Share This';

var PDV_l12_3011641 = 'Share This';


//v2.76 9/Aug/10
var protocol = document.location.protocol;
var a2a_track_pub = 'polldaddy';
var a2a_no_3p = 1;
var PD_ck3011641 = 0;
var PD_ck_name3011641 = 'PD_poll_' + PDV_id3011641;

if (pollClosed3011641 == false)
 {
    var PDV_server3011641 = protocol + '//polls.polldaddy.com';
    var AA3011641 = new Array();
    var PDV_html3011641 = '<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form3011641" id="PDI_form3011641"><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_medID3011641 + ' ' + unescape_HTML_3011641( PDV_POLL_q3011641 ) + '</div></div></div></div><div class="pds-answer"><span id="pds-answer3011641"></span>';
    if (PDV_po3011641 == 1)
    {
		PDV_html3011641 += '<span class="pds-answer-group">';
		
        if (PDV_pt3011641 == 0) {
            PDV_html3011641 += '<span class="pds-answer-input"><input type="radio" name="PDI_answer3011641" id="PDI_answerOther3011641" value="other" class="pds-radiobutton"/></span>';
        }
        PDV_html3011641 += '<label for="PDI_answerOther3011641" class="pds-other-label"><span class="pds-answer-span">' + PDV_l2_3011641 + '</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText3011641" name="PDI_OtherText3011641" onclick="PDI_checkOther3011641();" onchange="PDI_checkOther3011641(true);" /></span>';

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

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

    if ( PDV_l3_3011641 == '' )
    {
		PDV_l3_3011641 = 'Vote';
    }
	
	if ( PDV_s3011641 < 99 || PDV_def3011641.indexOf('input.pds-votebutton') != -1 )	
	{
		if (PDV_l3_3011641 == 'Vote' || PDV_l3_3011641 == '')
	    {
	        PDV_html3011641 += '<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_vote3011641(0);">';
	    }
	    else
	    {
	        PDV_html3011641 += '<input type="button" class="pds-votebutton-pack" value="' + PDV_l3_3011641 + '"  onclick="PD_vote3011641(0);" />';
	    }
	}
	else
	{
		PDV_html3011641 += '<a href="javascript:PD_vote3011641(0);" id="pd-vote-button3011641" class="pds-vote-button"><span>' + PDV_l3_3011641 + '</span></a>';
	}

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

    if (PDV_pr3011641 == 2) {
        PDV_html3011641 += '<br/>';
    }
    else {
        PDV_html3011641 += '<a href="javascript:PD_vote3011641(1);" class="pds-view-results">' + PDV_l1_3011641 + '</a><br/>';
    }

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

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

    for (PDV_x = 0; PDV_x < PDV_A3011641.length; PDV_x++)
    {
        if (PDV_pt3011641 == 0)
        {
            AA3011641[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer' + PDV_A3011641[PDV_x][0] + '" value="' + PDV_A3011641[PDV_x][0] + '" name="PDI_answer3011641" /></span><label for="PDI_answer' + PDV_A3011641[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_3011641( PDV_A3011641[PDV_x][1] ) + '</span></label>' + PDV_A3011641[PDV_x][3] + '<span class="pds-clear"></span><br/></span>';
        }
        else
        {
            AA3011641[PDV_x] = '<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer' + PDV_A3011641[PDV_x][0] + '" value="' + PDV_A3011641[PDV_x][0] + '" name="PDI_answer' + PDV_A3011641[PDV_x][0] + '" onclick="javascript:PDF_mc3011641(this);" /></span><label for="PDI_answer' + PDV_A3011641[PDV_x][0] + '" class="pds-input-label"><span class="pds-answer-span">' + unescape_HTML_3011641( PDV_A3011641[PDV_x][1] ) + '</span></label>' + PDV_A3011641[PDV_x][3] + '<span class="pds-clear"></span><br/></span>';
        }
    }
}

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

function PDF_a3011641()
 {
    PDF_o3011641();
    var r;
    if (PDV_pt3011641 == 0)
    {
    	for (var i = 0; i < AA3011641.length; i++)
        {
            r = document.getElementById(AA3011641[i].substring(AA3011641[i].indexOf('id=') + 4, AA3011641[i].indexOf('"', AA3011641[i].indexOf('id=') + 4)));
            if (r.checked) {
                return r.value + ",";
            }
        }
        r = document.getElementById("PDI_answerOther3011641");
        if (r) {
            if (r.checked) {
                return r.value + ",";
            } else {
                return '';
            }
        } else {
            return "";
        }
    }
    else
    {
        for (i = 0; i < AA3011641.length; i++)
        {
            r = document.getElementById(AA3011641[i].substring(AA3011641[i].indexOf('id=') + 4, AA3011641[i].indexOf('"', AA3011641[i].indexOf('id=') + 4)));
            if (r.type == "checkbox" && r.checked)
            {
                PDV_a3011641 = PDV_a3011641 + r.value + ",";
            }
        }
        return PDV_a3011641;
    }
}
function PDF_o3011641(r) {
    if (PDV_po3011641 == 1) {
        PDV_o3011641 = document.getElementById("PDI_OtherText3011641").value;
    }
}
function PDI_checkOther3011641( lostfocus )
 {
	var reset = false;
	if( lostfocus ){
		var ot = document.getElementById("PDI_OtherText3011641").value;
		if( ot.length == 0 ){ reset = true; }
	}
	
    if (PDV_pt3011641 == 0)
    {
		if(lostfocus && reset){ document.getElementById("PDI_answerOther3011641").checked = false; }
		else{ document.getElementById("PDI_answerOther3011641").checked = true; }
    }
	else if ( PDV_pt3011641 > 1 ){
		var nc = 1;
		obj = document.getElementById("PDI_OtherText3011641");
		if(lostfocus && reset){ nc = 0; }
		
		for (i = 0; i < AA3011641.length; i++)
	    {
	        r = document.getElementById(AA3011641[i].substring(AA3011641[i].indexOf('id=') + 4, AA3011641[i].indexOf('"', AA3011641[i].indexOf('id=') + 4)));
	        if (r.type == "checkbox" && r.checked) { nc += 1; }
	    }

		if ( nc > PDV_pt3011641 ){
			obj.disabled=true;
			obj.value='';
			for (i = 0; i < AA3011641.length; i++)
		    {
		        r = document.getElementById(AA3011641[i].substring(AA3011641[i].indexOf('id=') + 4, AA3011641[i].indexOf('"', AA3011641[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = true; }
		    }
		}
		else if( nc < PDV_pt3011641 ){
			obj.disabled=false;
			for (i = 0; i < AA3011641.length; i++)
		    {
		        r = document.getElementById(AA3011641[i].substring(AA3011641[i].indexOf('id=') + 4, AA3011641[i].indexOf('"', AA3011641[i].indexOf('id=') + 4)));
		        if (r.type == "checkbox" && !r.checked) { r.disabled = false; }
		    }
		}
	}
}
function PD_vote3011641(R)
 {
    var randomnumber = Math.floor(Math.random() * 11);
    var tags = pd_get_tags3011641();
    if (R == 1)
    {
        var s = document.createElement("SCRIPT");
        s.charset = "utf-8";
        s.src = PDV_server3011641 + "/vote-js.php?s=" + PDV_s3011641 + "&vr=1&b=" + PDV_b3011641 + "&p=" + PDV_id3011641 + "&l=" + PDV_l3011641 + "&sl=" + PDV_sl3011641 + "&pr=" + PDV_pr3011641 + "&pt=" + PDV_pt3011641 + "&va=" + PDV_va3011641 + "&cookie=" + PD_ck3011641 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w3011641 + ( tags.length > 0 ? '&tags=' + tags : '' );
        var h = document.getElementsByTagName("head").item(0);
        h.appendChild(s);
    }
    else
    {
        if (PDV_b3011641 > 0 && PD_ck3011641 == 0 ) {
            Set_Cookie3011641(PD_ck_name3011641, 'true', 0, '/', '', '');
        }
        PDV_a3011641 = '';
        PDV_a3011641 = PDF_a3011641(document.getElementById("PDI_form3011641"));
        if (PDV_a3011641.length == 0 && PDV_o3011641.length == 0)
        {
            alert(PDV_l4_3011641);
        }
        else
        {
			if ( PDV_def3011641.indexOf('input.pds-votebutton') == -1 ) {
				document.getElementById('pd-vote-button3011641').className = 'pds-vote-button-load';
			}
	
            var s = document.createElement("SCRIPT");
            s.charset = "utf-8";
            s.src = PDV_server3011641 + "/vote-js.php?s=" + PDV_s3011641 + "&b=" + PDV_b3011641 + "&p=" + PDV_id3011641 + "&a=" + PDV_a3011641 + "&o=" + PDV_o3011641 + "&l=" + PDV_l3011641 + "&sl=" + PDV_sl3011641 + "&pr=" + PDV_pr3011641 + "&pt=" + PDV_pt3011641 + "&va=" + PDV_va3011641 + "&cookie=" + PD_ck3011641 + "&rdm=" + randomnumber + "&url=" + escape(location.href) + "&w=" + PDV_w3011641 + ( tags.length > 0 ? '&tags=' + tags : '' );
            var h = document.getElementsByTagName("head").item(0);
            h.appendChild(s);
        }
    }
}

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

function pd_url_encode3011641( 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_pollString3011641 = PDV_html3011641;

function PDV_rand3011641(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_go3011641()
 {
 	if ( is_secure() ){
 		PDV_def3011641 = PDV_def3011641.replace(/http:\/\/i.polldaddy/g,'https://polldaddy');
 		PDV_def3011641 = PDV_def3011641.replace(/http:\/\/s3.wordpress/g,'https://s-ssl.wordpress');
 	}
    if (!document.getElementById('poll_style3011641')) {
        fileref = document.createElement("style");
        fileref.setAttribute("type", "text/css");
        fileref.setAttribute("id", "poll_style3011641");
        if (fileref.styleSheet) { // IE
            fileref.styleSheet.cssText = PDV_def3011641;
        }
        else { // the world
            fileref.appendChild(document.createTextNode(PDV_def3011641));
        }
        document.getElementsByTagName("head").item(0).appendChild(fileref);
    }
    if (typeof load_audioLibrary_3011641 == "function" && typeof PDV_audio_3011641 !== "undefined" && PDV_audio_3011641 > 0 ) {
    	load_audioLibrary_3011641();
    }
    if (!document.getElementById('PDI_container3011641')) {
        document.write('<a name="pd_a_3011641" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container3011641"></div>');
    }    
    if( typeof PDV_version3011641 !== "undefined" ) {
       	PD_ck_name3011641 += ( PDV_version3011641 > 0 ? '.' + PDV_version3011641 : '' );
    }    
    if (Get_Cookie3011641(PD_ck_name3011641) == 'true') {
        PD_ck3011641 = 1;
    }

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

    if (PDV_POLLRAND3011641) {
        AA3011641 = PDV_rand3011641(AA3011641);
    }
    y3011641 = '';
    for (x3011641 = 0; x3011641 < AA3011641.length; x3011641++) {
        y3011641 = y3011641 + AA3011641[x3011641];
    }
    document.getElementById('pds-answer3011641').innerHTML = y3011641;
	share3011641();
}
function Set_Cookie3011641(name, value, expires, path, domain, secure)
 {
    var today = new Date();
    today.setTime(today.getTime());
    if(typeof(PDV_expire3011641) !== 'undefined') {
    	expires = parseInt( PDV_expire3011641 );
    }
    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_Cookie3011641(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 (pollClosed3011641 == false) {
    PDV_go3011641();
}


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

if (pollClosed3011641 == true) {
	share3011641();
}

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