function getCur() {
	return curStyle = (document.all) ? "hand" : "pointer";
}

function popUpNs(str,w,h,x,y) {
	child=window.open(str,'a','toolbar=no,location=no,directories=no,screenX='+x+',screenY='+y+',menubar=no,width='+w+',height='+h);
}

function popUpIe(str,w,h,x,y) {
	child=window.open(str,'a','toolbar=no,location=no,directories=no,left='+x+',top='+y+',menubar=no,width='+w+',height='+h);
}

// proiez. ppt
function popUpPPT(str) {
	window.open(str,'','toolbar=no,location=no,directories=no,left=20,top=20,status=no,scrollbars=yes,menubar=no,resizable=yes');
}

// galleria immagini
function popUpSF(str) {
	w=1030,h=790,x=5,y=20;
	if (document.all) popUpIe(str,w,h);
	else popUpNs(str,w,h);
}

// copertina libro
var wait=true;
function showNow() {
	document.getElementById('libro_img').zIndex = 1;
	document.getElementById('libro_img').style.visibility = 'visible';
	wait=false;
}

function my_show() {
	if (wait) setTimeout('showNow()',500);
	else showNow();
}

function my_hide() {
	document.getElementById('libro_img').style.visibility = 'hidden';
}

// link a recensioni
var ff = new Array();
for(var i=0, parr=unescape(self.location.search.substring(1)).split("&"); i<parr.length; i++)
ff[ ( parr[i] = parr[i].split("=") ) [0] ] = parr[i][1];

function getRec(codice) {
	self.location.href="../recensioni/recensione.php?codice="+codice;
}