	function ResizeContainer(){
		var oObj 	= document.getElementById("maindataclip");
		var oObj2 	= document.getElementById("contact");
		if(oObj && oObj2 && !isNaN(parseInt(oObj.offsetHeight)) && !isNaN(parseInt(oObj2.offsetHeight))){
			var oHeight = Math.max(parseInt(oObj.offsetHeight), parseInt(oObj2.offsetHeight)) + 10;
			oObj2.style.height = (oHeight-10) + "px";
			oObj.style.height = oHeight + "px";
		}
	}
	
	window.onresize 	= ResizeContainer;
	
	var menuDisabler 	= null;
	var activeMenu		= null;

	function HideMenuNow(){
		 if(activeMenu!=null){
		 	var oObj 	= document.getElementById("mn" + activeMenu);
			if(oObj){
				oObj.style.visibility="hidden";
			}
			activeMenu = null;
		 }
		 if(menuDisabler!=null){
		 	clearTimeout(menuDisabler);
			menuDisabler = null;
		 }
	}
	
	function ShowMenu(which){
		if(which!=activeMenu){
			HideMenuNow();
			var oObj 	= document.getElementById("mn" + which);
				if(oObj){
					oObj.style.left = (document.getElementById("maindata").offsetLeft + ((which-1)*70)+(which-1)*3+3) + "px";
					oObj.style.visibility="visible";
					activeMenu = which;
			}
		}else{
			HideMenu();
		}
	}
	
	function HideMenu(){
		if(menuDisabler!=null){
		 	clearTimeout(menuDisabler);
			menuDisabler = null;
		}
		
		menuDisabler = setTimeout("HideMenuNow()", 1000);
	}

