function mymenu(el, elid){
	obj=$(elid);
	obj.style.display='block';
	obj.style.zIndex='999';

	$(elid).addEvent('mouseoutk', function(e){
		this.style.display='none';
	});
}

function getWinHeight(){
	var wh=0;
	if( typeof( window.innerHeight ) == 'number' ) {
		wh=window.innerHeight;;
	} else if( document.documentElement && document.documentElement.clientHeight ) {
		wh=document.documentElement.clientHeight;
	} else if( document.body && document.body.clientHeight) {
		wh=document.body.clientHeight;
	}
	return wh-20;
}


function fix_layout(){
	var mcH=$('mcontainer').getHeight();
	var winH=getWinHeight();
	if(winH > 0 && (winH > mcH)) {
		var footerH=$('footer').getHeight();
		$('mcontainer').style.height=(winH-footerH)+'px';
	}
	Event.observe(window, 'resize', fix_layout);
//	window.onresize=fix_layout;
}
