var flashName	= "flash/top_logo.swf"; 
var altImgName	= "../noflash.gif"; // alternate file 

//for testing....
//var minFlashVer	= prompt("Flash? type '1' for yes, '2' for no");
//minFlashVer	= minFlashVer*5;

var minFlashVer	= 5; // Min Flash version required
var width = 551;
var height = 90;
var plugin = 0;
var d = document; 
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { 
	if (navigator.plugins && navigator.plugins["Shockwave Flash"]) 
		pos = navigator.plugins["Shockwave Flash"].description.indexOf("Shockwave Flash"); 
		pos += 16; 
		var swver = navigator.plugins["Shockwave Flash"].description.substr(pos,1) 
		if (swver >= minFlashVer) 
			plugin = 1;
} 
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0  
   && (navigator.userAgent.indexOf("Windows")>=0)) { 
	d.write('<SCRIPT LANGUAGE=VBScript> \n'); 
	d.write('on error resume next \n'); 
	d.write('if ( minFlashVer = 3 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n'); 
	d.write('if (( minFlashVer <= 4) and (plugin <= 0 )) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n'); 
	d.write('if (( minFlashVer <= 5) and (plugin <= 0 )) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n'); 
	d.write("</SCR"+"IPT> \n"); 
} 

if ( plugin ) {
	d.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	d.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+minFlashVer+',0,0,0" ');
	d.write(' ID=movie WIDTH='+width+' HEIGHT='+height+' hspace="0" vspace="0">');
	d.write('<PARAM NAME=movie VALUE="'+flashName+'"><PARAM NAME=quality VALUE=high>');
        d.write('<EMBED pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash src="'+flashName+'" quality=high ');
	d.write(' swLiveConnect=FALSE WIDTH='+width+' HEIGHT='+height); 
	d.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	d.write('</EMBED>');
	d.write('</OBJECT>');

} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){ 
	d.write('<img src="gifs/GKA_logo.gif" width="300" height="90" border="0" alt="Company Photo" />');
}

