/* PluginDetect v0.4.0 ( Java ) by Eric Gerds www.pinlady.net/PluginDetect */
if (!PluginDetect) {
	var PluginDetect = {minIEver:5.5,getNum:function(A) {
		if (!A) {return null}
		var m = /[\d][\d\.\_,-]*/.exec(A);
		return m ? m[0].replace(/[\.\_-]/g, ",") : null
	},hasMimeType:function(_3) {
		var s,t,z,M = _3.constructor == String ? [_3] : _3;
		for (z = 0; z < M.length; z++) {
			s = navigator.mimeTypes[M[z]];
			if (s && s.enabledPlugin) {
				t = s.enabledPlugin;
				if (t.name || t.description) {return s}
			}
		}
		return null
	},findNavPlugin:function(N, _6) {
		var _7 = N.constructor == String ? N : N.join(".*"),numS = _6 === false ? "" : "\\d";
		var i,re = new RegExp(_7 + ".*" + numS + "|" + numS + ".*" + _7, "i");
		var _9 = navigator.plugins;
		for (i = 0; i < _9.length; i++) {if (re.test(_9[i].description) || re.test(_9[i].name)) {return _9[i]}}
		return null
	},getAXO:function(_a) {
		var _b,e;
		try {
			_b = new ActiveXObject(_a);
			return _b
		} catch(e) {}
		return null
	},num:function(A) {return (typeof A != "string" ? false : (/\d/).test(A))},compareNums:function(_d, _e) {
		if (!this.num(_d) || !this.num(_e)) {return 0}
		var m1 = _d.split(","),m2 = _e.split(","),x,p = parseInt;
		for (x = 0; x < Math.min(m1.length, m2.length); x++) {
			if (p(m1[x], 10) > p(m2[x], 10)) {return 1}
			if (p(m1[x], 10) < p(m2[x], 10)) {return -1}
		}
		return 0
	},formatNum:function(num) {
		if (!this.num(num)) {return null}
		var x,n = num.replace(/[\.\_]/g, ",").split(",").concat(["0","0","0","0"]);
		for (x = 0; x < 4; x++) {n[x] = parseInt(n[x], 10)}
		return n[0] + "," + n[1] + "," + n[2] + "," + n[3]
	},initScript:function() {
		var $ = this,IE;
		$.isIE = (/*@cc_on!@*/false);
		$.IEver = -1;
		$.ActiveXEnabled = false;
		if ($.isIE) {
			IE = (/msie\s*\d\.{0,1}\d*/i).exec(navigator.userAgent);
			if (IE) {$.IEver = parseFloat((/\d.{0,1}\d*/i).exec(IE[0]), 10)}
			var _13,x;
			_13 =
			["ShockwaveFlash.ShockwaveFlash","Msxml2.XMLHTTP","Microsoft.XMLDOM","Msxml2.DOMDocument","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];
			for (x = 0; x < _13.length; x++) {
				if ($.getAXO(_13[x])) {
					$.ActiveXEnabled = true;
					break
				}
			}
		}
		;
		if ($.ActiveXEnabled && $.IEver >= $.minIEver) {
			$.head = typeof document.getElementsByTagName != "undefined" ? document.getElementsByTagName("head")[0] : null;
			var T = document.createElement("script");
			T["type"] = "text/vbscript";
			var Y = ["<!" +
			         "--","function PluginDetect1(c)","on error resume next","PluginDetect1=false","dim head, r","set head=PluginDetect.head","set r=head.firstChild","if TypeName(r)=\"HTMLObjectElement\" then","r.classid=c","if not TypeName(r.object) = \"Nothing\" then","PluginDetect1=true","if r.readyState<4 then","head.removeChild(r)","end if","else head.removeChild(r)","end if","end if","r=\"Nothing\"","head=\"Nothing\"","end function","--" +
			                                                                                                                                                                                                                                                                                                                                                                                                                                               ">"];
			T["text"] = Y.join("\n");
			if ($.head.firstChild) {$.head.insertBefore(T, $.head.firstChild)} else {$.head.appendChild(T)}
			$.vbscript = false;
			var e;
			$.head.insertBefore(document.createElement("object"), $.head.firstChild);
			try {if (PluginDetect1("") === false) {$.vbscript = true}} catch(e) {}
		}
	},init:function(_17) {
		if (typeof _17 != "string") {return -3}
		_17 = _17.toLowerCase().replace(/\s/g, "");
		var $ = this,IE,p;
		if (typeof $[_17] == "undefined") {return -3}
		p = $[_17];
		$.plugin = p;
		if (typeof p.installed == "undefined") {
			p.minversion = {};
			p.installed = null;
			p.version = null;
			p.getVersionDone = null
		}
		$.garbage = false;
		if ($.isIE && !$.ActiveXEnabled) {return -2}
		return 1
	},isMinVersion:function(_19, _1a) {
		var $ = PluginDetect,i = $.init(_19);
		if (i < 0) {return i}
		if (typeof _1a == "undefined" || _1a == null) {_1a = "0"}
		if (typeof _1a == "number") {_1a = _1a.toString()}
		if (!$.num(_1a)) {return -3}
		_1a = $.formatNum(_1a);
		var p = $.plugin,m = p.minversion;
		if (typeof m["a" + _1a] == "undefined") {
			if (p.getVersionDone == null && typeof p.isMinVersion != "undefined" && $.IEver >= p.minIEver) {
				var tmp,x;
				for (x in m) {
					tmp = $.compareNums(_1a, x.substring(1, x.length));
					if (m[x] == 1 && tmp <= 0) {return 1}
					if (m[x] == -1 && tmp >= 0) {return -1}
				}
				m["a" + _1a] = p.isMinVersion(_1a) ? 1 : -1;
				if (p.version != null || p.installed == -1 || p.installed == 1) {p.getVersionDone = 1}
			} else {
				if (p.getVersionDone == null) {p.getVersion(_1a)}
				if (p.version != null || p.installed != null) {
					p.getVersionDone = 1;
					m["a" + _1a] = (p.installed == -1 ? -1 : (p.version == null ? 0 : ($.compareNums(p.version, _1a) >= 0 ? 1 : -1)))
				} else {m["a" + _1a] = -1}
			}
		}
		$.cleanup();
		return m["a" + _1a];
		return -3
	},getVersion:function(_1e) {
		var $ = PluginDetect,i = $.init(_1e);
		if (i < 0) {return null}
		var p = $.plugin;
		if (p.getVersionDone == null) {
			p.getVersion();
			p.getVersionDone = 1
		}
		$.cleanup();
		return p.version;
		return null
	},cleanup:function() {
		var $ = this;
		if ($.garbage && typeof window.CollectGarbage != "undefined") {window.CollectGarbage()}
	},isActiveXObject:function(_22) {
		var $ = this,result,s = "<object width=\"1\" height=\"1\" " + "style=\"display:none\" " + $.plugin.getCodeBaseVersion(_22) + ">" +
		                        $.plugin.HTML + "</object>";
		$.head.insertBefore(document.createElement("object"), $.head.firstChild);
		$.head.firstChild.outerHTML = s;
		result = $.vbscript ? PluginDetect1($.plugin.classID) : $.detect($.plugin.classID);
		return result
	},detect:function(_24) {
		var $ = this,result;
		$.head.firstChild["classid"] = _24;
		result = $.head.firstChild["object"] ? true : false;
		if (!result || $.head.firstChild["readyState"] < 4) {
			$.head.removeChild($.head.firstChild);
			$.garbage = true
		}
		return result
	},search:function(min) {
		var _27 = [0,0,0,0],$ = this,x,y,A = $.plugin.digits,t = function(x, y) {
			var _2a = (x == 0 ? y : _27[0]) + "," + (x == 1 ? y : _27[1]) + "," + (x == 2 ? y : _27[2]) + "," + (x == 3 ? y : _27[3]);
			return $.isActiveXObject(_2a)
		};
		$.isActiveXObject("999,99,99,99");
		if (typeof min != "undefined") {return $.isActiveXObject(min)}
		var _2b,tmp;
		var _2c = false;
		for (x = 0; x < A.length; x++) {
			_2b = A[x] * 2;
			_27[x] = 0;
			for (y = 0; y < 20; y++) {
				if (_2b == 1 && x > 0 && _2c) {break}
				if (_2b - _27[x] > 1) {
					tmp = Math.round((_2b + _27[x]) / 2);
					if (t(x, tmp)) {
						_27[x] = tmp;
						_2c = true
					} else {_2b = tmp}
				} else {
					if (_2b - _27[x] == 1) {
						_2b--;
						if (!_2c && t(x, _2b)) {_2c = true}
						break
					} else {
						if (!_2c && t(x, _2b)) {_2c = true}
						break
					}
				}
			}
			if (!_2c) {return null}
		}
		return _27.join(",")
	},dummy1:0}
}
PluginDetect.initScript();
PluginDetect.java =
{mimeType:"application/x-java-applet",classID:"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93",DTKclassID:"clsid:CAFEEFAC-DEC7-0000-0000-ABCDEFFEDCBA",DTKmimeType:"application/npruntime-scriptable-plugin;DeploymentToolkit",minWebStart:"1,4,2,0",JavaVersions:["1,9,1,19","1,8,1,19","1,7,1,19","1,6,1,19","1,5,0,19","1,4,2,19","1,3,1,19"],lowestPreApproved:"1,6,0,02",lowestSearchable:"1,3,1,0",searchJava:function(
		min, _33) {
	var e,z,T,$ = PluginDetect;
	var _35,C_DE,C,DE,v;
	var AXO = ActiveXObject;
	var _37 = (typeof _33 != "undefined") ? _33 : this.minWebStart;
	var Q = min.split(","),x;
	for (x = 0; x < 4; x++) {Q[x] = parseInt(Q[x], 10)}
	for (x = 0; x < 3; x++) {if (Q[x] > 9) {Q[x] = 9}}
	if (Q[3] > 99) {Q[3] = 99}
	var _39 = "JavaPlugin." + Q[0] + Q[1] + Q[2] + (Q[3] > 0 ? ("_" + (Q[3] < 10 ? "0" : "") + Q[3]) : "");
	for (z = 0; z < this.JavaVersions.length; z++) {
		if ($.compareNums(min, this.JavaVersions[z]) > 0) {return null}
		T = this.JavaVersions[z].split(",");
		_35 = "JavaPlugin." + T[0] + T[1];
		v = T[0] + "." + T[1] + ".";
		for (C = T[2]; C >= 0; C--) {
			if ($.compareNums(T[0] + "," + T[1] + "," + C + ",0", _37) >= 0) {
				try {
					new AXO("JavaWebStart.isInstalled." + v + C + ".0")
				} catch(e) {continue}
			}
			if ($.compareNums(min, T[0] + "," + T[1] + "," + C + "," + T[3]) > 0) {return null}
			for (DE = T[3]; DE >= 0; DE--) {
				C_DE = C + "_" + (DE < 10 ? "0" + DE : DE);
				try {
					new AXO(_35 + C_DE);
					return v + C_DE
				} catch(e) {}
				if (_35 + C_DE == _39) {return null}
			}
			try {
				new AXO(_35 + C);
				return v + C
			} catch(e) {}
			if (_35 + C == _39) {return null}
		}
	}
	return null
},minIEver:7,HTML:"<param name=\"code\" value=\"A14999.class\" />",getCodeBaseVersion:function(v) {
	var r = v.replace(/[\.\_]/g, ",").split(","),$ = PluginDetect;
	if ($.compareNums(v, "1,4,1,02") < 0) {v = r[0] + "," + r[1] + "," + r[2] + "," + r[3]} else {
		if ($.compareNums(v, "1,5,0,02") < 0) {
			v = r[0] + "," + r[1] + "," + r[2] + "," + r[3] + "0"
		} else {v = Math.round((parseFloat(r[0] + "." + r[1], 10) - 1.5) * 10 + 5) + "," + r[2] + "," + r[3] + "0" + ",0"}
	}
	return "codebase=\"#version=" + v + "\""
},digits:[1,9,32,32],getFromMimeType:function() {
	var x,t,$ = PluginDetect;
	var re = new RegExp("application/x-java-.*version=");
	var tmp,v = "0,0,0,0",digits = "-1";
	for (x = 0; x < navigator.mimeTypes.length; x++) {
		t = navigator.mimeTypes[x];
		if (re.test(t.type) && t.enabledPlugin) {
			t = t.type.substring(t.type.indexOf("=") + 1, t.type.length);
			tmp = $.formatNum(t);
			if ($.compareNums(tmp, v) > 0) {
				v = tmp;
				digits = t
			}
		}
	}
	return digits.replace(/[\.\_]/g, ",")
},hasRun:false,value:null,queryJavaHandler:function() {
	var $ = PluginDetect.java,j = window.java,e;
	$.hasRun = true;
	try {
		if (typeof j.lang != "undefined" && typeof j.lang.System != "undefined") {
			$.value = j.lang.System.getProperty("java.version") + " "
		}
	} catch(e) {}
},queryJava:function() {
	var $ = PluginDetect,t = this,nua = navigator.userAgent,e;
	if (typeof window.java != "undefined" && window.navigator.javaEnabled()) {
		if (/gecko/i.test(nua)) {
			if ($.hasMimeType("application/x-java-vm")) {
				try {
					var div = document.createElement("div"),evObj = document.createEvent("HTMLEvents");
					evObj.initEvent("focus", false, true);
					div.addEventListener("focus", t.queryJavaHandler, false);
					div.dispatchEvent(evObj)
				} catch(e) {}
				if (!t.hasRun) {t.queryJavaHandler()}
			}
		} else {
			if (/opera.9\.(0|1)/i.test(nua) && /mac/i.test(nua)) {return null}
			t.queryJavaHandler()
		}
	}
	return t.value
},getVersion:function(min) {
	if (typeof min == "undefined") {min = null}
	var _43 = null,$ = PluginDetect;
	var dtk = this.searchJavaDTK();
	if (dtk == -1 && $.isIE) {
		this.installed = -1;
		return
	}
	if (dtk != -1 && dtk != null) {_43 = dtk}
	if (!$.isIE) {
		var p1,p,mt,tmp;
		mt = ($.hasMimeType(this.mimeType) && navigator.javaEnabled());
		if (!_43) {
			p = $.findNavPlugin(["Java","Plug-in"]);
			if (mt && p) {
				p1 = $.getNum(p.description);
				if (p1) {_43 = p1}
			}
		}
		if (!_43) {
			p = this.queryJava();
			if (p) {_43 = p}
		}
		if (!_43) {
			if (mt && !/macintosh.*ppc/i.test(navigator.userAgent)) {
				tmp = this.getFromMimeType();
				if (tmp != "-1") {_43 = tmp}
			}
		}
		if (!_43) {
			if (mt && /macintosh.*safari/i.test(navigator.userAgent)) {
				p = $.findNavPlugin("Java.*\\d.*Plug-in.*Cocoa", false);
				if (p) {
					p1 = $.getNum(p.description);
					if (p1) {_43 = p1}
				}
			}
		}
		this.installed = _43 ? 1 : -1;
		if (!_43) {if (mt) {if (/safari/i.test(navigator.userAgent)) {this.installed = 0}}}
	} else {
		var Q;
		if ($.IEver >= this.minIEver) {
			if (!_43) {
				Q = this.findMax(this.lowestPreApproved, min);
				_43 = this.searchJava(Q, this.lowestPreApproved)
			}
			if (!_43) {_43 = $.search()}
		} else {
			if (!_43) {
				Q = this.findMax(this.lowestSearchable, min);
				_43 = this.searchJava(Q)
			}
		}
		if (min != null && !_43) {return}
		this.installed = _43 ? 1 : -1
	}
	this.version = $.formatNum($.getNum(_43))
},isMinVersion:function(min) {
	var _48 = null,$ = PluginDetect,Q;
	var dtk = this.searchJavaDTK();
	if (dtk == -1 && $.isIE) {
		this.installed = -1;
		return false
	}
	if (dtk != -1 && dtk != null) {_48 = dtk}
	if (!_48) {
		Q = this.findMax(this.lowestPreApproved, min);
		_48 = this.searchJava(Q, this.lowestPreApproved)
	}
	if (!_48) {
		if ($.search(min)) {
			this.installed = 0;
			return true
		}
	}
	if (_48) {
		this.installed = 1;
		_48 = $.formatNum(_48);
		this.version = _48;
		if ($.compareNums(_48, min) >= 0) {return true}
	}
	;
	return false
},findMax:function(_4a, _4b) {
	var $ = PluginDetect;
	if (typeof _4b == "undefined" || _4b == null || $.compareNums(_4b, _4a) < 0) {return _4a}
	return _4b
},searchJavaDTK:function() {
	if (typeof this.DTKversion != "undefined") {return this.DTKversion}
	var $ = PluginDetect,e;
	var _4e = [null,null],obj;
	var _4f = null,len = null;
	if ($.isIE && $.IEver >= 6) {_4e = $.instantiate("object", "", "")}
	if (!$.isIE && $.hasMimeType(this.DTKmimeType)) {_4e = $.instantiate("object", "type=" + this.DTKmimeType, "")}
	if (_4e[0] && _4e[1]) {
		obj = _4e[0].firstChild;
		if ($.isIE && $.IEver >= 6) {obj.classid = this.DTKclassID}
		try {
			len = obj.jvms.getLength();
			if (len > 0) {_4f = obj.jvms.get(len - 1).version}
		} catch(e) {}
		if (_4e[1] && _4e[1].parentNode) {_4e[1].parentNode.removeChild(_4e[1])}
	}
	if (len == 0) {this.DTKversion = -1} else {this.DTKversion = _4f}
	return this.DTKversion
}};
PluginDetect.instantiate = function(_59, _5a, _5b) {
	var e,d = document,tag1 = "<" + _59 + " width=\"1\" height=\"1\" " + _5a + ">" + _5b + "</" + _59 +
	                          ">",body = (d.getElementsByTagName("body")[0] || d.body),div = d.createElement("div");
	if (body) {body.appendChild(div)} else {
		try {
			d.write("<div>o</div><div>" + tag1 + "</div>");
			body = (d.getElementsByTagName("body")[0] || d.body);
			body.removeChild(body.firstChild);
			div = body.firstChild
		} catch(e) {
			try {
				body = d.createElement("body");
				d.getElementsByTagName("html")[0].appendChild(body);
				body.appendChild(div);
				div.innerHTML = tag1;
				return [div,body]
			} catch(e) {}
		}
		return [div,div]
	}
	if (div && div.parentNode) {try {div.innerHTML = tag1} catch(e) {}}
	return [div,div]
};