function popup(URL){
        reWin=window.open(URL,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=860,height=640');
}
function run(url) {
    setTimeout("top.location.href='" + url + "'",2000);
}
function anketa(f,action){
	var id_answers="";
	for(var i = 0; i < f.vote.length;i++){
       if(f.vote[i].checked){
           id_answers=f.vote[i].value;
       }
    }
    if(id_answers!=="")
    	reWin=window.open('index.php?anketa&id='+id_answers+'&action='+action,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=ho,width=450,height=300');
    else
	    reWin=window.open('index.php?anketa&action='+action,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=250,height=200');
    
}
sfHover = function() { 
	var sfEls = document.getElementById("nav").getElementsByTagName("LI"); 
	
	for (var i=0; i<sfEls.length; i++){ 
		sfEls[i].onmouseover=function() { this.className+=" sfhover"; } 
		sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } 
	}
} 
if (window.attachEvent) window.attachEvent("onload", sfHover); 

