$(document).ready(
	function()
	{
	    $("#content ul.news-cont li div a").fancybox({
	      'zoomOpacity': 1000,
	      'zoomSpeedIn': 1000,
	      'zoomSpeedOut': 1000,
	      'overlayShow': false,
	      'overlayOpacity': 0.5,
	      'centerOnScroll': false,
	      'easingOut': jQuery.easing.def = 'easeOutQuart'
	    });
	    
		var cont = $('#container');
		$('#baralanGroup').css('height',cont[0].offsetHeight+'px');
	}
);

startList = function()
{
    if (document.all&&document.getElementById) {
        navRoot = document.getElementById("menu");
        for (i=0; i<navRoot.childNodes.length; i++) {
            node = navRoot.childNodes[i];
            if (node.nodeName=="LI") {
                node.onmouseover=function()
                {
                    this.className+=" over";
                }
                node.onmouseout=function()
                {
                    this.className=this.className.replace(" over", "");
                }
            }
        }
    }
}
window.onload=startList;
function show(id)
{
    malpensaObj = document.getElementById('malpensa');
    linateObj = document.getElementById('linate');
    motorwayObj = document.getElementById('motorway');
    obj = document.getElementById(id);
    malpensaObj.style.display = 'none';
    linateObj.style.display = 'none';
    motorwayObj.style.display = 'none';
    obj.style.display = 'block';
}
function openPopup(site)
{
    popupWindow = window.open("http://www."+site+".com/catalogue/popup.php?cat="+site+"", "popup", 'menubar=0, directories=0, top=0, left=0, width='+screen.width+', height='+screen.height+', resizable=0, scrollbars=0, status=0, toolbar=0, location=0');
}
function openPdf(url)
{
    widthP = 482;//screen.width - 100;
    heightP = 700;//screen.height;
    popupWindow = window.open(url, "popupPdf", 'menubar=0, directories=0, top=0, left=0, width='+widthP+', height='+heightP+', resizable=1, scrollbars=0, status=1, toolbar=1, location=0');
    return false;
}
function openCenterWindow (url, name, width, height)
{
    var str = "menubar=0, directories=0, height=" + height + ",innerHeight=" + height;
    str += ",width=" + width + ",innerWidth=" + width;
    if (window.screen) {
        var ah = screen.availHeight - 30;
        var aw = screen.availWidth - 10;

        var xc = (aw - width) / 2;
        var yc = (ah - height) / 2;

        str += ",left=" + xc + ",screenX=" + xc;
        str += ",top=" + yc + ",screenY=" + yc;
    }
    str += 'resizable=1, scrollbars=0, status=0, toolbar=0, location=0';
    zoomPopup = window.open(url, name, str);
    return false;
}