function LoadVideo(VideoId, aElementId, aFile, aWidth, aHeight, aBackground)
{
	if (DetectFlash2(aElementId))
	{
		var so = new SWFObject(WebUrl + 'flvplayer.swf','player' + VideoId, aWidth,aHeight,'8');
		so.addVariable('file', aFile);
		so.addVariable('searchbar','false');
		if(aBackground != '')
		{
			so.addVariable('image',aBackground);
		}
		so.addVariable("width",aWidth);
		so.addVariable("height",aHeight);
		so.addParam("wmode","transparent");
	  	so.addVariable('javascriptid', VideoId);
		so.addVariable('enablejs','true');
		so.addParam('allowscriptaccess','always'); 
		so.addParam("allowFullScreen", "true");
		
		AutoPlay = "false";
		if (LoadVideo.arguments.length == 7)
		{
			AutoPlay = LoadVideo.arguments[6];
		}
		
		so.addVariable('autostart', AutoPlay);
		
		so.write(aElementId);
	}
	else
	{
		document.getElementById(aElementId).innerHTML = "Please install the Adobe Flash Player to view this website. <a href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' target='_blank'>Get Flash</a>";
	}
}