
function apriRisultati(test,domanda){

  w = window.open("/grafici/creaGraph.php?test="+test+"&dom="+domanda,"w","resizable=1,scrollbars=1,height=600,width=570,top=200,left=400");
  
}
var ieMinVersion = 5;
var mozMinVersion = 5;

if(navigator.appName.indexOf('Microsoft Internet Explorer') != -1){

	bv = navigator.userAgent;
	ieVind = bv.indexOf("MSIE") + 5;
	ieV = parseFloat(bv.substr(ieVind, bv.indexOf(";", bv.indexOf("MSIE")) - ieVind));

	if(ieV >= ieMinVersion){
		browserChecked = true;
		browser="ie6";
	}
    
}else if(navigator.appName.indexOf('Netscape') != -1){
	if(parseInt(navigator.appVersion) >= mozMinVersion){
		if(navigator.userAgent.indexOf("Netscape") != -1){
			if(parseFloat(navigator.userAgent.substr(navigator.userAgent.lastIndexOf("/") + 1)) >= 7){
				browserChecked = true;
   	 	        browser="ns";				
			}
		}else if(navigator.userAgent.indexOf("rv:1.6") != -1 || navigator.userAgent.indexOf("rv:1.4") != -1 || navigator.userAgent.indexOf("rv:1.7") != -1 || navigator.userAgent.indexOf("rv:1.8") != -1){
			browserChecked = true;
 	        browser="ff";							
		} else if (navigator.userAgent.indexOf("Safari") != -1){
			browserChecked = true;
	        browser="s";							
		}
	}
} else if(navigator.appName.indexOf('Safari') != -1){
	browserChecked = true;
    browser="s";					
}

 function cambiaBlogTop(){
    numero = caricaBlogTop();	
	if ((numero == "0") || (numero == "1"))
	  numero ="";
 
	if ( eval("document.getElementById(\"header\")") != null)
	{
	  eval("document.getElementById(\"header\").style.background=\" url('/blog/wp-content/themes/default/images/Top"+numero+".jpg') no-repeat bottom center\";");
	} 	
	setTimeout("cambiaBlogTop()",15000); 
    
   }
      
   function caricaBlogTop()
   {
     rannum = Math.floor(Math.random() * 4)
     return rannum;
   }
   
   cambiaBlogTop();
