function winPop(target, myW, myH, nm, sc, rs)
{	
	myleft = (screen.width - myW) / 2;
	mytop =	(screen.height - myH) / 2;
	window.open(target, nm, 'width='+myW+',height='+myH+',scrollbars='+sc+',resizable='+rs+',menubar=0,toolbar=0,status=0,location=0,directories=0,left='+myleft+',top='+mytop);
}
function centraFinestra(w, h)
{
	windowWidth=w;
	windowHeight=h;
	if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));
}
function fullscreen(page)
{
    window.open( page , "" , "fullscreen=1 ,scrollbars = 0" );
    return;
}

function closeWin()
{
	window.close();
	opener.focus();
}

function openPopImg(i)
{

	var arrFoto = new Array();
	
	arrFoto[1]= new Array();	
	arrFoto[1][0]= '../img/01.jpg';
	arrFoto[1][1]= 'S.W.A.T.';
	arrFoto[1][2]= '550';
	arrFoto[1][3]= '366';
	
	arrFoto[2]= new Array();
	arrFoto[2][0]= '../img/02.jpg';
	arrFoto[2][1]= 'S.W.A.T.';
	arrFoto[2][2]= '550';
	arrFoto[2][3]= '366';
	
	arrFoto[3]= new Array();
	arrFoto[3][0]= '../img/03.jpg';
	arrFoto[3][1]= 'S.W.A.T.';
	arrFoto[3][2]= '550';
	arrFoto[3][3]= '366';
	
	arrFoto[4]= new Array();
	arrFoto[4][0]= '../img/04.jpg';
	arrFoto[4][1]= 'S.W.A.T.';
	arrFoto[4][2]= '550';
	arrFoto[4][3]= '366';
	
	arrFoto[5]= new Array();
	arrFoto[5][0]= '../img/05.jpg';
	arrFoto[5][1]= 'S.W.A.T.';
	arrFoto[5][2]= '550';
	arrFoto[5][3]= '366';
	
	arrFoto[6]= new Array();
	arrFoto[6][0]= '../img/06.jpg';
	arrFoto[6][1]= 'S.W.A.T.';
	arrFoto[6][2]= '550';
	arrFoto[6][3]= '366';
	
	arrFoto[7]= new Array();
	arrFoto[7][0]= '../img/07.jpg';
	arrFoto[7][1]= 'S.W.A.T.';
	arrFoto[7][2]= '550';
	arrFoto[7][3]= '366';
	
	arrFoto[8]= new Array();
	arrFoto[8][0]= '../img/08.jpg';
	arrFoto[8][1]= 'S.W.A.T.';
	arrFoto[8][2]= '550';
	arrFoto[8][3]= '366 ';
	
	arrFoto[9]= new Array();
	arrFoto[9][0]= '../img/09.jpg';
	arrFoto[9][1]= 'S.W.A.T.';
	arrFoto[9][2]= '366';
	arrFoto[9][3]= '550';

	arrFoto[10]= new Array();
	arrFoto[10][0]= '../img/10.jpg';
	arrFoto[10][1]= 'S.W.A.T.';
	arrFoto[10][2]= '366';
	arrFoto[10][3]= '550';
	
	arrFoto[11]= new Array();
	arrFoto[11][0]= '../img/wallpaperA_1024x768.jpg';
	arrFoto[11][1]= 'S.W.A.T.';
	arrFoto[11][2]= '1024';
	arrFoto[11][3]= '768';
	
	arrFoto[12]= new Array();
	arrFoto[12][0]= '../img/wallpaperA_800x600.jpg';
	arrFoto[12][1]= 'S.W.A.T.';
	arrFoto[12][2]= '800';
	arrFoto[12][3]= '600';
	
	arrFoto[13]= new Array();	
	arrFoto[13][0]= '../img/wallpaperB_1024x768.jpg';
	arrFoto[13][1]= 'S.W.A.T.';
	arrFoto[13][2]= '1024';
	arrFoto[13][3]= '768';
	
	arrFoto[14]= new Array();	
	arrFoto[14][0]= '../img/wallpaperB_800x600.jpg';
	arrFoto[14][1]= 'S.W.A.T.';
	arrFoto[14][2]= '800';
	arrFoto[14][3]= '600';
	
	arrFoto[15]= new Array();	
	arrFoto[15][0]= '../img/wallpaperC_800x600.jpg';
	arrFoto[15][1]= 'S.W.A.T.';
	arrFoto[15][2]= '800';
	arrFoto[15][3]= '600';
	
	arrFoto[16]= new Array();	
	arrFoto[16][0]= '../img/wallpaperC_1024x768.jpg';
	arrFoto[16][1]= 'S.W.A.T.';
	arrFoto[16][2]= '1024';
	arrFoto[16][3]= '768';
	
	arrFoto[17]= new Array();
	arrFoto[17][0]= '../img/17.jpg';
	arrFoto[17][1]= 'S.W.A.T.';
	arrFoto[17][2]= '550';
	arrFoto[17][3]= '366';
		
	arrFoto[18]= new Array();
	arrFoto[18][0]= '../img/18.jpg';
	arrFoto[18][1]= 'S.W.A.T.';
	arrFoto[18][2]= '550';
	arrFoto[18][3]= '366';
		
	arrFoto[19]= new Array();
	arrFoto[19][0]= '../img/19.jpg';
	arrFoto[19][1]= 'S.W.A.T.';
	arrFoto[19][2]= '550';
	arrFoto[19][3]= '366';
		
	arrFoto[20]= new Array();
	arrFoto[20][0]= '../img/20.jpg';
	arrFoto[20][1]= 'S.W.A.T.';
	arrFoto[20][2]= '550';
	arrFoto[20][3]= '366';
		
	arrFoto[21]= new Array();
	arrFoto[21][0]= '../img/21.jpg';
	arrFoto[21][1]= 'S.W.A.T.';
	arrFoto[21][2]= '550';
	arrFoto[21][3]= '366';
		
	arrFoto[22]= new Array();
	arrFoto[22][0]= '../img/22.jpg';
	arrFoto[22][1]= 'S.W.A.T.';
	arrFoto[22][2]= '550';
	arrFoto[22][3]= '366';
		
	arrFoto[23]= new Array();
	arrFoto[23][0]= '../img/23.jpg';
	arrFoto[23][1]= 'S.W.A.T.';
	arrFoto[23][2]= '550';
	arrFoto[23][3]= '366';
		
	arrFoto[24]= new Array();
	arrFoto[24][0]= '../img/25.jpg';
	arrFoto[24][1]= 'S.W.A.T.';
	arrFoto[24][2]= '550';
	arrFoto[24][3]= '366';
		
	arrFoto[25]= new Array();
	arrFoto[25][0]= '../img/25.jpg';
	arrFoto[25][1]= 'S.W.A.T.';
	arrFoto[25][2]= '550';
	arrFoto[25][3]= '366';
		
	arrFoto[26]= new Array();
	arrFoto[26][0]= '../img/26.jpg';
	arrFoto[26][1]= 'S.W.A.T.';
	arrFoto[26][2]= '550';
	arrFoto[26][3]= '366';
	
	
	nomeFile = arrFoto[i][0];
	nomeWin = arrFoto[i][1];
	w = arrFoto[i][2];
	h = arrFoto[i][3];

	myleft = ((screen.width - w) / 2);
	mytop = ((screen.height - h) / 2);

	mywindow=window.open('', '',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h+",left="+myleft+",top="+mytop+""); 
	mywindow.document.write("<HTML><HEAD>");
	mywindow.document.write("<script>function closeWin(){window.close();opener.focus();}</script>");
	mywindow.document.write("<TITLE>"+nomeWin+"</TITLE>");
	mywindow.document.write("</HEAD>");
	mywindow.document.write("<BODY topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' onload='centraFinestra("+w+", "+h+")'><A HREF='javascript:closeWin()'><IMG SRC='"+nomeFile+"' BORDER=0></A>");
	mywindow.document.write("</BODY></HTML>");
}

function openTrailer()
{
	winPop('../trailer/trailer.asp', 650, 400, 'trailer', 0, 0)
}
function openScreensaver()
{
	winPop('../multimedia/screensaver/screensaver.html', 400, 240, 'screensaver', 0, 0)
}
function openPress()
{
	winPop('../pressbook/pressbook.htm', 200, 100, 'trailer', 0, 0)
}
function openConcorso()
{
	winPop('http://www.paroladordine.com/', 440, 500, 'concorso', 1, 0)
}


