﻿// Javascript File
// allows us to avoid the activex problem in IE
// the FlashVars param is the source for the video. Put the production server address into the flvURL.
function WriteFlash() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="390" id="Cathy">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="./CathyTrailer.swf" />'); 
	// document.write('<param name="FlashVars" value="flvURL=./cathytrail.flv" />');
	document.write('<param name="FlashVars" value="flvURL=http://media.42entertainment.com/video/CathyTrail.flv" />');
	// document.write('<param name="FlashVars" value="flvURL=http://www.42entertainment.com/42WebMovies/CathyTrail.flv" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="scale" value="noscale" />');
	//document.write('<param name="bgcolor" value="#00000" />');
	// note that there is no background color currently being set by the embed. 
	//bgcolor="#000000" was removed
	document.write('<embed src="CathyTrailer.swf" quality="high" scale="noscale" FlashVars="flvURL=http://media.42entertainment.com/video/CathyTrail.flv"  width="500" height="390" id="Cathy" name="Cathy" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

