function growUp() 
{
	if (foo.style.width==(wpwidth+"px"))
	{ 
	     clearInterval(time);
	   	 fooImages.style.display="inline";
		
	}
	else
	{
		foo.style.width=(parseInt(foo.style.width)+10)+"px";
	}
}
function growDown() 
{
	if (foo.style.width=="0px")
	{
		clearInterval(time);
		foo.style.visibility="hidden";
			foo.style.height="0px";
		
	}
	else
	{
		foo.style.width=(parseInt(foo.style.width)-10)+"px";
	}
}

function runGrowUp(wpcode,width,height)
{
	foo=document.getElementById('playlist'+wpcode);
	fooImages= document.getElementById("images"+wpcode);
	wpwidth=width;
	foo.style.height=height;
	foo.style.visibility="visible";
	if (navigator.appName=="Netscape")
	{
	foo.style.paddingLeft=wpwidth;
	}
	document.getElementById("plist"+wpcode).onclick=function(){runGrowDown(wpcode,width,height)};
	time=setInterval(growUp,5);
}

function runGrowDown(wpcode,width,height)
{
	foo=document.getElementById("playlist"+wpcode);
	document.getElementById("images"+wpcode).style.display="none";
	document.getElementById("plist"+wpcode).onclick=function(){runGrowUp(wpcode,width,height)};
	time=setInterval(growDown,5);
}
