// JavaScript Document
function ShowMenu() 
{
	document.getElementById("menuBox").style.display = "block";	
}

function HideMenu() 
{
	document.getElementById("menuBox").style.display = "none";	
}

function doWidthChangeMem(elem,startWidth,endWidth,steps,intervals,powr) 
		{ 
			//Width changer with Memory by www.hesido.com
			if (elem.widthChangeMemInt)
				window.clearInterval(elem.widthChangeMemInt);
			
			var actStep = 0;
			
			elem.widthChangeMemInt = window.setInterval(			
				function() 
				{ 
				  elem.currentWidth = easeInOut(startWidth,endWidth,steps,actStep,powr);
				  elem.style.width = elem.currentWidth + "px"; 
				  actStep++;
				  if (actStep > steps) window.clearInterval(elem.widthChangeMemInt);
				} 
				,intervals)
		}
		
		function widthChange() 
		{ 
			if (!this.currentWidth) this.currentWidth = 150; 
			//if no memory is set, set it first; 
			doWidthChangeMem(this,this.currentWidth,170,10,10,0.5); 
		} 
		
		function widthRestore() 
		{ 
			if (!this.currentWidth) return; 
			doWidthChangeMem(this,this.currentWidth,150,10,10,0.5); 
		}
		
		function easeInOut(minValue,maxValue,totalSteps,actualStep,powr) 
		{ 
			//Generic Animation Step Value Generator By www.hesido.com 
			var delta = maxValue - minValue; 
			var stepp = minValue+(Math.pow(((1 / totalSteps) * actualStep), powr) * delta); 
			return Math.ceil(stepp) 
		} 
	
	
	
		
		function Grow(divName)
		{
			var div = document.getElementById('div' + divName);
			var img = document.getElementById(divName);
			
			div.style.height = (div.offsetHeight * 2) + "px";
			div.style.width = (div.offsetWidth * 2) + "px";
			div.style.fontSize = "18px";
			div.style.lineHeight="20px";
			
			img.height = img.height * 2;
			img.width = img.width * 2;
		}
		
		function Shrink(divName)
		{
			var div = document.getElementById('div' + divName);
			var img = document.getElementById(divName);
			
			div.style.height = (div.offsetHeight / 2) + "px";
			div.style.width = (div.offsetWidth / 2) + "px";
			div.style.fontSize = "10px";
			div.style.lineHeight="12px";
			
			img.height = img.height / 2;
			img.width = img.width / 2;
		}
