//javascript for Stuart Harris version 1.0
 
function showIt(){
 
/*******************************************************
FLASH DETECT 2.5
All detect code by Ryan Parman and mjac, unless otherwise noted.
(c) 1997-2004 Ryan Parman and mjac
http://www.skyzyx.com
*******************************************************/

// This script will test up to the following version.
flash_versions = 20;

// Initialize variables and arrays
var flash = new Object();
flash.installed=false;
flash.version='0.0';

// Dig through Netscape-compatible plug-ins first.
if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x < navigator.plugins.length; x++) {
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
			flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
			flash.installed = true;
			break;
		}
	}
}

// Then, dig through ActiveX-style plug-ins afterwords
else if (window.ActiveXObject) {
	for (x = 2; x <= flash_versions; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) {
				flash.installed = true;
				flash.version = x + '.0';
			}
		}
		catch(e) {}
	}
}

// Create sniffing variables in the following style: flash.ver[x]
// Modified by mjac
flash.ver = Array();
for(i = 4; i <= flash_versions; i++) {
	eval("flash.ver[" + i + "] = (flash.installed && parseInt(flash.version) >= " + i + ") ? true : false;");
}

//*****************end of flash detect***************************


//sort which browser used for correct object expression

var docObj, styleObj;
var isNav4, isNavNew, isIE;
if(navigator.appName=="Netscape"){
    if (parseInt(navigator.appVersion) ==4) {isNav4=true }
	else {isNavNew=true}
    
}
 else{isIE=true}
     

function handleResize() {
      location.reload()
}

 //to overcome refresh bug in netscape

if (isNav4 || isNavNew) {
                  window.captureEvents(Event.RESIZE)
                  window.onresize=handleResize
                 }    

if (document.getElementById){ docObj = 'document.getElementById'; styleObj='.style';}
if (document.all) { docObj = 'document.all'; styleObj='.style'; }
if (isNav4) {  docObj = 'document'; styleObj='';}

if(is.opera){ window.location="index2.html";}

var thisLayer;
var hideLayer;

if (flash.ver[5]){ 
if(is.win && is.ie5up){
		if (document.getElementById){ thisLayer=eval(docObj + '(\"flashplayer\")'+styleObj);  }
		else {  thisLayer=eval(docObj + '.' + "flashplayer" +styleObj) }

		if (document.getElementById){ hideLayer=eval(docObj + '(\"noFlash\")'+styleObj) }
		else {  hideLayer=eval(docObj + '.' + "noFlash" +styleObj) }
		thisLayer.visibility="visible";
		thisLayer.display="block";
		hideLayer.visibility="hidden";
		
}
//end of iswin and ie5
else{ 
		if (document.getElementById){ thisLayer=eval(docObj + '(\"flashplayer\")'+styleObj);  }
		else {  thisLayer=eval(docObj + '.' + "flashplayer" +styleObj) }

		if (document.getElementById){ hideLayer=eval(docObj + '(\"noFlash\")'+styleObj) }
		else {  hideLayer=eval(docObj + '.' + "noFlash" +styleObj) }


		thisLayer.visibility="visible";
		thisLayer.display="block";
		hideLayer.visibility="hidden";
        }
}  
//end of flashver

}
//end of showit

