var _idNumSwf = 0
   objectflash = function(url,width,height,id,wmode){
   			var _classid = " classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" " ;
			var _codebase = "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" " ;
			var _pluginspage=" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" "
			var _type=" type=\"application/x-shockwave-flash\" "
   			var tmphtml = new String ;
   			if (!id) { id = "_swf"+_idNumSwf}
			if (!wmode) { wmode = "window"}
			tmphtml += "<object " +_classid+_codebase+ " WIDTH=\"" +width+ "\" HEIGHT=\"" +height+ "\" id=\"" +id+ "\""+" name=\"" +id+ "\">" ;
			tmphtml += "<param name=\"movie\" value=\""+url+"\">"
			tmphtml += "<param name=\"quality\" value=\"high\">"			
			tmphtml += "<param name=\"wmode\" value=\""+wmode+"\">"
			tmphtml += "<embed src=\"" +url+ "\" WIDTH=\"" +width+ "\" HEIGHT=\"" +height+ "\"" +_pluginspage+_type+ "quality=\"high\" wmode=\"" +wmode+ "\" id=\"" +id+ "\""+" name=\"" +id+ "\" ></embed>"
			tmphtml += "</object>" ;
			document.write(tmphtml)
			//alert(tmphtml)
			_idNumSwf += 1
			return document.getElementById(id)
   }
   


var _idNumplay = 0
  objectmplay = function(url,width,height,id,autoStart,volume,enabled){
  			var _classid = " classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" "
			var _codebase =" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" "
			var _Otype =" type=\"application/x-oleobject\" "
			var _Etype =" type=\"application/x-mplayer2\" "
 			var _pluginspage =" pluginspage=\"http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/\" "
			var tmphtml = new String ;
			if (!id) { id = "_mpaly"+_idNumplay} ;
			if (!autoStart){ autoStart = "true"; } ;
			if (!volume){ volume = "100"; } ;
			if (!enabled){ enabled = "true"} ;

			tmphtml += "<object " +_classid+_codebase+_Otype+ " WIDTH=\"" +width+ "\" HEIGHT=\"" +height+"\" id=\"" +id+ "\""+" name=\"" +id+ "\">" ;
			tmphtml += "<param name=\"url\" value=\""+url+"\">"
			tmphtml += "<param name=\"autoStart\" value=\""+autoStart+"\">"			
			tmphtml += "<param name=\"volume\" value=\""+volume+"\">"
			tmphtml += "<param name=\"enabled\" value=\""+enabled+"\">"	
			tmphtml += "<embed " +_pluginspage+_Etype+ " src=\"" +url+ "\" WIDTH=\"" +width+ "\" HEIGHT=\"" +height+"\" enabled=\""+enabled+"\" volume=\"" +volume+ "\" autoStart=\""+autoStart+"\" id=\"" +id+ "\""+" name=\"" +id+ "\" >"
			tmphtml += "</object>" ;			
			

			document.write(tmphtml)
			//alert(tmphtml)
			_idNumSwf += 1
			return document.getElementById(id)
  }



