function getFlashMovieObject(movieName){
	if (window.document[movieName])
	{
		return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1)
	{
		if (document.embeds && document.embeds[movieName])
		return document.embeds[movieName]; 
	}
	else
	{
	return document.getElementById(movieName);
	}
}

var y;
var speed;
var direction;

function changePanelHeight(whichID, y, direction, minHeight, maxHeight){
    var item = getFlashMovieObject("whichID");
	item = document.getElementById(whichID);
	if (y >= maxHeight && direction == 0)
	{
		item.style.height = maxHeight;
		direction = 1;
		return;
	}
	if (y <= minHeight && direction == 1)
	{
		item.style.height = minHeight;
		direction = 0;
		return;
	}
	if (direction) 
		speed = -25;
	if(!direction)
		speed = 25;
	y = y+speed;
	item.style.height = y + 'px';
	// Set temporary vars for the timer (it doesn't directly take the originals)
	thisID = whichID;
	thisY = y;
	thisDirection = direction;
	thisMin = minHeight;
	thisMax = maxHeight;
	t = setTimeout("changePanelHeight(thisID, thisY, thisDirection, thisMin, thisMax);", 0);
}