var my_client = new UserClient( ) ;
var flash_version = 8 ;
var is_installed = false ;

if (my_client.opera && navigator.plugins["Shockwave Flash"]) {
	var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash") ;
	var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ") ;
	var usr_ver = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6, ep)) ;
	if (usr_ver >= flash_version) {
		var is_installed = true ;
	}
}
else if (my_client.Win && my_client.ie) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n') ;
	document.write('on error resume next \n') ;
	document.write('contentVersion = 6 \n') ;
	document.write('is_installed = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion))) \n') ;
	document.write('</SCR' + 'IPT\> \n') ;
	if (my_client.ie4) {
		var is_installed = false ;
	}
}
else if (my_client.Mac && my_client.ie) {
	if (!my_client.ie4 && navigator.plugins["Shockwave Flash"]) {
		var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash") ;
		var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ") ;
		var usr_ver = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6, ep)) ;
		if (usr_ver >= flash_version) {
			var is_installed = true ;
		}
	}
}
else if (my_client.nn && navigator.plugins["Shockwave Flash"]) {
	var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash") ;
	var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ") ;
	var usr_ver = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6, ep)) ;
	if (usr_ver >= flash_version) {
		var is_installed = true ;
	}
}

function UserClient( ) {

	this.nav_name = navigator.appName ;
	this.nav_agnt = navigator.userAgent ;
	this.nav_ver = navigator.appVersion ;

	this.Win = (this.nav_agnt.indexOf("Win",0) != -1) ;
	this.Mac = (this.nav_agnt.indexOf("Mac",0) != -1) ;

	this.ie = (this.nav_name == "Microsoft Internet Explorer") ;
	this.ie4 = (this.nav_ver.indexOf('MSIE 4') > 0) ;
	this.nn = (this.nav_name == "Netscape") ;
	this.opera = (this.nav_agnt.indexOf("Opera", 0) != -1) ;
	this.safari = (this.nav_agnt.indexOf("Safari", 0) != -1) ;

}


function run_flash_top() {
	if (is_installed) {
		document.write (
				'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="940" height="150" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"> <param name="wmode" value="transparent" /><param name="movie" value="http://equatorcapitalng.com/eclsite/flash/ecl-home.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff"> <embed src="http://equatorcapitalng.com/eclsite/flash/ecl-home.swf" quality="high" bgcolor="#ffffff"  width="940" height="150" name="index" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed> </object>'	
		) ;
	}
	else {
		document.write (
					'<table width="100%" border="0" cellspacing="0" cellpadding="0" height="150" class="info1">'
	+'<tr valign="top">'
	+'<td width="15"><img src="/resource/image/common/null.gif" border="0" width="1" height="1" alt=""></td>'
	+'<td>'
	+'<div class="p05">'
	+'<ul class="list2">'
	+'<li>Please download a free copy of Flash Player to view flash content or make Javascript effective.</li>'
	+'</ul>'
	+'</div>'
	+'<div class="p05">'
	+'<table border="0" cellspacing="0" cellpadding="0" summary="">'
	+'<tr valign="top">'
	+'<td><img src="/resource/image/common/icon_blanklink.gif" width="16" height="16" alt=""></td>'
	+'<td><a href="/group/flash.html" target="_blank">Flash Player DownLoad <img src="/resource/image/common/null.gif" border="0" width="1" height="1" alt="new window"></a></td>'
	+'</tr>'
	+'</table>'
	+'</div>'
	+'</td>'
	+'</tr>'
	+'</table>'
) ;
	}
}

