function getFlashMovieObject(movieName) {
	// F. Permadi May 2000
	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);
	}
}
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);
}
var movingIt = 0;
function moveIt(elem,startPos,endPos,steps,interval,powr) {
	// improved version of the mover code
	movingIt = 1;
	var actStep = 0;
	function moveABit() {
		// do the moves
		if (actStep == steps+1) {
			elem.currentPos = endPos;
			movingIt = 0;
		} else {
			elem.currentPos = easeInOut(startPos,endPos,steps,actStep,powr);
		}
		elem.style.top = elem.currentPos+"px";
		actStep++;
	}
	// setup the timeouts for each step
	for (var i=0; i<steps+1; i++) {
		setTimeout(moveABit,interval*(i+1));
	}
}
function hideFlashMovie() {
	moveIt(document.getElementById("flashheader"),-16,-500,10,20,1);
}
function showFlashMovie() {
	moveIt(document.getElementById("flashheader"),-500,-16,10,20,1);
}