function getYear()
{
    var date = new Date();
    return date.getFullYear();
}

/* ---------- MENU ------------ */

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function CorrectMenuLayer()
{
	var divMenuBGFillLayer = document.getElementById('divMenuBGFillLayer');		
	var divMenuFooter = document.getElementById('divMenuFooter');
	
    if (divMenuBGFillLayer != null && divMenuFooter != null)
    {		
        var yHeight = findPosY(divMenuFooter)-54-295;
        
		if (yHeight < 0) yHeight = 0;
		
		divMenuBGFillLayer.style.height = yHeight + "px";              
    }
}

function IntroClick(url)
{
	window.location.href = url;	
}

function MakeAllFilledCellsTransparent()
{
	var cellCollection = document.getElementsByTagName("td");
	
	for (var i = 0; i < cellCollection.length; i++)
	{	
		if (cellCollection[i].bgColor != "")
		{
			cellCollection[i].className = "TransparentCell";
		}			
	}
}