function noSpan(user,domain){
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}

function noSpanSubject(user,domain,subject){
	locationstring = "mailto:" + user + "@" + domain + "?subject=" + subject;
	window.location = locationstring;
}

function Apri(url,width,height){
	window.open(url,'PDF','WIDTH='+width+',HEIGHT='+height+',scrollbars=1' );
}

function open_win() {
	window.open('show_quick.html', 'newWin', 'scrollbars=no,status=yes,width=220,height=160');
}

function pop(){
	window.open('it/info_cataloghiDisponibili.html','Cataloghi','toolbar=no,scrollbars=no,resizable=yes,width=610,height=480');
}
function pop2(){
	window.open('it/info_biglietterie.html','Biglietterie','toolbar=no,scrollbars=no,resizable=yes,width=610,height=610');
}

function zoom(photoName,lingua){
        winFoto=window.open("", "Img" , "scrollbars=yes,toolbar=no,resizable=no,width=660,height=560");
	winFoto.document.open();
	winFoto.document.writeln('<HTML>');
	winFoto.document.writeln('<HEAD>');
	if (lingua=="it"){
		winFoto.document.writeln('<TITLE>Zoom</TITLE');
	}else{
		winFoto.document.writeln('<TITLE>Zoom</TITLE');
	}
	winFoto.document.writeln('</HEAD>');
	winFoto.document.writeln('<BODY BGCOLOR="#ffffff">');
	winFoto.document.writeln('<TABLE BORDER=0');
	winFoto.document.writeln('CELLSPACING=0');
	winFoto.document.writeln('CELLPADDING=3>');
	winFoto.document.writeln('<TRALIGN="CENTER">');
	winFoto.document.writeln('<TD VALIGN=MIDDLE ALIGN=CENTER><IMG');
	winFoto.document.writeln('SRC="'+photoName+'"></TD>');
	winFoto.document.writeln('</TR>');
	winFoto.document.writeln('</TABLE>');
	winFoto.document.writeln('</BODY>');
	winFoto.document.writeln('</HTML>');
	winFoto.document.close();
}
	
function apriPop(photoName) {
	msg=open("","DisplayWindows"," toolbar=no,directories=no,menubar=no,resizable=no");
	d=msg.document;
	d.write("<head><SCRIP"+"T>")
	d.write("function ridimensiona(){")
	d.write("window.resizeTo(")
	d.write("document.im1.width+11,")
	d.write("document.im1.height+80);")
	d.write("};document.title=document.im1.src;</SCRIP"+"T></head>")
	d.write("<body topmargin=0 leftmargin=0 scroll=no>")
	d.write("<img src='"+photoName+"' name='im1' onLoad='ridimensiona()'>")
	d.write("</body>")
	d.close()
	msg.focus()
}


/*Atrray Immagini*/
imgHomeDx = new Array(4)
imgHomeDx[0] = "logo_bpv.gif"
imgHomeDx[1] = "logo_unicredit.gif"
imgHomeDx[2] = "logo_cattolica.gif"
imgHomeDx[3] = "logo_W.jpg"

imgLink = new Array(4)
imgLink[0] = "http://www.bpv.it/"
imgLink[1] = "http://www.unicreditimpresa.it/"
imgLink[2] = "http://www.cattolica.it/"
imgLink[3] = "http://www.volkswagen.it/"

var timerID = null
var nImg = 0;
var urlToGoImgDx = '';
function cambiaLogo(){
	clearTimeout(timerID);
	//alert(document.imgDx.src);
	nImg += 1;
	if (nImg > 3) {
		nImg = 0;
	}
	//alert(imgHomeDx[nImg]);
	document.imgDx.src = "media/veronafiere/banner/" + imgHomeDx[nImg];
	//alert(document.imgDx.src);
	urlToGoImgDx = imgLink[nImg];
	timerID = setTimeout("cambiaLogo()", 2000);
	//alert(urlToGoImgDx);
}

function goUrlImgDx(){
	//alert(urlToGoImgDx);
    window.open(urlToGoImgDx);
}
