//I obviously do not know the jquery shortcuts yet.

/****************************

instead of onload,  this could (and will) be changed to a function that receives an flv file name via a pulldown or clickable object on the stage.

****************************/

function loadVideo(file) {

	var playerFlv = new SWFObject("player.swf","myplayer2","529","298","9"); //must be in the same dir as the html file holding the video
	playerFlv.addVariable("screencolor","white");
	//playerFlv.addVariable("image","preview.jpg");
	playerFlv.addVariable("file","web_video/"+file);
	//playerFlv.addVariable("controlbar","none");
	playerFlv.addVariable("autostart","true");
	playerFlv.addVariable("bufferlength","75");
	playerFlv.addVariable("icons","false");
	playerFlv.addVariable("quality","true");
	playerFlv.write("player2");
	//create a javascript object to allow us send events to the flash player
	var player2 = document.getElementById("myplayer2");
}


