// set this to the url of the current web site oedev, www.oelearning.com, etc
//strOEURL = 'oedev';
strOEURL = 'return=1';

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="918" height="302" id="HomePageVidArea" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="movie" value="HomePageVidArea.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');

//use the blnShowRick to pass in a 1 or 0 to determine if the intro clip should be shown when the page loads
//strURL = document.referrer;

strURL = window.location.href;
//alert(window.location.href);

if (strURL.indexOf(strOEURL)>0) 
	{
		//alert('dont show');
		document.write('<param name="flashvars" value="blnShowRick=1" />');
		document.write('<embed src="HomePageVidArea.swf" ');
		document.write(' quality="high" flashvars="blnShowRick=1" bgcolor="#ffffff" width="918" height="302" name="HomePageVidArea" align="middle" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	} 
else
	{
		//alert('show');
		document.write('<param name="flashvars" value="blnShowRick=0" />');
		document.write('<embed src="HomePageVidArea.swf" ');
		document.write(' quality="high" flashvars="blnShowRick=0" bgcolor="#ffffff" width="918" height="302" name="HomePageVidArea" align="middle" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	}

document.write('</object>');
	

