function MM_reloadPage(init) {   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {   document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true);  function MM_swapImgRestore() {  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }  function MM_preloadImages() {   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }  function MM_findObj(n, d) {  var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && document.getElementById) x=document.getElementById(n); return x; }  function MM_swapImage() {   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} }           iter=0;         function golos()         {         if(!iter)         {         	document.write('<SCRIPT language=JavaScript src="http://www.ziptrading.ru/golos.php?act=java">');         }         else         {         document.write('<SCRIPT language=JavaScript src="">');         }         document.write('<\/script>');         iter=1;         }         function news(begin)         {           document.news_go.action="?"+"_news";           document.news_go.news_begin.value=begin;           document.news_go.submit();         }  	function add()         {         if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))         	{         	window.external.AddFavorite("http://www.ziptrading.ru","Компания ZipTrading");         }         else         {         	if(navigator.appName == "Netscape")         	alert("Нажмите CTRL+D чтобы добавить сайт в избранное!");         }         }  	function rez()   {    	windowprops = "toolbar=no,width=216,height=140," + "directories=no,status=no,scrollbars=no,resize=no," + "menubar=no";    	window.open("../golos.php?action=results&amp;poll_ident=$poll_id&act=rez","Результаты голосования",windowprops);  	}  	
 var NS = (navigator.appName.indexOf("Netscape")!=-1); var MS = (navigator.appName.indexOf("Microsoft")!=-1); var VER=parseInt(navigator.appVersion); var CSS=1; var OldCSS=((MS&&VER>=4)||(NS&&VER>=5)); var NS4=(NS&&VER==4); var NS6=(NS&&VER==5); var IE4=(MS&&VER==4); var IE5=(MS&&VER==5); var ver4= (VER>=4&&(MS||NS)); var ver5=((MS&&VER>=5)||(NS&&VER>=5));

function expandEl(el){ if ( !CSS )  return; if ( IE4 ) 	{ 	whichEl = eval('div'+el); 	whichIm = eval('im'+el); } 	else { 	whichEl = document.getElementById('div'+el); 	whichIm = document.getElementById('im'+el); } if (whichEl ) 	{ 	if ( whichEl.style.display != "block") 	{  whichEl.style.display = "block";  whichIm.src="../images/minus.gif"; 	} 	else  {  whichEl.style.display = "none";  whichIm.src="../images/plus.gif"; 	} }}if (ver4) { 	with (document) 	{ 	write("<style type='text/css'>"); 	if (!CSS) 	{  write(".razdel {}"); 	} 	else 	{  write(".razdel {display:none; }"); 	} 	write("</style>"); }}
