//ensures menu visiblity on small monitor resolutions
//see also: ie_hacks.css
//copyright 2006 trilobiet.

window.onload=gar_load;
window.onresize=garMenuSize;
var gar_onload=new Array();

function garMenuSize() //resize the menu if there is not enough space in the viewport
{	var menu=document.getElementById("layLeft");

	if(parseInt(window.getComputedStyle(menu,null).height) >self.innerHeight-230)
		menu.style.paddingTop="70px";
		
};

function garMenuSizeIE() //will be called from IE_hacks.js
{	var menu=document.getElementById("layLeft");
	if(menu.offsetHeight>(document.documentElement?document.documentElement.clientHeight:document.body.clientHeight)-70)
		menu.style.paddingTop="70px";
}

function gar_load() //load several functions on page load
{	for(var tel=0;tel<gar_onload.length;tel++)
		eval(gar_onload[tel]);
}
/* Open ecards in popup */
function popCards(url) {

	cardwin =
window.open(url,'wndCards','height=720,width=800,scrollbars=yes,location=no,menubar=no,status=no,toolbar=no,resizable=no',
true);
	cardwin.focus();
}
