// JavaScript Document
//main Flash


/*
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="225">
  <param name="movie" value="top7.swf">
  <param name="quality" value="high">
  <embed src="top7.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="225"></embed>
</object>
</noscript>
*/



var flashFile = "top7.swf";
var flashId = "top7";
var wid = "750";
var hgt = "225";
var app = ""; 
var url = location.href;

if(url.indexOf("app/cms.rb")>=1){
	app = "app/cms.rb/";
}



var mainFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'";
mainFlash += " width='";
mainFlash += wid;
mainFlash += "' height='";
mainFlash += hgt;
mainFlash += "' id='";
mainFlash += flashId;
mainFlash += "' align='middle'>";
mainFlash += "<param name='allowScriptAccess' value='sameDomain' />";
mainFlash += "<param name='movie' value='/" + app + "_skin/";
mainFlash +=  flashFile; 
mainFlash += "' />";
mainFlash += "<param name='quality' value='high' />";
mainFlash += "<param name='scale' value='noscale' />";
mainFlash += "<param name='salign' value='b' />";
mainFlash += "<param name='bgcolor' value='#ffffff' />";
mainFlash += " <embed src='/" + app + "_skin/";


mainFlash += flashFile;
mainFlash += "' quality='high' scale='noscale' salign='b' bgcolor='#ffffff' width='";
mainFlash += wid;
mainFlash += "' height='";
mainFlash += hgt;
mainFlash += "' ";


mainFlash += "name='"
mainFlash += flashId;

mainFlash += "' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
mainFlash += "</object>";



document.write(mainFlash);