// JavaScript Document

	function menuHeight(divName)
	{ 
		var x = document.getElementById(divName);
		//alert(extraValue);
		if (x)
		{
			x.style.height="0px";
			
			//SCROLL HEIGHT
			var scrollheight = document.body.scrollHeight; //+', '+document.body.clientHeight+', '+ 

			
			//PARENT HEIGHT
			if( typeof( window.innerWidth ) == 'number' ) 
			{
				//Non-IE
				var parentheight = window.innerHeight;
			} 
			else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
			{
				//IE 6+ in 'standards compliant mode'
				var parentheight = document.documentElement.clientHeight;
			} 
			else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				var parentheight = document.body.clientHeight;
			}


			//alert(scrollheight+'-'+parentheight);
			if (scrollheight < parentheight)
			{
				// reduce 120 pixels from header's height and 55 pixels from footer's height
				var height = parentheight   - 0 - 0;
				x.style.height= ""+height+"px"; 
			}
			else
			{
				var height = scrollheight  - 0 - 0;
				x.style.height= ""+height+"px";
			}
		}
	}
