var _flash = null;
var _duration = 300;
function doMaximize(){
	//code used when the flashtimeline is maximized
	if (_flash)
	{
		var fx = new Fx.Styles(_flash, {duration:_duration, wait:false});
		fx.start({
			'height': 350
		});
	}
	
}
function doMinimize(){
	//code used when the flashtimeline is minimized
	if (_flash)
	{
		var fx = new Fx.Styles(_flash, {duration:_duration, wait:false});
		fx.start({
			'height': 60
		});
	}
}

function initFlash() {
	_flash = document.getElementById("flash")
}

if (window.addEventListener){
	window.addEventListener("load", initFlash, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initFlash);
}