function clearE(x) {
 if (!document.layers)   x.blur();
}

var msgWindow=null;
function winOpen(str) {
	var func="menubar=no,scrollbars=auto,status=no,width=600,height=450,screenX=100,screenY=100,left=100,top=100";
	if(msgWindow) msgWindow.close();
	msgWindow=window.open("","",func);
	with (msgWindow.document){
		write("<head><title>Camping Acrogiali</title></head><body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><center><img src='"+str+"' name='pic'></center></body>");
	}
	msgWindow.focus();
}

function winOpen2(str) {
	var func="menubar=no,scrollbars=auto,status=no,width=450,height=600,screenX=100,screenY=100,left=100,top=100";
	if(msgWindow) msgWindow.close();
	msgWindow=window.open("","",func);
	with (msgWindow.document){
		write("<head><title>Camping Acrogiali</title></head><body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><center><img src='"+str+"' name='pic'></center></body>");
	}
	msgWindow.focus();
}

pic=new Array();

function next(){
	if(m<myPic.length){
		//alert("Pic: "+(m));
		pic[m].src=myPic[m];
		m++;
	
	}
	else{
		//alert("all pics loaded");
	}
}

function preLoad(){
	for (var i=0;i<myPic.length;i++){
		pic[i]=new Image(); 
		pic[i].onload=next;
		pic[i].onerror=next;
	}	
	next();
}