  
  
 var pollClosed388991 = false;
var PDV_POLLRAND388991 = false;
 
 var PDV_a388991 = "";
 var PDV_o388991 = "";
 var PDV_id388991 = 388991;
 var PDV_pt388991 = 0;
 var PDV_po388991 = 0;
 var PDV_s388991 = 2;
 var PDV_b388991 = 1;
 var PDV_l388991 = 0;
 var PDV_pr388991 = 1;
 var PDV_w388991 = 388991;
 
 var PDV_sl388991 = 1;
 var PDV_va388991 = 0;
 
var PDV_lnk388991 = 1;



var PDV_def388991 = '#PDI_container388991 .pds-box{ width:270px;color:#ccc;background:#86858a url(http://i.polldaddy.com/polls/pdb02-bottom-left.gif) no-repeat left bottom;font-family:Verdana,Arial,Helvetica,sans-serif;text-align:left} #PDI_container388991  .pds-box-outer{ background:url(http://i.polldaddy.com/polls/pdb02-bottom-right.gif) no-repeat right bottom} #PDI_container388991 .pds-box-inner{ background:url(http://i.polldaddy.com/polls/pdb02-top-left.gif) no-repeat left top} #PDI_container388991  .pds-box-top{ background:url(http://i.polldaddy.com/polls/pdb02-top-right.gif) no-repeat right top;padding:20px 20px 20px 20px} #PDI_container388991  .pds-question{ background:url(http://i.polldaddy.com/polls/pdq02-bottom-left.gif) no-repeat left bottom} #PDI_container388991  .pds-question-outer{ background:url(http://i.polldaddy.com/polls/pdq02-bottom-right.gif) no-repeat right bottom;padding-bottom:15px} #PDI_container388991 .pds-question-inner{ background:url(http://i.polldaddy.com/polls/pdq02-top-left.gif) no-repeat left top} #PDI_container388991  .pds-question-top{ background:url(http://i.polldaddy.com/polls/pdq02-top-right.gif) no-repeat right top;padding:15px 15px 0px 15px;font-size:12px;color:#333} #PDI_container388991  .pds-answer{ font-size:10px;color:#999;padding:10px 20px 15px 20px} #PDI_container388991  .pds-answer label{} #PDI_container388991 .pds-radiobutton{} #PDI_container388991  .pds-checkbox{} #PDI_container388991  .pds-textfield{ width:100%;font-size:10px;color:#ccc;background-color:#666;border:1px;border-color:#666;padding:1px 1px 1px 1px;margin:5px 0px 0px 0px} #PDI_container388991  .pds-answer-feedback{ background-color:#333;padding:0px 0px 0px 0px;height:18px;margin:2px 0px 5px 0px} #PDI_container388991  .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_container388991 .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_container388991 .pds-vote{ font-size:9px;color:#c3C4c7;line-height:17px;padding:0px 20px 10px 20px} #PDI_container388991  .pds-votebutton-outer{ height:61px} #PDI_container388991 .pds-vote a{ font-size:9px;color:#666;text-decoration:none;border-top:1px;border-bottom:1px;border-top-color:#333;border-bottom-color:#333;border-top-style:solid;border-bottom-style:solid;padding:2px 0px 2px 0px} #PDI_container388991  input.pds-votebutton{ width:61px;height:61px;background:url(http://i.polldaddy.com/polls/pd02-votebutton.gif) no-repeat;outline:none;float:right} #PDI_container388991 input.pds-votebutton:hover{ background:url(http://i.polldaddy.com/polls/pd02-votebutton.gif) no-repeat 0 -60px} #PDI_container388991 input.pds-votebutton-pack{ float:right;font-size:10px} #PDI_container388991 .pds-totalvotes-outer{} #PDI_container388991  .pds-totalvotes-inner{ font-size:10px;color:#ffb400;background-color:#333;padding:3px 6px 3px 3px;margin:0px 0px 10px 0px;text-transform:uppercase;letter-spacing:1px}';

