	
 var PDV_POLLRAND106185 = 0;

 var PDV_a106185 = "";
 var PDV_o106185 = "";
 var PDV_id106185 = 106185;
 var PDV_pt106185 = 0;
 var PDV_po106185 = 1;
 var PDV_s106185 = 2;
 var PDV_b106185 = 2;
 
 var PDV_server106185 = 'http://ipoll.ru';
 var PDV_html106185 = '<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form106185" id="PDI_form106185"><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">Существует ли CENTR?</div></div></div></div><div class="pds-answer"><span id="pds-answer106185"></span>';
 

     PDV_html106185 += '<input class="pds-radiobutton" type="radio" value="other" id="PDI_answerOther106185" name="PDI_answer106185">';
 	PDV_html106185 += '<label for="PDI_answerOther106185">Другое:</label><br><input class="pds-textfield" type="text" id="PDI_OtherText106185" name="PDI_OtherText106185" onclick="PDI_checkOther106185();">';
 	 PDV_html106185 += '</div><div class="pds-vote"><div class="pds-votebutton-outer"><input type="button" class="pds-votebutton" style="border:none;cursor: pointer;" src="http://ipoll.ru/images/spacer.gif" onclick="PD_vote106185(0);"><a href="javascript:PD_vote106185(1);">&gt; Результаты</a><br><a href="http://www.weblancer.net/affiliate/andygtak/" target="_blank" style="display:inline;visibility:visible;">&gt; Работа в сети</a><br></div></div></div></div></div></div></div>';  

 var AA106185=new Array();
 
		AA106185[0]='<input class="pds-radiobutton" type="radio" id="PDI_answer38521" value="38521" name="PDI_answer106185"><label for="PDI_answer38521">Да,вдвоем еще круче</label><br>';
				AA106185[1]='<input class="pds-radiobutton" type="radio" id="PDI_answer38522" value="38522" name="PDI_answer106185"><label for="PDI_answer38522">Нет, без Guf&#039;a это не CENTR</label><br>';
				AA106185[2]='<input class="pds-radiobutton" type="radio" id="PDI_answer38523" value="38523" name="PDI_answer106185"><label for="PDI_answer38523">Им нужен третий участник</label><br>';
		
function PDF_a106185()
{
  PDF_o106185();
  var r;
  if(PDV_pt106185 == 1) 
  {
    for(i=0; i < AA106185.length; i++)
    {
      r = document.getElementById(AA106185[i].substring(AA106185[i].indexOf('id=')+4, AA106185[i].indexOf('"', AA106185[i].indexOf('id=')+4)));
      if (r.type == "checkbox" && r.checked)
		  {
        PDV_a106185 = PDV_a106185 + r.value + ",";
      }
    }
    return PDV_a106185;
  }
  else
  {
    for(var i = 0; i < AA106185.length; i++)
    {
      r = document.getElementById(AA106185[i].substring(AA106185[i].indexOf('id=')+4, AA106185[i].indexOf('"', AA106185[i].indexOf('id=')+4)));
      if(r.checked)
      {
        return r.value + ",";
      }
  }
  r = document.getElementById("PDI_answerOther106185");
  if(r){if(r.checked){return r.value + ",";}else{return '';}}else{return "";}}}
  function  PDF_o106185(r){if(PDV_po106185 == 1){PDV_o106185 = document.getElementById("PDI_OtherText106185").value;}}
function PDI_checkOther106185()
{
	if(PDV_pt106185 == 0)
	{
		document.getElementById("PDI_answerOther106185").checked = true;
	}
}
function PD_vote106185(R)
{
	var randomnumber=Math.floor(Math.random()*11);
	if(R==1)
	{
		var s = document.createElement("SCRIPT");
		s.src = PDV_server106185 + "/vote.php?s="+ PDV_s106185 +"&vr=1&b="+ PDV_b106185 +"&p="+ PDV_id106185 +"&pt="+ PDV_pt106185 +"&cookie=" + PD_ck106185 + "&rdm="+  randomnumber + "&url=" + escape(location.href);
  var h = document.getElementsByTagName("head").item(0);
  h.appendChild(s);
  }
  else
  {
  if(PDV_b106185> 0)
		{
			Set_Cookie106185('PD_poll_106185', 'true', 30, '/', '', '' );
		}
		PDV_a106185 = ''; 
		PDV_a106185 = PDF_a106185(document.getElementById("PDI_form106185"));
		if(PDV_a106185.length == 0 && PDV_o106185.length == 0)
		{
			alert("Пожалуйста, выберите один из пунктов!")
		}
		else
		{
			var s = document.createElement("SCRIPT");
			s.src = PDV_server106185 + "/vote.php?s="+ PDV_s106185 +"&b="+ PDV_b106185 +"&p="+ PDV_id106185 +"&a="+ PDV_a106185 +"&o="+ PDV_o106185 +"&pt="+ PDV_pt106185 +"&cookie=" + PD_ck106185 + "&rdm=" + randomnumber + "&url=" + escape(location.href);
  var h = document.getElementsByTagName("head").item(0);
  h.appendChild(s);
  }
  }
  }
  var PD_pollString106185 = PDV_html106185;
var PD_ck106185 = 0;

