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';
	///////////////////////////////////////
	arrFoto[5]= new Array();
	arrFoto[5][0]= 'img/1024/WallPaper_1024_768_05.jpg';
	arrFoto[5][1]= 'FullOfLife';
	arrFoto[5][2]= '1024';
	arrFoto[5][3]= '768';
	
	arrFoto[6]= new Array();
	arrFoto[6][0]= 'img/1024/WallPaper_1024_768_06.jpg';
	arrFoto[6][1]= 'FullOfLife';
	arrFoto[6][2]= '1024';
	arrFoto[6][3]= '768';

///////////////////////////////////////
	arrFoto[7]= new Array();	
	arrFoto[7][0]= 'img/1024/WallPaper_1024_768_07.jpg';
	arrFoto[7][1]= 'FullOfLife';
	arrFoto[7][2]= '1024';
	arrFoto[7][3]= '768';
	
	arrFoto[8]= new Array();
	arrFoto[8][0]= 'img/1024/WallPaper_1024_768_08.jpg';
	arrFoto[8][1]= 'FullOfLife';
	arrFoto[8][2]= '1024';
	arrFoto[8][3]= '768';
	///////////////////////////////////////
	arrFoto[9]= new Array();
	arrFoto[9][0]= 'img/1024/WallPaper_1024_768_09.jpg';
	arrFoto[9][1]= 'FullOfLife';
	arrFoto[9][2]= '1024';
	arrFoto[9][3]= '768';

	arrFoto[10]= new Array();	
	arrFoto[10][0]= 'img/1024/WallPaper_1024_768_10.jpg';
	arrFoto[10][1]= 'FullOfLife';
	arrFoto[10][2]= '1024';
	arrFoto[10][3]= '768';
	///////////////////////////////////////
	arrFoto[11]= new Array();
	arrFoto[11][0]= 'img/1024/WallPaper_1024_768_11.jpg';
	arrFoto[11][1]= 'FullOfLife';
	arrFoto[11][2]= '1024';
	arrFoto[11][3]= '768';
	
	arrFoto[12]= new Array();
	arrFoto[12][0]= 'img/1280/WallPaper_1280_1024_01.jpg';
	arrFoto[12][1]= 'FullOfLife';
	arrFoto[12][2]= '1280';
	arrFoto[12][3]= '1024';
///////////////////////////////////////
	arrFoto[13]= new Array();	
	arrFoto[13][0]= 'img/1280/WallPaper_1280_1024_02.jpg';
	arrFoto[13][1]= 'FullOfLife';
	arrFoto[13][2]= '1280';
	arrFoto[13][3]= '1024';
	
	arrFoto[14]= new Array();
	arrFoto[14][0]= 'img/1280/WallPaper_1280_1024_03.jpg';
	arrFoto[14][1]= 'FullOfLife';
	arrFoto[14][2]= '1280';
	arrFoto[14][3]= '1024';
	///////////////////////////////////////
	arrFoto[15]= new Array();
	arrFoto[15][0]= 'img/1280/WallPaper_1280_1024_04.jpg';
	arrFoto[15][1]= 'FullOfLife';
	arrFoto[15][2]= '1280';
	arrFoto[15][3]= '1024';

	arrFoto[16]= new Array();	
	arrFoto[16][0]= 'img/1280/WallPaper_1280_1024_05.jpg';
	arrFoto[16][1]= 'FullOfLife';
	arrFoto[16][2]= '1280';
	arrFoto[16][3]= '1024';
	///////////////////////////////////////
	arrFoto[17]= new Array();
	arrFoto[17][0]= 'img/1280/WallPaper_1280_1024_06.jpg';
	arrFoto[17][1]= 'FullOfLife';
	arrFoto[17][2]= '1280';
	arrFoto[17][3]= '1024';
	
	arrFoto[18]= new Array();
	arrFoto[18][0]= 'img/1280/WallPaper_1280_1024_07.jpg';
	arrFoto[18][1]= 'FullOfLife';
	arrFoto[18][2]= '1280';
	arrFoto[18][3]= '1024';
	
	/////////////////////////////////////////
	///////////////////////////////////////
	arrFoto[19]= new Array();	
	arrFoto[19][0]= 'img/1280/WallPaper_1280_1024_08.jpg';
	arrFoto[19][1]= 'FullOfLife';
	arrFoto[19][2]= '1280';
	arrFoto[19][3]= '1024';
	
	arrFoto[20]= new Array();
	arrFoto[20][0]= 'img/1280/WallPaper_1280_1024_09.jpg';
	arrFoto[20][1]= 'FullOfLife';
	arrFoto[20][2]= '1280';
	arrFoto[20][3]= '1024';
	///////////////////////////////////////
	arrFoto[21]= new Array();
	arrFoto[21][0]= 'img/1280/WallPaper_1280_1024_10.jpg';
	arrFoto[21][1]= 'FullOfLife';
	arrFoto[21][2]= '1280';
	arrFoto[21][3]= '1024';


	arrFoto[22]= new Array();	
	arrFoto[22][0]= 'img/1280/WallPaper_1280_1024_11.jpg';
	arrFoto[22][1]= 'FullOfLife';
	arrFoto[22][2]= '1280';
	arrFoto[22][3]= '1024';
	///////////////////////////////////////
	arrFoto[23]= new Array();
	arrFoto[23][0]= '../img/1280/wallpaper_08_1024_768.jpg';
	arrFoto[23][1]= 'FullOfLife';
	arrFoto[23][2]= '1024';
	arrFoto[23][3]= '768';
	
	arrFoto[24]= new Array();
	arrFoto[24][0]= '../img/1280_1024/wallpaper_08_1280_1024.jpg';
	arrFoto[24][1]= 'FullOfLife';
	arrFoto[24][2]= '1280';
	arrFoto[24][3]= '1024';

