<!--//begin
function popout(url,wheight,wwidth) {
var winl = (screen.width - wwidth) / 2;
var wint = (screen.height - wheight) / 2;
var openString
openString = "'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + wwidth + ",height=" + wheight + ",top="+wint+",left="+winl+"'"
sealWin=window.open(url,"",openString);
//javascript:window.close()
}

function popup(url,wheight,wwidth) {
var winl = (screen.width - wwidth) / 2;
var wint = (screen.height - wheight) / 2;
var openString
openString = "'width=" + wwidth + ",height=" + wheight + ",top="+wint+",left="+winl+"'"
sealWin=window.open(url,"",openString);
//javascript:window.close()
}

function GetPage(s)
   {
	var d = s.options[s.selectedIndex].value;
        window.top.location.href = d;
        s.selectedIndex=0;
   }

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,0);
  }
}
function viewFoto(img){
  largh=foto1.width+15;
  altez=foto1.height+15;
  var winl = (screen.width - largh) / 2;
  var wint = (screen.height - altez) / 2;  
  stringa="location=0,resizable=0,width="+largh+",height="+altez+",top="+wint+",left="+winl;
  finestra=window.open(img,"",stringa);
}


	function imageSwap1(){
		window.document.imageswap.src = "images/clear.gif";
	}
	function imageSwap2(){
		window.document.imageswap.src = "images/swap1.jpg";
	}
	function imageSwap3(){
		window.document.imageswap.src = "images/swap2.jpg";
	}
	function imageSwap4(){
		window.document.imageswap.src = "images/swap3.jpg";
	}
	function imageSwap5(){
		window.document.imageswap.src = "images/swap4.jpg";
	}
image1 = new Image();
image1.src = "images/logo.jpg";
image2 = new Image();
image2.src = "images/swap1.jpg";
image3 = new Image();
image3.src = "images/swap2.jpg";
image4 = new Image();
image4.src = "images/swap3.jpg";
image5 = new Image();
image5.src = "images/swap4.jpg";

//end-->