
function printPage() {
    var url;
    url = location.href;

    if (url.indexOf("?") == -1)
	    url += "?";

	url += "&Mode=print";

	window.open(url);
}

function addFavorite() {
	window.external.AddFavorite(location.href, document.title);
}

function mailTo() {
	window.location="mailto:?subject=" + document.title.replace(/\"/g, "''") + "&body=" + document.title.replace(/\"/g, "''") + " - " + document.location.href.replace(/&/g, "%26");
}

/* this function shows the pop-up when
 user moves the mouse over the link */
function Show(id)
{
	obj = document.getElementById(id)
	obj.style.display="block";
}
/* this function hides the pop-up when
 user moves the mouse out of the link */
function Hide(id)
{
	obj = document.getElementById(id)
	obj.style.display="none";
}

function ShowElement(id) {
	obj = document.getElementById(id);
	
	if(obj.style.display == 'none')
		obj.style.display = 'block';
	else if(obj.style.display == 'block')
		obj.style.display = 'none';						
}

function ShowPresentazione() {			
	obj = document.getElementById('presentazione');							
	obj.style.display="block";
	
	obj.style.top = 40 + "px";

	width = 500;
	height = document.body.clientHeight;
	
	left = ((document.body.clientWidth / 2) - (width / 2)) + 125;
	
	obj.style.width = width + "px";
	obj.style.left = left + "px";

        obj.style.position = "fixed";
}
function HidePresentazione() {
	obj = document.getElementById('presentazione');							
	obj.style.display="none";				
}
