function generateFlash(menuID,movieName,fileLocation,theWidth,theHeight){
	var theFlashOBJString = "";
	theFlashOBJString += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" id="' + movieName +'" width="' + theWidth +'" height="' + theHeight +'">';
	theFlashOBJString += '<param name="wmode" value="transparent">';
	theFlashOBJString += '<param name="menu" value="false">';                    
	theFlashOBJString += '<param name=movie value="' + fileLocation + '?navToLoadValue=' + menuID +'">';
	theFlashOBJString += '<param name=quality value=high>';
	theFlashOBJString += '<param name="AllowScriptAccess" value="Always" />';
	theFlashOBJString += '<param name=play value=true>';
	theFlashOBJString += '<param name=exactfit value=true>';
	theFlashOBJString += '<embed play=true swliveconnect="true" name="' + movieName + '" src="' + fileLocation + '?navToLoadValue=' + menuID +'" quality=high  width="' + theWidth +'" height="' + theHeight +'" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed ></object >';
	document.write(theFlashOBJString);
}


function generateFlash_player(theFileToPlay,movieName,fileLocation,theWidth,theHeight){
	var theFlashOBJString = "";
	theFlashOBJString += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0" id="' + movieName +'" width="' + theWidth + '"  height="' + theHeight + '" align="middle"><param name="allowFullScreen" value="true" /><param name="allowScale" value="false" /><param name="movie" value="' + fileLocation + '" /><param name="bgcolor" value="#ffffff" />';
	theFlashOBJString += '<embed allowScriptAccess="always" scale="noscale" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="' + movieName + '" src="' + fileLocation + '" quality=high  width="' + theWidth +'" height="' + theHeight +'" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed ></object >';

	document.write(theFlashOBJString);

}

function doFlash(){
	var so = new SWFObject("flvPlayer.swf?imagePath=image.jpg&videoPath=" + fileNames + "&autoStart=false&volAudio=60&newWidth=480&newHeight=385&disableMiddleButton=false&playSounds=true&soundBarColor=0x0066FF&barColor=0x0066FF&barShadowColor=0x91BBFB&subbarColor=0xffffff", "sotester", "480", "385", "9", "#efefef");
	so.addParam("allowFullScreen", "true");
	so.write("flashcontent");	
}
