function hideSubs(){
	//var subs	= $A($$('#navigation li ul'));
	//subs.each(function(element){element.hide();});
	$('submenu_hover').hide();
}

function showSub(element,child){
	hideSubs();
	if($(element).next()){
		//$(element).next().show();
		$('submenu_hover').update($(child).innerHTML);
		var source = $(child);
		var target = $('submenu_hover');
		target.clonePosition($(element), $(element));
		target.setStyle({
			width: '200px',
			height: 'auto',
			left:	'70px'
		});
		target.show();
	}
	
}

function getWindowHeight(win) {
	if(win == undefined)
		win = window;
	if(win.innerHeight)
		return win.innerHeight;
	else {
		if(win.document.documentElement && win.document.documentElement.clientHeight)
			return win.document.documentElement.clientHeight;
		return win.document.body.offsetHeight;
	}
}

function setScreenHeight() {
	var y;
	var test1	= document.body.scrollHeight;
	var test2	= document.body.offsetHeight;
	var test3	= getWindowHeight();
	
	if(test1 > test2) // all but MAC Explorer
		y		= test1;
	else
		y		= test2;
	y			= parseInt(y);
	if(test3 > y)
		y		= test3;
	y			= y-120-60;

//alert(y);	
	
	if (y > 360){
		$('main_container').setStyle({height : y + 'px'});
		$('mc1').setStyle({height : y + 'px'});
//		$('mc2').setStyle({height : (y-20) + 'px'});
		$('navi_container').setStyle({height : (y-5) + 'px'});
		
	}
}

