

if(DetectFlashVer(8,0,0)) {
	var videofile="mdrom.flv";
	var w=480;
	if(DetectFlashVer(9,0,115))	{
		videofile="mdrom.mp4"; //save 6mb/view
		//w=528; //maybe I should resize this
	}

	var htm;
	
	if(document.all) {
		var sslfix=(document.location.protocol=="https:")?"s":"";
		htm="<object  type=\"application/x-shockwave-flash\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http"+sslfix+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" "+
			"  data=\"FlowPlayer.swf\" "+
			"	width=\""+w+"\" height=\"384\">"+
			"	<param name=\"movie\" value=\"FlowPlayer.swf\" />"+
			"	<param name=\"scale\" value=\"noScale\" />"+
			"	<param name=\"wmode\" value=\"window\" />"+
			"	<param name=\"flashvars\" value=\"config={videoFile: '"+videofile+"', showMenu: false, showFullScreenButton: false, initialScale: 'fit', autoRewind: true, autoPlay: true, autoBuffering:false, usePlayOverlay:true}\" />"+
			"</object>";
	} else {
		htm="<embed width=\""+w+"\" height=\"384\" type=\"application/x-shockwave-flash\" src=\"FlowPlayer.swf\" wmode=\"window\" scale=\"noscale\" flashvars=\"config={videoFile: '"+videofile+"', showMenu: false, showFullScreenButton: false, initialScale: 'fit', autoRewind: true, autoPlay: true, autoBuffering:false, usePlayOverlay:true}\"></embed>";
	}
	htm="<center><div style='text-align:right;width:"+w+"px'>"+htm+"<a href='http://flowplayer.org/download.html' target='_blank'><font size=1 color=gray>flowplayer</font></a></div></center>";

	document.write("<div id='FlowPlayer' style='height:400px;'></div>");
	
	var played=false;
	var interval=window.setInterval(function() {
		var y;
		if(document.all) y=document.documentElement.scrollTop||document.body.scrollTop;
		else y=window.scrollY;
		if(y>200 && !played) {
			played=true;
			document.getElementById("FlowPlayer").innerHTML=htm;
			window.clearInterval(interval);
		}
	},250);
	
} else {
	//don't even bother
}