var PDV_POLL_q388991 = 'Which is the best pub in Lewes'; var PDV_POLL_medType388991 = '0'; var PDV_POLL_medID388991 = '';
var PDV_A388991 = new Array();


  PDV_A388991[0] = new Array(4); PDV_A388991[0][0] = "1986994"; PDV_A388991[0][1] = "The Lewes Arms";   PDV_A388991[0][2] = "0"; PDV_A388991[0][3] = "";

  PDV_A388991[1] = new Array(4); PDV_A388991[1][0] = "1986995"; PDV_A388991[1][1] = "The Volunteer";   PDV_A388991[1][2] = "0"; PDV_A388991[1][3] = "";

  PDV_A388991[2] = new Array(4); PDV_A388991[2][0] = "1986996"; PDV_A388991[2][1] = "The Lamb";   PDV_A388991[2][2] = "0"; PDV_A388991[2][3] = "";

  PDV_A388991[3] = new Array(4); PDV_A388991[3][0] = "1986997"; PDV_A388991[3][1] = "The Gardeners";   PDV_A388991[3][2] = "0"; PDV_A388991[3][3] = "";

  PDV_A388991[4] = new Array(4); PDV_A388991[4][0] = "1986998"; PDV_A388991[4][1] = "John Harvey Tavern";   PDV_A388991[4][2] = "0"; PDV_A388991[4][3] = "";

  PDV_A388991[5] = new Array(4); PDV_A388991[5][0] = "1986999"; PDV_A388991[5][1] = "The Snowdrop";   PDV_A388991[5][2] = "0"; PDV_A388991[5][3] = "";

  PDV_A388991[6] = new Array(4); PDV_A388991[6][0] = "1987000"; PDV_A388991[6][1] = "The Elephant and Castle";   PDV_A388991[6][2] = "0"; PDV_A388991[6][3] = "";

  PDV_A388991[7] = new Array(4); PDV_A388991[7][0] = "1987001"; PDV_A388991[7][1] = "The Brewers";   PDV_A388991[7][2] = "0"; PDV_A388991[7][3] = "";

  PDV_A388991[8] = new Array(4); PDV_A388991[8][0] = "1987625"; PDV_A388991[8][1] = "The Royal Oak";   PDV_A388991[8][2] = "0"; PDV_A388991[8][3] = "";

  PDV_A388991[9] = new Array(4); PDV_A388991[9][0] = "1987626"; PDV_A388991[9][1] = "The Tally Ho";   PDV_A388991[9][2] = "0"; PDV_A388991[9][3] = "";

  PDV_A388991[10] = new Array(4); PDV_A388991[10][0] = "1987627"; PDV_A388991[10][1] = "The Black Horse";   PDV_A388991[10][2] = "0"; PDV_A388991[10][3] = "";

  PDV_A388991[11] = new Array(4); PDV_A388991[11][0] = "1987628"; PDV_A388991[11][1] = "The Meridian";   PDV_A388991[11][2] = "0"; PDV_A388991[11][3] = "";

  PDV_A388991[12] = new Array(4); PDV_A388991[12][0] = "1987629"; PDV_A388991[12][1] = "The Kings Head";   PDV_A388991[12][2] = "0"; PDV_A388991[12][3] = "";

  PDV_A388991[13] = new Array(4); PDV_A388991[13][0] = "1987630"; PDV_A388991[13][1] = "The Rainbow";   PDV_A388991[13][2] = "0"; PDV_A388991[13][3] = "";


var PDV_l1_388991 = 'View Results';
var PDV_l2_388991 = 'Other:';
var PDV_l3_388991  = '';

  
var PDV_l4_388991 = 'Please choose an answer first!';


