// set variables
	var dom = (document.getElementById) ? true : false;
    var agt = navigator.userAgent.toLowerCase();
    var nn = agt.indexOf("netscape") !=-1 ? true: false;
	var vbOk = (agt.indexOf("msie") !=-1) && (agt.indexOf("win") !=-1) ? true : false;
	flash5 = false; // only true if we are really, really certain.

// detect flash5
	if (vbOk) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
		document.write('</SCRIPT\> \n');
	}
	else {
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ?
		navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
		if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 5) {
			flash5 = true;
		}
	}