

var flash2Ver = false;		 
var flash3Ver = false;		 
var flash4Ver = false;		 
var flash5Ver = false;		 
var currVer = 0;				  	 
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;		 
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;  

   
if(isIE && isWin){  
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flash2Ver = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
	document.write('flash3Ver = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
	document.write('flash4Ver = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
	document.write('flash5Ver = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');	
	document.write('</SCR' + 'IPT\> \n');  
}

 
function detectFlashVer(){	

	if (navigator.plugins){							 
		if (navigator.plugins["Shockwave Flash"]){		 
	 
			var isVer = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDes = navigator.plugins["Shockwave Flash" + isVer].description;
			var flashVer = parseInt(flashDes.charAt(flashDes.indexOf(".") - 1));

	 		flash2Ver = flashVer == 2;		
			flash3Ver = flashVer == 3;
			flash4Ver = flashVer == 4;
			flash5Ver = flashVer == 5;
		
		}
	}
	 
	 
	 
	for (var i = 2; i <= 5; i++) {	
		if (eval("flash" + i + "Ver") == true) currVer = i;
	}
	
 
	if (currVer == 4) { 		
 			location.href ="sternhillIntroF.htm"
		 	}  
 	 	 
	
	if (currVer >= 5) { 		
 		 			location.href ="sternhillIntroF5.htm"
		 	}  
 	  
if (currVer < 4) { 		
 			 		location.href ="sternhillIntroF.htm"	
		 	}  
		 	}

detectFlashVer();	
	
