// JavaScript Document
function enter1() { 
		ris = screen.width;
		xpos=(x - parseFloat(980))/2;
		ypos=(y - parseFloat(660))/2; 
		if(ris!= 800){
		features="width=980px,height=660px,top="+ypos+",left="+xpos+";"
		} else {
			features="width=780px,height=460px,top="+ypos+",left="+xpos+";"
		}
		theURL='ita/deta_it.htm';
		winName='a';
		//a=window.open(theURL,winName,features);
		//a.close();
		a=window.open(theURL,winName,features);
		a.focus();
	}
	function enter2() { 
		ris = screen.width;
		xpos=(x - parseFloat(980))/2;
		ypos=(y - parseFloat(660))/2; 
		if(ris!= 800){
		features="width=980px,height=660px,top="+ypos+",left="+xpos+";"
		} else {
			features="width=760px,height=460px,top="+ypos+",left="+xpos+";"
		}
		theURL='eng/deta_en.htm';
		winName='a';
		a=window.open(theURL,winName,features);
		a.focus();
	}
	
	
function assegnaXMLHttpRequest() {

// lista delle variabili locali
var
 // variabile di ritorno, nulla di default
 XHR = null,
 
// informazioni sul nome del browser
 browserUtente = navigator.userAgent.toUpperCase();

// browser standard con supporto nativo
 // non importa il tipo di browser
 
 if(typeof(XMLHttpRequest) === "function" || typeof(XMLHttpRequest) === "object")
  XHR = new XMLHttpRequest();
  
	// browser Internet Explorer
 	// è necessario filtrare la versione 4
 else if(
  window.ActiveXObject &&
  browserUtente.indexOf("MSIE 4") < 0
 ) {
	 
	// la versione 6 di IE ha un nome differente
	// per il tipo di oggetto ActiveX
  if(browserUtente.indexOf("MSIE 5") < 0)
   XHR = new ActiveXObject("Msxml2.XMLHTTP");

  	// le versioni 5 e 5.5 invece sfruttano lo stesso nome
  else
   XHR = new ActiveXObject("Microsoft.XMLHTTP");
 }

 return XHR;

}

function prendiElementoDaId(id_elemento) {
	// elemento da restituire
	 var elemento;
	 
	 // se esiste il metodo getElementById
	 // questo if sarà diverso da false, null o undefined
	 // e sarà quindi considerato valido, come un true
	 if(document.getElementById)
		 elemento = document.getElementById(id_elemento);
		 
		 // altrimenti è necessario usare un vecchio sistema
		 else
		  elemento = document.all[id_elemento];
		
		//restituzione elemento
		 return elemento;
}

	var x=screen.width ;
	var y=screen.height ;   
	
	moveTo(0, 0)
	self.resizeTo(x,y);
	
	
	function logo(){
		r1 = 800;
		r2 = 1024;
		r3 = 1280;
			if ( screen.width == r1 ){
				document.write('<img src="img/striscia_'+ r1 +'.jpg">');
			}  
			if( screen.width == r2 ){
					document.write('<img src="img/striscia_'+ r2 +'.jpg">');
			} 
			if( screen.width != r1 && screen.width != r2){
					document.write('<img src="img/striscia_'+ r3 +'.jpg">');
			} 
	}
	function claim(){
		r1 = 800;
		r2 = 1024;
		r3 = 1280;
			if ( screen.width == r1 ){
				document.write('<img src="img/claim_800.png">');
			}  
			if( screen.width == r2 ){
					document.write('<img src="img/claim_1024.png">');
			} 
			if( screen.width != r1 && screen.width != r2){
					document.write('<img src="img/claim_1280.png">');
			} 
	}
	function caricaloghi(){
		
		r1 = 800;
		r2 = 1024;
		r3 = 1280;
			if ( screen.width == r1 ){
			
				prendiElementoDaId('logo').innerHTML = '<img src="img/logo_'+r1+'.jpg" align ="right">';
			}  
			if( screen.width == r2 ){
			
					prendiElementoDaId('logo').innerHTML = '<img src="img/logo_'+r2+'.jpg" align ="right">';
			} 
			if( screen.width != r1 && screen.width != r2){
			
					prendiElementoDaId('logo').innerHTML = '<img src="img/logo_'+ r3 +'.jpg" align ="right">';
			} 

	}