/**PWS**/
function opla(cosa, wx, wy ) {
	if (wx==""){wx=480;}
	if (wy==""){wy=320;}
	X=(wx+20);
	Y=(wy+20);
	/*alert(cosa+wx+wy+X+Y);*/
	//window.open(cosa,'anteprima','imagetoolbar=0,scrollbars=0,toolbar=0,location=0,resizable=0,width='+X+',height='+Y);
	newWindow = window.open("antep.htm","newWindow","width="+X+",height="+Y+",left=5,top=5");
	newWindow.document.open();
	newWindow.document.write('<html><title>anteprima</title><body bgcolor="#000000" onDblClick="self.close()">');
	newWindow.document.write('<img src="'+cosa+'" width='+wx+' height='+wy+' alt="Doppio Click la finestra x chiudere" /><br/>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
function anteprima(image_url,tipo){
	var finestra =",width=760,height=580";
	if (tipo==1){//video
		var finestra =",width=480,height=420";
	}
	window.open(image_url, 'anteprima', 'scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes'+finestra);
}

function toggleMenu(currMenu){
	target = document.getElementById(currMenu);
	if (target.style.display == "none"){
	 	target.style.display = "block";
	} else {
	 	target.style.display = "none";
	}
}
function hideMenu(menu1, menu2){
	menu1a = document.getElementById(menu1);
	if (menu1a.style.display == "block"){
	 	menu1a.style.display = "none";
	} 
	menu2a = document.getElementById(menu2);
	if (menu2a.style.display == "block"){
	 	menu2a.style.display = "none";
	} 
}

function threeColumn() {
	var elm = document.getElementById('content');
	elm.style.height = 'auto';
	var x = elm.offsetHeight;
	elm.style.height = x + "px";
}
