function particularPop(page) {
	w = screen.availWidth-10;
	h = screen.availHeight-30;
	if (w > 900 && h > 675) {
		w = 900;
		h = 675;
		myleft = ((screen.width - w) / 2);
		mytop = ((screen.height - h) / 2);

	//} else if (w == 1024 && h == 768) { 
	//	w = 900;
	//	h = 675;
	//	myleft = ((screen.width - w) / 2);
	//	mytop = ((screen.height - h) / 2);
	} else {
		myleft = 0;
		mytop  = 0;
	}

	//alert("screenWidth " + w + "\n" + "screenHeight " + h);
	window.open(page, "kungFusion", 'width='+w+',height='+h+',left='+myleft+',top='+mytop+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0');
}

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 openTrailers()
{
	winPop('trailer/trailer.asp', 650, 400, 'trailerLS', 0, 0)
}

function openTrailer()
{
	winPop('trailer/trailer.asp', 650, 400, 'trailerLS', 0, 0)
}
function fullscreen(page)
{
	myleft  = 0;
 	mytop   = 0;
	w = screen.availWidth-10;
	h = screen.availHeight-30;
	window.open(page, "uw", 'width='+w+',height='+h+',left="+myleft+",top="+mytop+",scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0');
	//window.open(page, "fdc", 'width=800,height=600,scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=0,top=0');
    return;
}

function openPopImg(i)
{

	var arrFoto = new Array();
	
	arrFoto[1]= new Array();	
	arrFoto[1][0]= 'img/1024/WallPaper_1024_768_01.jpg';
	arrFoto[1][1]= 'FullOfLife';
	arrFoto[1][2]= '1024';
	arrFoto[1][3]= '768';
	
	arrFoto[2]= new Array();
	arrFoto[2][0]= 'img/1024/WallPaper_1024_768_02.jpg';
	arrFoto[2][1]= 'FullOfLife';
	arrFoto[2][2]= '1024';
	arrFoto[2][3]= '768';
	///////////////////////////////////////
	
	arrFoto[3]= new Array();
	arrFoto[3][0]= 'img/1024/WallPaper_1024_768_03.jpg';
	arrFoto[3][1]= 'FullOfLife';
	arrFoto[3][2]= '1024';
	arrFoto[3][3]= '768';
	

	arrFoto[4]= new Array();	
	arrFoto[4][0]= 'img/1024/WallPaper_1024_768_04.jpg';
	arrFoto[4][1]= 'FullOfLife';
	arrFoto[4][2]= '1024';
	arrFoto[4][3]= '768';
	///////////////////////////////////////
		

	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>");
}




