 function play(containerid, url, width, height)
 { 
 	container = document.getElementById(containerid);
	html = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'; 
	html += '\ncodebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ width +'" height="'+ height +'" align="middle">';
    html += '\n<param name="allowScriptAccess" value="sameDomain" />';
    html += '\n<param name="movie" value="player.swf" />';
    html += '\n<param name="FlashVars" value="flvURL='+ url +'&ControlPanelColor=0xccff00&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" />';
    html += '\n<param name="quality" value="high" />';
    html += '\n<param name="bgcolor" value="#000000" />';
 	html += '\n<param name="scale" value="noscale" />';
	html += '\n<param name="salign" value="lt" />	';
    html += '\n<embed src="player.swf" width="'+ width +'" height="'+ height +'" align="middle" quality="high" bgcolor="#000000" scale="noscale" salign="lt" FlashVars="flvURL='+ url +'&ControlPanelColor=0xccff00&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
  html += '\n</object>';
  
	container.innerHTML = html;
	document.getElementById('playid').style.display = 'none';
 	//document.getElementById('endid').style.display = '';
	container.focus();
 }
 
 function end(containerid)
 {
	 container = document.getElementById(containerid);
	 container.innerHTML = '';
	 document.getElementById('playid').style.display = '';
 	 //document.getElementById('endid').style.display = 'none';
 }