//v3.2 30/Aug/11
var protocol=document.location.protocol=="https:"?"https:":"http:";var a2a_track_pub="polldaddy";var a2a_no_3p=1;var PD_ck388991=0;var PD_ck_name388991="PD_poll_"+PDV_id388991;var PDV_n388991="";var PDV_nurl388991=protocol+"//polldaddy.com/n/"+(typeof PDV_h388991!=="undefined"?PDV_h388991:PDV_id388991)+"/"+PDV_id388991+(PDV_w388991!=PDV_id388991?"/"+PDV_w388991:"");function _$(a){return document.getElementById(a)}function is_secure(){return"https:"==document.location.protocol?true:false}function getHead(){return document.getElementsByTagName("head").item(0)}if(pollClosed388991==false){var PDV_server388991=protocol+"//polls.polldaddy.com";var AA388991=new Array();var PDV_html388991='<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form388991" id="PDI_form388991"><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_medID388991+" "+unescape_HTML_388991(PDV_POLL_q388991)+'</div></div></div></div><div class="pds-answer"><span id="pds-answer388991"></span>';if(PDV_po388991==1){PDV_html388991+='<span class="pds-answer-group">';if(PDV_pt388991==0){PDV_html388991+='<span class="pds-answer-input"><input type="radio" name="PDI_answer388991" id="PDI_answerOther388991" value="other" class="pds-radiobutton"/></span>'}PDV_html388991+='<label for="PDI_answerOther388991" class="pds-other-label"><span class="pds-answer-span">'+PDV_l2_388991+'</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText388991" name="PDI_OtherText388991" onclick="PDF_checkOther388991();" onchange="PDF_checkOther388991(true);" /></span>';PDV_html388991+='<span class="pds-clear"></span>';PDV_html388991+="</span>"}PDV_html388991+='</div><div class="pds-vote"><div class="pds-votebutton-outer">';if(PDV_l3_388991==""){PDV_l3_388991="Vote"}if(PDV_s388991<99||PDV_def388991.indexOf("input.pds-votebutton")!=-1){if(PDV_l3_388991=="Vote"||PDV_l3_388991==""){PDV_html388991+='<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_prevote388991(0);">'}else{PDV_html388991+='<input type="button" class="pds-votebutton-pack" value="'+PDV_l3_388991+'" onclick="PD_prevote388991(0);" />'}}else{PDV_html388991+='<a href="javascript:PD_prevote388991(0);" id="pd-vote-button388991" class="pds-vote-button"><span>'+PDV_l3_388991+"</span></a>"}PDV_html388991+='<span class="pds-links">';if(PDV_pr388991==2){PDV_html388991+="<br/>"}else{PDV_html388991+='<a href="javascript:PD_vote388991(1);" class="pds-view-results">'+PDV_l1_388991+"</a><br/>"}if(typeof PDV_share388991!="undefined"){if(PDV_share388991==1){PDV_html388991+='<a class="a2a_dd pds-share"  href="javascript:">'+PDV_l12_388991+"</a>"}}if(PDV_lnk388991==1){PDV_html388991+='<a href="'+protocol+'//polldaddy.com/signup-free/?ad=poll-front" target="_blank" class="pds-pd-link">Polldaddy.com</a>'}PDV_html388991+='<span class="pds-clear"></span>';PDV_html388991+='</span><span class="pds-clear"></span>';PDV_html388991+="</div></div></div></div></div></div></div>";for(PDV_x=0;PDV_x<PDV_A388991.length;PDV_x++){if(PDV_pt388991==0){AA388991[PDV_x]='<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer'+PDV_A388991[PDV_x][0]+'" value="'+PDV_A388991[PDV_x][0]+'" name="PDI_answer388991" /></span><label for="PDI_answer'+PDV_A388991[PDV_x][0]+'" class="pds-input-label"><span class="pds-answer-span">'+unescape_HTML_388991(PDV_A388991[PDV_x][1])+"</span></label>"+PDV_A388991[PDV_x][3]+'<span class="pds-clear"></span><br/></span>'}else{AA388991[PDV_x]='<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer'+PDV_A388991[PDV_x][0]+'" value="'+PDV_A388991[PDV_x][0]+'" name="PDI_answer'+PDV_A388991[PDV_x][0]+'" onclick="javascript:PDF_mc388991(this);" /></span><label for="PDI_answer'+PDV_A388991[PDV_x][0]+'" class="pds-input-label"><span class="pds-answer-span">'+unescape_HTML_388991(PDV_A388991[PDV_x][1])+"</span></label>"+PDV_A388991[PDV_x][3]+'<span class="pds-clear"></span><br/></span>'}}}function PDF_mc388991(c){if(PDV_pt388991>1){var a=0;for(i=0;i<AA388991.length;i++){r=_$(AA388991[i].substring(AA388991[i].indexOf("id=")+4,AA388991[i].indexOf('"',AA388991[i].indexOf("id=")+4)));if(r.type=="checkbox"&&r.checked){a+=1}}if(PDV_po388991==1){var b=_$("PDI_OtherText388991").value;if(b.length>0){a+=1}}if(a>PDV_pt388991){c.checked=false;c.disabled=true}if(a>=PDV_pt388991){for(i=0;i<AA388991.length;i++){r=_$(AA388991[i].substring(AA388991[i].indexOf("id=")+4,AA388991[i].indexOf('"',AA388991[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=true}}}else{if(PDV_po388991==1){_$("PDI_OtherText388991").disabled=false}for(i=0;i<AA388991.length;i++){r=_$(AA388991[i].substring(AA388991[i].indexOf("id=")+4,AA388991[i].indexOf('"',AA388991[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=false}}}}}function PDF_a388991(){PDF_o388991();var b;if(PDV_pt388991==0){for(var a=0;a<AA388991.length;a++){b=_$(AA388991[a].substring(AA388991[a].indexOf("id=")+4,AA388991[a].indexOf('"',AA388991[a].indexOf("id=")+4)));if(b.checked){return b.value+","}}b=_$("PDI_answerOther388991");if(b){if(b.checked){return b.value+","}else{return""}}else{return""}}else{for(a=0;a<AA388991.length;a++){b=_$(AA388991[a].substring(AA388991[a].indexOf("id=")+4,AA388991[a].indexOf('"',AA388991[a].indexOf("id=")+4)));if(b.type=="checkbox"&&b.checked){PDV_a388991=PDV_a388991+b.value+","}}return PDV_a388991}}function PDF_o388991(a){if(PDV_po388991==1){PDV_o388991=_$("PDI_OtherText388991").value}}function PDF_checkOther388991(a){var d=false;if(a){var c=_$("PDI_OtherText388991").value;if(c.length==0){d=true}}if(PDV_pt388991==0){if(a&&d){_$("PDI_answerOther388991").checked=false}else{_$("PDI_answerOther388991").checked=true}}else{if(PDV_pt388991>1){var b=1;obj=_$("PDI_OtherText388991");if(a&&d){b=0}for(i=0;i<AA388991.length;i++){r=_$(AA388991[i].substring(AA388991[i].indexOf("id=")+4,AA388991[i].indexOf('"',AA388991[i].indexOf("id=")+4)));if(r.type=="checkbox"&&r.checked){b+=1}}if(b>PDV_pt388991){obj.disabled=true;obj.value="";for(i=0;i<AA388991.length;i++){r=_$(AA388991[i].substring(AA388991[i].indexOf("id=")+4,AA388991[i].indexOf('"',AA388991[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=true}}}else{if(b<PDV_pt388991){obj.disabled=false;for(i=0;i<AA388991.length;i++){r=_$(AA388991[i].substring(AA388991[i].indexOf("id=")+4,AA388991[i].indexOf('"',AA388991[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=false}}}}}}}function PD_prevote388991(){if(PDV_def388991.indexOf("input.pds-votebutton")==-1){_$("pd-vote-button388991").className="pds-vote-button-load"}var a=document.createElement("SCRIPT");a.charset="utf-8";a.src=PDV_nurl388991+"?"+(new Date).getTime();getHead().appendChild(a)}function PD_vote388991(b){var d=PDF_getTags388991();var c=PDV_server388991+"/vote-js.php?p="+PDV_id388991+(PDV_w388991!=PDV_id388991?"&w="+PDV_w388991:"");var e=false;if(b!=1){PDV_a388991="";PDV_a388991=PDF_a388991(_$("PDI_form388991"));if(PDV_a388991.length==0&&PDV_o388991.length==0){e=true;alert(PDV_l4_388991);if(PDV_def388991.indexOf("input.pds-votebutton")==-1){_$("pd-vote-button388991").className="pds-vote-button"}}else{if(PDV_b388991>0){if(PDF_getCookie388991(PD_ck_name388991)=="true"){PD_ck388991=1}else{PDF_setCookie388991(PD_ck_name388991)}}c+="&b="+PDV_b388991+"&a="+PDV_a388991+"&o="+PDF_urlEncode388991(PDV_o388991)+"&va="+PDV_va388991+"&cookie="+PD_ck388991+"&url="+escape(location.href)+(d.length>0?"&tags="+d:"")+(PDV_n388991.length>0?"&n="+PDV_n388991:"")}}if(!e){var a=document.createElement("SCRIPT");a.charset="utf-8";a.src=c;getHead().appendChild(a)}}function PDF_getTags388991(){if(typeof pd_tags=="undefined"){return""}var a="";for(var b in pd_tags){a+=PDF_urlEncode388991(b)+":"+PDF_urlEncode388991(pd_tags[b])+";"}return a.slice(0,-1)}function PDF_urlEncode388991(a){return encodeURIComponent(a).replace(/\%20/g,"+").replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/\~/g,"%7E")}function PDF_rand388991(a){var e=a.length;if(e==0){return false}while(--e){var d=Math.floor(Math.random()*(e+1));var c=a[e];var b=a[d];a[e]=b;a[d]=c}return a}function PDF_loadStyleSheet388991(){var a=document.createElement("style");a.setAttribute("type","text/css");a.setAttribute("id","poll_style388991");if(a.styleSheet){a.styleSheet.cssText=PDV_def388991}else{a.appendChild(document.createTextNode(PDV_def388991))}getHead().appendChild(a)}function PDV_go388991(){if(is_secure()){PDV_def388991=PDV_def388991.replace(/http:\/\/i.polldaddy/g,"https://polldaddy");PDV_def388991=PDV_def388991.replace(/http:\/\/s3.wordpress/g,"https://s-ssl.wordpress")}if(!_$("poll_style388991")){PDF_loadStyleSheet388991()}if(typeof load_audioLibrary_388991=="function"&&typeof PDV_audio_388991!=="undefined"&&PDV_audio_388991>0){load_audioLibrary_388991()}if(!_$("PDI_container388991")){document.write('<a name="pd_a_388991" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container388991"></div>')}if(typeof supercookie!=="undefined"&&typeof sc!=="object"){sc=new supercookie()}PDV_html388991+='<img src="'+(is_secure()?"https://secure":"http://pixel")+'.quantserve.com/pixel?a.1=p-18-mFEk4J448M&amp;a.2=p-ab3gTb8xb3dLg&labels.1=type.polldaddy.poll" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>';_$("PDI_container388991").innerHTML=PDV_html388991;if(PDV_POLLRAND388991){AA388991=PDF_rand388991(AA388991)}y388991="";for(x388991=0;x388991<AA388991.length;x388991++){y388991=y388991+AA388991[x388991]}_$("pds-answer388991").innerHTML=y388991;share388991()}function PDF_setCookie388991(f){var c="/";var o="";var b="";var d=0;if(typeof(PDV_expire388991)!=="undefined"){d=parseInt(PDV_expire388991)}if(d>0){d=d*1000}else{d=60*60*24*30*1000}var e=new Date();e.setTime(e.getTime());d=e.getTime()+(d);var a=new Date(d);if(typeof PDV_version388991!=="undefined"){f+=(PDV_version388991>0?"_"+PDV_version388991:"")}PDF_log388991("Cookie Name: "+f);if(typeof sc=="object"&&typeof sc.set=="function"){PDF_log388991("SET supercookie");sc.set(f,escape(d))}else{PDF_log388991("SET standard cookie");document.cookie=f+"="+escape(d)+((d)?";expires="+a.toGMTString():"")+((c)?";path="+c:"")+((o)?";domain="+o:"")+((b)?";secure":"")}}function PDF_getCookie388991(f){var a="";var b="";var c="";if(typeof PDV_version388991!=="undefined"){f+=(PDV_version388991>0?"_"+PDV_version388991:"")}PDF_log388991("Cookie Name: "+f);if(typeof sc=="object"&&typeof sc.get=="function"){PDF_log388991("GET supercookie");c=sc.get(f)}else{PDF_log388991("GET standard cookie");var d=document.cookie.split(";");for(i=0;i<d.length;i++){a=d[i].split("=");b=a[0].replace(/^\s+|\s+$/g,"");if(b==f){if(a.length>1){c=unescape(a[1].replace(/^\s+|\s+$/g,""))}break}a=null;b=""}}PDF_log388991("Cookie Value: "+c);if(c=="true"){return c}else{var e=new Date();c=parseInt(c);PDF_log388991("Time: "+e.getTime());if(c>e.getTime()){return"true"}}return null}function PDF_callback388991(){if(typeof pd_callback=="function"){pd_callback()}else{if(typeof pd_callback_388991=="function"){pd_callback_388991()}}}function share388991(){if(typeof PDV_share388991!="undefined"){if(PDV_share388991==1){a2a_linkname="Poll: "+PDV_POLL_q388991;a2a_linkurl=document.location+"#pd_a_388991";a2a_track_links="custom";a2a_track_links_key=document.location+"#pd_a_388991";a2a_onclick=1;var a=document.createElement("SCRIPT");a.charset="utf-8";a.src=protocol+"//static.addtoany.com/menu/page.js";getHead().appendChild(a)}}}function unescape_HTML_388991(a){var b=document.createElement("DIV");b.innerHTML=a;if(b.innerText!==undefined){return b.innerText}return b.textContent}function PDF_log388991(a){if(typeof(_debug)!=="undefined"&&_debug){if(typeof(console)!=="undefined"&&console!=null){console.log(a)}}}if(pollClosed388991==false){PDV_go388991()}else{share388991()};
