// the caller must place the following in the <head>: 
// <script type="text/javascript" src="js/swfobject2-1.js"></script>
// <script type="text/javascript" src="js/showFlash.js"></script>

   function showFlash(theFile, w, h, theID, bg) {
     		var flashvars = {};
			var params = {};
			params.play = "true";
			params.loop = "true";
			params.menu = "false";
			params.quality = "best";
			params.scale = "showall";
			params.allowscriptaccess = "always";
			params.wmode=bg;
		     var attributes = {};
                    attributes.styleclass="swf"+theID;
                    attributes.name="swf"+theID;
 			swfobject.embedSWF(theFile, theID, w, h, "9.0.0", "../flash/expressInstall.swf", flashvars, params, attributes);
  
	}
 

    function createPlayer(thePlayer, theFile, theImage, w, h, theID, startIt, background, fullscr, bg, logo) {
 			 var flashvars = {};
					flashvars.file="../" + theFile;
                    flashvars.image=theImage;
					flashvars.screencolor=background;
                    flashvars.quality="true";
                    flashvars.repeat="none";
                    flashvars.controlbar="bottom";
					flashvars.controlbarsize="20";
                    flashvars.autostart=startIt;
                    flashvars.displayclick="play";
                    flashvars.stretching="uniform";	// 'fill', 'none', 'uniform', 'exactfit'
					flashvars.volume="90";
 				 flashvars.logo=logo;
           
            var attributes = {};
                    attributes.styleclass="swf"+theID;
                    attributes.name="video"+theID;
  
			var params = {};
			params.wmode=bg;
			params.allowscriptaccess="always";
			params.allowfullscreen=fullscr;
			
			swfobject.embedSWF(thePlayer, theID, w, h, "9.0.0", "../flash/expressInstall.swf", flashvars, params, attributes);
	
	
	}
	

