
	var DPRandom268 = false;
 	var DPAnswer268="";
	var DPOtherA268 = 1;
	var DPPoll268 = 268;
	var DPMC268 = 0;
	var DPStyle268 = 10;
	var DPOther268="";
	var DPURL268="http://www.universalpolls.com/";
	var DPLang268 = 0;
	var DPBlock268="cookie";
	var DPResult268="v";
	var DPClose268="0";
	var DPAnly268 = 0;

	var temp1268 = new Image();
	temp1268.src="http://www.universalpolls.com/userstyles/10/box.png";
	var temp2268 = new Image();
	temp2268.src="http://www.universalpolls.com/userstyles/10/qbox.png";
	var temp3268 = new Image();
	temp3268.src="http://www.universalpolls.com/userstyles/10/bar.png";
	var temp4268 = new Image();
	temp4268.src="http://www.universalpolls.com/userstyles/10/vote.png";

	var DPhtml268 = '<form style="margin-bottom:0px;margin-top:0px;" onSubmit="return false;" name="DPForm268" id="DPForm268"><div class="DPBox" style="font-size:12px;"><div class="DP2"><div class="DP3"><div class="DP4"></div><div class="DPQuestion"><div class="DP2"><div class="DP3"><div class="DP4"></div>Who do you think will win the Sussex League?</div></div><div class="DP5"><div></div></div></div><div class="DPAnswer"><span id="DPAnswer268"></span>';
			
    DPhtml268 += '<input class="DPRadiobutton" type="radio" value="other" id="DPAnswerOther268" name="DPAnswer268"></input>';
					
	   	DPhtml268 += '<label for="DPAnswerOther">Other:</label><br /><input class="DPTextfield" type="text" id="DPOtherText268" name="DPOtherText268" onclick="DPselectO268();"></input>';
				
	DPhtml268 += '</div><div class="DPVote"><div class="DPVotebutton2"><a onclick="javascript:return DPvote268(0);" class="DPVotebutton" href="#"><input type="image" value="" height="40px" src="http://www.universalpolls.com/images/styles/spacer.gif"/><br/>Vote</a><a href="javascript:DPvote268(1);">&gt; View Results</a><br /><a href="http://www.universalpolls.com/" target="_blank" style="display:inline;visibility:visible;"></a><br /></div></div><p style="clear: both;margin: 0px;padding: 0px;"></p></div></div><div class="DP5"><div></div></div></div></form>';
			
 	var AA268 = new Array();
			
    AA268[0] = '<input class="DPRadiobutton" type="radio" id="DPAnswer1073" value="1073" name="DPAnswer268"></input><label for="DPAnswer1073">Redhill</label><br />';
					
    AA268[1] = '<input class="DPRadiobutton" type="radio" id="DPAnswer1074" value="1074" name="DPAnswer268"></input><label for="DPAnswer1074">Chichester City</label><br />';
					
    AA268[2] = '<input class="DPRadiobutton" type="radio" id="DPAnswer1075" value="1075" name="DPAnswer268"></input><label for="DPAnswer1075">Rye United</label><br />';
					
    AA268[3] = '<input class="DPRadiobutton" type="radio" id="DPAnswer1076" value="1076" name="DPAnswer268"></input><label for="DPAnswer1076">Peacehaven & Telscombe</label><br />';
					
    AA268[4] = '<input class="DPRadiobutton" type="radio" id="DPAnswer1077" value="1077" name="DPAnswer268"></input><label for="DPAnswer1077">Crawley Down</label><br />';
					
    AA268[5] = '<input class="DPRadiobutton" type="radio" id="DPAnswer1078" value="1078" name="DPAnswer268"></input><label for="DPAnswer1078">Three Bridges</label><br />';
					
	function DPa268(r)
	{
		var DPa268 = '';
		DPother268(r);
 		if(DPMC268 == 1)
		{
			for(i = 0; i < r.elements.length; i++)
				if (r.elements[i].type == "checkbox" && r.elements[i].checked)
					DPa268 = DPa268 + r.elements[i].value + ",";
			return DPa268;
 		}
 		else
 		{
  			for(var i = 0; i < r.DPAnswer268.length; i++)
  				if(r.DPAnswer268[i].checked)
  					return r.DPAnswer268[i].value + ",";
  			return '';
  		}
  	}

  	function  DPother268(r)
  	{
		DPOther268 = r.DPOtherText268.value;
  	}

	function DPselectO268()
	{
		document.getElementById("DPAnswerOther268").checked = true;
	}

	function DPvote268(R)
	{
		var ck = 0;
		if (Get_Cookie268('DPcook268') == 'true')
			ck = 1;
		else
			if(R == 0)
				Set_Cookie268( 'DPcook268', 'true', 30, '/', '', '' );

		var randomnumber = Math.floor(Math.random()*11);

		if(R == 1)
		{
			var s = document.createElement("SCRIPT");
			s.src = DPURL268 + "vote.php?s=" + DPStyle268 + "&r=" + DPRandom268 + "&p=" + DPPoll268 + "&b=no&mc=" + DPMC268 + "&l=" + DPLang268 + "&c=" + DPClose268 + "&an=" + DPAnly268 + "&v=" + DPResult268 + "&oA=" + DPOtherA268 + "&rdm=" +  randomnumber;
      		var h = document.getElementsByTagName("head").item(0);
			h.appendChild(s);
		}
		else
		{
			var DPAns268 = '';
			DPAns268 = DPa268(document.getElementById("DPForm268"));
			if(DPAns268.length == 0 && DPOther268.length == 0)
				alert("Please choose an answer first.");
			else
			{
				var s = document.createElement("SCRIPT");
				s.src = DPURL268 + "vote.php?s=" + DPStyle268 + "&r=" + DPRandom268 + "&p=" + DPPoll268 + "&a=" + DPAns268 + "&oA=" + DPOtherA268 + "&o=" + DPOther268 + "&mc=" + DPMC268 + "&l=" + DPLang268 + "&c=" + DPClose268 + "&an=" + DPAnly268 + "&v=" + DPResult268 + "&b=" + DPBlock268 + "&cookie=" + ck + "&rdm=" + randomnumber;
				var h = document.getElementsByTagName("head").item(0);
				h.appendChild(s);
			}
		}
		if(R == 0)
			return false;
	}

	var DPPollString268 = DPhtml268;

	function DPRandomize268 ( 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 DPshow268()
	{
		fileref = document.createElement("link");
		fileref.setAttribute("rel", "stylesheet");
		fileref.setAttribute("type", "text/css");
		fileref.setAttribute("href", "http://www.universalpolls.com/userstyles/" + DPStyle268 + ".css");
		document.getElementsByTagName("head").item(0).appendChild(fileref);
		if(!document.getElementById('DPContainer268'))
			document.write('<div class="DPPoll10" id="DPContainer268"></div>');
		else
			document.getElementById("DPContainer268").className = "DPPoll10";
		document.getElementById('DPContainer268').innerHTML = DPPollString268;

  		if(DPRandom268)
  			AA268 = DPRandomize268(AA268);
  		y268 = '';
  		for(x268 = 0; x268< AA268.length; x268++)
  			y268 = y268 + AA268[x268];

		document.getElementById('DPAnswer268').innerHTML = y268;

		if( typeof _post_display_poll == 'function')
			_post_display_poll();
	}

	function Set_Cookie268( name, value, expires, path, domain, secure )
	{
		var today = new Date();
		today.setTime( today.getTime() );
		if ( expires )
		{
			expires = expires * 1000 * 60 * 60 * 24;
		}
		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_Cookie268( 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;
		}
	}

	DPshow268();
			
