//Basic Library JavaScript


var Flashmode = false;
var player_version = 6;
var Win= (navigator.userAgent.indexOf ("Win")!=-1);
var Explorer= (navigator.appName.indexOf ("Explorer")!=-1);

if (navigator.plugins && navigator.plugins.length > 0){
	var plugin = navigator.plugins["Shockwave Flash"];
	if (plugin){
		var plgver = 0;
		var words = plugin.description.split (" ");
		for (var i = 0; i < words.length; ++i){
			if (isNaN (parseInt (words[i])))
			continue;
			plgver = words[i];
		}
		if (plgver >= player_version){
			var numTypes = plugin.length;
			for (j = 0; j < numTypes; j++){
				mimetype = plugin[j];
				if (mimetype){
					if (mimetype.enabledPlugin && (mimetype.suffixes.indexOf ("swf") != -1)) Flashmode = true;
					if (navigator.mimeTypes["application/x-shockwave-flash"] == null) 		Flashmode = true;
				}
			}
		}
	}
}

if (Win && Explorer){
	document.write ('<script language="VB'+'Script"\>\n');
	document.write ('on error resume next \n');
	document.write ('Dim Flash \n');
	document.write ('Dim get_ver \n');
	document.write ('Flash=IsObject (CreateObject ("ShockwaveFlash.ShockwaveFlash"))\n');
	document.write ('get_ver=Left (Hex (Int (CreateObject ("ShockwaveFlash.ShockwaveFlash").FlashVersion)),1)\n');
	document.write ('If (Flash) Then \n');
	document.write ('If get_ver >= '+player_version+' Then \n');
	document.write ('Flashmode = true \n');
	document.write ('End If \n');
	document.write ('End If \n');
	document.write ('</s'+'cript\> \n');
}

function checkFlash (){
	return Flashmode;
}


function winopn (winName,url) {
	if (url) {
	opnwin = window.open (url, winName,"toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
	opnwin.focus ();
	}
}