var divId = "add-to-wish-list-menu";
var divId2 = "add-to-wish-list-menu2";
var divId3 = "add-to-wish-list-menu3";
var startWidth = 0;
var startHeight = 0;
var finalWidth = 300;
var finalHeight = 80;
var growthValue = 50;
var heightGrowthValue = growthValue/(finalWidth/finalHeight);
currentWidth = 0;
currentHeight = 0;
currentLeft = 0;
currentTop = 0;
function enlarge()           {
			toEnlarge = document.getElementById(divId);
			if(typeof hide != "undefined")        {
						clearInterval(hide);
			}
			currentWidth = 0;
			currentHeight = 0;
			currentLeft = 50;
			currentTop = 5;
			toEnlarge.style.display = "block";
			toEnlarge.style.overflow = "hidden";
			toEnlarge.style.width = startWidth;
			toEnlarge.style.height = startHeight;
			toEnlarge.style.position = "absolute";
			grow = setInterval("enlargeP1()", 5);
}
function enlarge2()          {
			toEnlarge = document.getElementById(divId2);
			if(typeof hide != "undefined")        {
						clearInterval(hide);
			}
			currentWidth = 0;
			currentHeight = 0;
			currentLeft = 50;
			currentTop = 5;
			toEnlarge.style.display = "block";
			toEnlarge.style.overflow = "hidden";
			toEnlarge.style.width = startWidth;
			toEnlarge.style.height = startHeight;
			toEnlarge.style.position = "absolute";
			grow = setInterval("enlargeP1()", 5);
}
function enlarge3()          {
			toEnlarge = document.getElementById(divId3);
			if(typeof hide != "undefined")        {
						clearInterval(hide);
			}
			currentWidth = 0;

			currentHeight = 0;

			currentLeft = 50;
			currentTop = 5;
			toEnlarge.style.display = "block";
			toEnlarge.style.overflow = "hidden";
			toEnlarge.style.width = startWidth;
			toEnlarge.style.height = startHeight;
			toEnlarge.style.position = "absolute";
			grow = setInterval("enlargeP1()", 5);
}
function enlargeP1()       {
			currentWidth += growthValue;
			currentHeight += heightGrowthValue;
			currentLeft -= (growthValue/2);
			currentTop -= (heightGrowthValue/2);
			if(currentWidth <= finalWidth)      {
						toEnlarge.style.width = currentWidth+"px";
						toEnlarge.style.left = currentLeft+"px";
						toEnlarge.style.height = currentHeight+"px";
						toEnlarge.style.top = currentTop+"px";
			}
			else      {
						clearInterval(grow);
			}
}
function toSmall()           {
			if(typeof grow != "undefined")       {
						clearInterval(grow);
			}
			toEnlarge = document.getElementById(divId);
			toEnlarge2 = document.getElementById(divId2);
			toEnlarge3 = document.getElementById(divId3);
			hide = setInterval("toSmallP1()", 5);
}
function toSmallP1()       {
			currentWidth -= growthValue;
			currentHeight -= heightGrowthValue;
			currentLeft += (growthValue/2);
			currentTop += (heightGrowthValue/2);
			if(currentWidth > startWidth)       {
						toEnlarge.style.width = currentWidth+"px";
						toEnlarge.style.left = currentLeft+"px";
						toEnlarge.style.height = currentHeight+"px";
						toEnlarge.style.top = currentTop+"px";
						toEnlarge2.style.width = currentWidth+"px";
						toEnlarge2.style.left = currentLeft+"px";
						toEnlarge2.style.height = currentHeight+"px";
						toEnlarge2.style.top = currentTop+"px";
						toEnlarge3.style.width = currentWidth+"px";
						toEnlarge3.style.left = currentLeft+"px";
						toEnlarge3.style.height = currentHeight+"px";
						toEnlarge3.style.top = currentTop+"px";
			}
			else      {
						clearInterval(hide);
						toEnlarge.style.display = "none";
						toEnlarge2.style.display = "none";
			}           
}
