function detail(id, width, height) {
	var wWidth = window.screen.availWidth;
	var wHeight = window.screen.availHeight;
	var xpos, ypos = 0;
	var popupPage = "";
	if(wWidth > width) {
		xpos = (wWidth - width)/2;
	}
	if(wHeight > height) {
		ypos = (wHeight - height)/2;
	}
	window.open("detail.cfm?id=" + id + "&amp;w=" + width + "&amp;h=" + height, "detail", "scrollbars=no,resizable=no,width=" + width + ",height=" + height + ",top=" + ypos + ",left=" + xpos);
	return false;
}

function allNews(showlink) {
	if(document.getElementById) {
		var news = document.getElementById("news");
		for (i=0; i<news.childNodes.length; i++) {
			node = news.childNodes[i];
			if (node.nodeName == "LI" && node.className == "more") {
				node.style.display = "list-item";
			}
		}
		showlink.style.display = "none";
	}
	return false;
}
function openDetail(url, width, height) {
  window.open(url, "detail", "width=" + width + ", height=" + height + ", resizable=no, scrollbars=no");
  return false;
}

function showImage(name, w, h) { 
	var wWidth = window.screen.availWidth;
	var wHeight = window.screen.availHeight;
  	var xpos, ypos = 0;
  
  	if(wWidth > w) {
    	xpos = (wWidth - w)/2;
  	}
  	if(wHeight > h) {
    	ypos = (wHeight - h)/2;
  	}
		window.open(name + ".htm", "photo", "width=" + w + ", height=" + h + ", scrollbars=no, resizable=no, top=" + ypos + ", left=" + xpos);
	return false;
}
function visitaVirtuale(name) { 
	var wWidth = window.screen.availWidth;
	var wHeight = window.screen.availHeight;
  	var xpos, ypos = 0;
	var w = 350, h = 500;
  
  	if(wWidth > w) {
    	xpos = (wWidth - w)/2;
  	}
  	if(wHeight > h) {
    	ypos = (wHeight - h)/2;
  	}
		window.open("../virtual/" + name + ".html", "visita", "width=" + w + ", height=" + h + ", scrollbars=no, resizable=no, top=" + ypos + ", left=" + xpos);
}