function loadMovie(movieFilename,width,height){
	window.scrollTo(0,0);
	if(pluginlist.indexOf("Flash")!=-1){
		zoomDiv(movieFilename,width,height);
		}else{
		if(confirm("You don't have Adobe Flash installed.\n\nAdobe Flash is required to play the movie.\n\nDo you want to install it now?")){
			window.location="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
			}
		}
	}
	
function zoomDiv(movieFilename,width,height){
	document.getElementById('flashcontent').style.display="";
	/*document.getElementById('menu').style.display="";*/
	/*var myFx1 = new Fx.Tween('flashcontent');*/
	var myFx2 = new Fx.Tween('flashcontent');
	/*myFx1.start('height',height);*/
	myFx2.start('width',width);
	var t=setTimeout('startMovie(\''+movieFilename+'\',\''+width+'\',\''+height+'\');',800);	
	}

function startMovie(movieFilename,width,height){
	document.getElementById('menu').style.display="";
	var flash_coords=$('flashcontent').getPosition();
	var flash_top=flash_coords.y;
	var flash_left=flash_coords.x;
	var menu_top=(Number(flash_top)+Number(height)+20);
	var menu_left=(Number(flash_left));
	var w=document.getElementById('flashcontent').style.width;
	var menu_width=(Number(w.substr(0,w.length-2))+20);
	document.getElementById('menu').style.width=menu_width+"px";
	document.getElementById('menu').style.left=menu_left+"px";
	document.getElementById('menu').style.top=menu_top+"px";
	document.getElementById('menu').style.height="30px";
	
	var so = new SWFObject(movieFilename, "mymovie", width, height, "8", "#ffffff");
	so.addParam("quality", "high");
	so.addParam("salign", "t");
	so.useExpressInstall("expressinstall.swf");	
	so.write("flashcontent");	
	}
	
function unzoomMovie(){
	document.getElementById('flashcontent').innerHTML="<table width=100% height=100%><tr><td align=center valign=middle><img src=\"images/loading.gif\" border=0></td></tr></table>";
	document.getElementById('menu').style.display="none";
	var myFx3 = new Fx.Tween('flashcontent');
	myFx3.start('width',40);
	var t=setTimeout('closeMovie();',600);
	}
	
function closeMovie(){	
	document.getElementById('flashcontent').style.display="none";	
	}
