<!-- hide script

// write out the VBScript for MSIE Windows
var WM_startTagFix = '</';
var msie_windows = 0;
if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)){
  msie_windows = 1;
  document.writeln('<script language="VBscript">');
  document.writeln('\'This will scan for plugins for all versions of Internet Explorer that have a VBscript engine version 2 or greater.');
  document.writeln('\'This includes all versions of IE4 and beyond and some versions of IE 3.');
  document.writeln('Dim WM_detect_through_vb');
  document.writeln('WM_detect_through_vb = 0');
  document.writeln('If ScriptEngineMajorVersion >= 2 then');
  document.writeln('  WM_detect_through_vb = 1');
  document.writeln('End If');
  document.writeln('Function WM_activeXDetect(activeXname)');
  document.writeln('  on error resume next');
  document.writeln('  If ScriptEngineMajorVersion >= 2 then');
  document.writeln('     WM_activeXDetect = False');
  document.writeln('     WM_activeXDetect = IsObject(CreateObject(activeXname))');
  document.writeln('     If (err) then');
  document.writeln('        WM_activeXDetect = False');
  document.writeln('     End If');
  document.writeln('   Else');
  document.writeln('     WM_activeXDetect = False');
  document.writeln('   End If');
  document.writeln('End Function');
  document.writeln(WM_startTagFix+'script>');
}




function platformInfo() {
	var platform;
	var browser;
	var flashVersionRequired = 7;
	var detect = 0;

	// platform info
	if (navigator.appVersion.indexOf("Macintosh") != -1) {
		platform = "mac";
	}
	if (navigator.appVersion.indexOf("Windows") != -1) {
		platform = "win";
	}
	

	// browser info
	if (navigator.userAgent.indexOf("Netscape") != -1) {
		browser = "netscape";
	}
	if (navigator.userAgent.indexOf("MSIE") != -1) {
		browser = "ie";
	}
	if (navigator.userAgent.indexOf("Firefox") != -1) {
		browser = "firefox";
	}
	if (navigator.userAgent.indexOf("Safari") != -1) {
		browser = "safari";
	}
	
	
	// plugin info
	if (browser == "netscape" || browser == "firefox" || browser == "safari") {
		for (var i=0; i<navigator.plugins.length; i++) {

			if (navigator.plugins[i].description.indexOf("Flash") != -1) {
				var flashDescription = navigator.plugins[i].description;
				var descArray = flashDescription.split(" ");
				var tempArrayMajor = descArray[2].split(".");			
				var versionMajor = tempArrayMajor[0];
				var versionMinor = tempArrayMajor[1];

				detect = 1;		
				if (versionMajor >= flashVersionRequired) {
					flash();
				} else {
					oldFlash();
				}
			}
		}
		
		if (detect == 0) {
			noFlash();
		}
	}
	
	if (browser == "ie") {
		if (platform == "mac") {  // giving up with IE on Mac.  user is on his own.
			flash();
		} else {
			var str = "ShockwaveFlash.ShockwaveFlash." + flashVersionRequired;
			if (WM_activeXDetect(str)) {  // if IE on Win then check.
				flash();
			} else {
				noFlash();
			}
		}
	}
	
}


function flash() {
	window.location='pax.php';
}

function oldFlash() {
	window.location='oldflash.html';
}

function noFlash() {
	window.location='noflash.html';
}


// end hiding of script --> 