///////////////////////////////////////
	arrFoto[25]= new Array();	
	arrFoto[25][0]= '../img/800_600/wallpaper_09_800_600.jpg';
	arrFoto[25][1]= 'FullOfLife';
	arrFoto[25][2]= '800';
	arrFoto[25][3]= '600';
	
	arrFoto[26]= new Array();
	arrFoto[26][0]= '../img/1024_768/wallpaper_09_1024_768.jpg';
	arrFoto[26][1]= 'FullOfLife';
	arrFoto[26][2]= '1024';
	arrFoto[26][3]= '768';
	///////////////////////////////////////
	arrFoto[27]= new Array();
	arrFoto[27][0]= '../img/1280_1024/wallpaper_09_1280_1024.jpg';
	arrFoto[27][1]= 'FullOfLife';
	arrFoto[27][2]= '1280';
	arrFoto[27][3]= '1024';
		///////////////////////////////////////
		///////////////////////////////////////
		/////////// PRIME MATITE ////////////////////////////
	arrFoto[28]= new Array();
	arrFoto[28][0]= 'img/photogallery/primematite/primematite01.jpg';
	arrFoto[28][1]= 'FullOfLife';
	arrFoto[28][2]= '800';
	arrFoto[28][3]= '600';
		///////////////////////////////////////	
	arrFoto[29]= new Array();
	arrFoto[29][0]= 'img/photogallery/primematite/primematite02.jpg';
	arrFoto[29][1]= 'FullOfLife';
	arrFoto[29][2]= '800';
	arrFoto[29][3]= '600';
		///////////////////////////////////////	
	arrFoto[30]= new Array();
	arrFoto[30][0]= 'img/photogallery/primematite/primematite03.jpg';
	arrFoto[30][1]= 'FullOfLife';
	arrFoto[30][2]= '800';
	arrFoto[30][3]= '600';
		///////////////////////////////////////	
	arrFoto[31]= new Array();
	arrFoto[31][0]= 'img/photogallery/primematite/primematite04.jpg';
	arrFoto[31][1]= 'FullOfLife';
	arrFoto[31][2]= '800';
	arrFoto[31][3]= '600';
		///////////////////////////////////////	
	arrFoto[32]= new Array();
	arrFoto[32][0]= 'img/photogallery/primematite/primematite05.jpg';
	arrFoto[32][1]= 'FullOfLife';
	arrFoto[32][2]= '800';
	arrFoto[32][3]= '600';
		///////////////////////////////////////	
	arrFoto[33]= new Array();
	arrFoto[33][0]= 'img/photogallery/primematite/primematite06.jpg';
	arrFoto[33][1]= 'FullOfLife';
	arrFoto[33][2]= '800';
	arrFoto[33][3]= '600';
		///////////////////////////////////////	
	arrFoto[34]= new Array();
	arrFoto[34][0]= 'img/photogallery/primematite/primematite07.jpg';
	arrFoto[34][1]= 'FullOfLife';
	arrFoto[34][2]= '800';
	arrFoto[34][3]= '600';
		///////////////////////////////////////	
	arrFoto[35]= new Array();
	arrFoto[35][0]= 'img/photogallery/primematite/primematite08.jpg';
	arrFoto[35][1]= 'FullOfLife';
	arrFoto[35][2]= '800';
	arrFoto[35][3]= '600';
		///////////////////////////////////////	
	arrFoto[36]= new Array();
	arrFoto[36][0]= 'img/photogallery/primematite/primematite09.jpg';
	arrFoto[36][1]= 'FullOfLife';
	arrFoto[36][2]= '800';
	arrFoto[36][3]= '600';
		///////////////////////////////////////	
		//////////////////PRIME ILLUSTRAZIONI/////////////////////	
		///////////////////////////////////////			
	arrFoto[37]= new Array();
	arrFoto[37][0]= 'img/photogallery/primeillustrazioni/primeillustrazioni01.jpg';
	arrFoto[37][1]= 'FullOfLife';
	arrFoto[37][2]= '415';
	arrFoto[37][3]= '600';
		///////////////////////////////////////	
	arrFoto[38]= new Array();
	arrFoto[38][0]= 'img/photogallery/primeillustrazioni/primeillustrazioni02.jpg';
	arrFoto[38][1]= 'FullOfLife';
	arrFoto[38][2]= '600';
	arrFoto[38][3]= '415';
		///////////////////////////////////////	
	arrFoto[39]= new Array();
	arrFoto[39][0]= 'img/photogallery/primeillustrazioni/primeillustrazioni03.jpg';
	arrFoto[39][1]= 'FullOfLife';
	arrFoto[39][2]= '415';
	arrFoto[39][3]= '600';
		///////////////////////////////////////	
		//////////////////PRIMA DOPO/////////////////////	
		///////////////////////////////////////			
	arrFoto[40]= new Array();
	arrFoto[40][0]= 'img/photogallery/primadopo/primadopo01.jpg';
	arrFoto[40][1]= 'FullOfLife';
	arrFoto[40][2]= '1024';
	arrFoto[40][3]= '768';
		///////////////////////////////////////	
	arrFoto[41]= new Array();
	arrFoto[41][0]= 'img/photogallery/primadopo/primadopo02.jpg';
	arrFoto[41][1]= 'FullOfLife';
	arrFoto[41][2]= '1024';
	arrFoto[41][3]= '768';
		///////////////////////////////////////	
	arrFoto[42]= new Array();
	arrFoto[42][0]= 'img/photogallery/primadopo/primadopo03.jpg';
	arrFoto[42][1]= 'FullOfLife';
	arrFoto[42][2]= '1024';
	arrFoto[42][3]= '768';
		///////////////////////////////////////	
	arrFoto[43]= new Array();
	arrFoto[43][0]= 'img/photogallery/primadopo/primadopo04.jpg';
	arrFoto[43][1]= 'FullOfLife';
	arrFoto[43][2]= '1024';
	arrFoto[43][3]= '768';
		///////////////////////////////////////	
	arrFoto[44]= new Array();
	arrFoto[44][0]= 'img/photogallery/primadopo/primadopo05.jpg';
	arrFoto[44][1]= 'FullOfLife';
	arrFoto[44][2]= '1024';
	arrFoto[44][3]= '768';
		///////////////////////////////////////	
		//////////////////EVOLUZIONE SPECIE/////////////////////	
		///////////////////////////////////////			
	arrFoto[45]= new Array();
	arrFoto[45][0]= 'img/photogallery/evoluzione/evoluzione01.jpg';
	arrFoto[45][1]= 'FullOfLife';
	arrFoto[45][2]= '1024';
	arrFoto[45][3]= '768';
		///////////////////////////////////////	
	arrFoto[46]= new Array();
	arrFoto[46][0]= 'img/photogallery/evoluzione/evoluzione02.jpg';
	arrFoto[46][1]= 'FullOfLife';
	arrFoto[46][2]= '1024';
	arrFoto[46][3]= '768';
		///////////////////////////////////////	
	arrFoto[47]= new Array();
	arrFoto[47][0]= 'img/photogallery/evoluzione/evoluzione03.jpg';
	arrFoto[47][1]= 'FullOfLife';
	arrFoto[47][2]= '1024';
	arrFoto[47][3]= '768';
		///////////////////////////////////////			
	arrFoto[48]= new Array();
	arrFoto[48][0]= 'img/photogallery/evoluzione/evoluzione04.jpg';
	arrFoto[48][1]= 'FullOfLife';
	arrFoto[48][2]= '1024';
	arrFoto[48][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>");
}