function PDV_rand106185 ( 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_go106185()
{
	if(!document.getElementById('poll_style106185'))
	{
		fileref=document.createElement("style");
		fileref.setAttribute("type", "text/css");
		fileref.setAttribute("id", "poll_style106185");
		var def = '/* PD01 CSS Document "White Plastic Standard" *//* ----------- Background Box Div styles ----------- */#PDI_container106185 .pds-box { width: 270px; /* for fixed width enter value here, max width 700px */ color: #333; background: #86858a url(http://ipoll.ru/poll/images/pdb01-bottom-left.gif) no-repeat left bottom; font-family: Verdana, Arial, Helvetica, sans-serif; text-align: left; } #PDI_container106185 .pds-box-outer { background: url(http://ipoll.ru/poll/images/pdb01-bottom-right.gif) no-repeat right bottom; }#PDI_container106185 .pds-box-inner { background: url(http://ipoll.ru/poll/images/pdb01-top-left.gif) no-repeat left top; } #PDI_container106185 .pds-box-top { background: url(http://ipoll.ru/poll/images/pdb01-top-right.gif) no-repeat right top; padding: 20px 20px 20px 20px; } /* ----------- Question Box Div styles ----------- */#PDI_container106185 .pds-question { background: url(http://ipoll.ru/poll/images/pdq01-bottom-left.gif) no-repeat left bottom; } #PDI_container106185 .pds-question-outer { background: url(http://ipoll.ru/poll/images/pdq01-bottom-right.gif) no-repeat right bottom; padding-bottom: 15px; }#PDI_container106185 .pds-question-inner { background: url(http://ipoll.ru/poll/images/pdq01-top-left.gif) no-repeat left top; } #PDI_container106185 .pds-question-top { background: url(http://ipoll.ru/poll/images/pdq01-top-right.gif) no-repeat right top; padding: 15px 15px 0px 15px; font-size: 12px; color: #ECBF00; } /* ----------- Answer Box Div styles ----------- */#PDI_container106185 .pds-answer { font-size: 10px; /*line-height: 20px; */ color: #555; padding: 10px 20px 15px 20px; } #PDI_container106185 .pds-answer label{ /* currently left unstyled to maximise compatibilty */ }#PDI_container106185 .pds-radiobutton { /* currently left unstyled to maximise compatibilty */ } #PDI_container106185 .pds-checkbox { /* currently left unstyled to maximise compatibilty */ } #PDI_container106185 .pds-textfield { width: 100%; font-size: 10px; color: #333; background-color: #ccc; border: 1px; border-color: #ccc; padding: 1px 1px 1px 1px; margin: 5px 0px 0px 0px; } #PDI_container106185 .pds-answer-feedback { background-color: #ccc; padding: 0px 0px 0px 0px; height:18px; margin: 2px 0px 5px 0px; } #PDI_container106185 .pds-answer-feedback-bar { background: url(http://ipoll.ru/poll/images/pd01-bargif.gif) repeat-x; margin: 3px; padding: 0px; height:12px; border: 0px; }#PDI_container106185 .pds-answer-feedback img { background: url(http://ipoll.ru/poll/images/pd01-bargif.gif) repeat-x; margin: 3px; padding: 0px; height:12px; border: 0px; }/* ----------- Vote Box Div styles ----------- */#PDI_container106185 .pds-vote { font-size: 9px; color: #c3C4c7; line-height: 17px; padding: 0px 20px 10px 20px; } #PDI_container106185 .pds-votebutton-outer { height:61px; }#PDI_container106185 .pds-vote a { font-size: 9px; color: #666; text-decoration: none; border-top: 1px; border-bottom: 1px; border-top-color: #ccc; border-bottom-color: #ccc; border-top-style: solid; border-bottom-style: solid; padding: 2px 0px 2px 0px; } #PDI_container106185 input.pds-votebutton { width: 61px; height: 61px; background: url(http://ipoll.ru/poll/images/pd01-votebutton.gif) no-repeat; outline: none; float: right;}#PDI_container106185 input.pds-votebutton:hover { background: url(http://ipoll.ru/poll/images/pd01-votebutton.gif) no-repeat 0 -60px;}#PDI_container106185 input.pds-votebutton-pack { float: right; font-size: 10px;}#PDI_container106185 .pds-totalvotes-outer { } #PDI_container106185 .pds-totalvotes-inner { font-size: 10px; color: #ffb400; background-color: #666; padding: 3px 6px 3px 3px; margin: 0px 0px 10px 0px; text-transform: uppercase; letter-spacing: 1px; }';
		if (fileref.styleSheet) // IE
		{fileref.styleSheet.cssText = def;} 
		else // the world
		{fileref.appendChild(document.createTextNode(def));}	  
    document.getElementsByTagName("head").item(0).appendChild(fileref);
	}

	if(!document.getElementById('PDI_container106185'))
	{document.write('<a name="pd_a_106185"></a><div class="PDS_Poll" id="PDI_container106185"></div>');}
	if(Get_Cookie106185('PD_poll_106185') == 'true')
	{PD_ck106185=1;}
	document.getElementById('PDI_container106185').innerHTML = PD_pollString106185;
	if(PDV_POLLRAND106185){AA106185 = PDV_rand106185(AA106185);}
	y106185 = '';
	for(x106185=0; x106185 < AA106185.length; x106185++){y106185 = y106185 + AA106185[x106185];}
	document.getElementById('pds-answer106185').innerHTML = y106185;	

}
function Set_Cookie106185( 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_Cookie106185( 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;}
}	

PDV_go106185();

