//
// sybil media javascript code. this code is not to be distributed outside Sybil HQ. 100% custom, no copied code here...
//
// programmer: flynn
// date: 10-29-2003
//

// detection
var ua = new String(window.navigator.userAgent);
var ie = ua.indexOf("MSIE") > -1;	// IE
var win = (ua.indexOf("Windows") > -1)||(ua.indexOf("Win9") > -1);	// Windows or not. This is not a complete list, but anything other than these is risky
var webTV = ua.indexOf("WebTV") > -1;	// WebTV ua's have MSIE in them. filter out.
var safari = ua.indexOf("Safari") > -1;	// Mac's Safari browser
var firefox = (ua.indexOf("Minefield") > -1)||(ua.indexOf("Firefox") > -1)||(ua.indexOf("Thunderbird") > -1);
// the version is only important for our target browsers: MSIE on Windows everything else defaults to another page.
var version = (ie ? (win ? (!webTV ? (parseInt(ua.substr(ua.indexOf("MSIE") + 5, ua.indexOf(';', ua.indexOf("MSIE"))), 10)) : 0) : 0) : 0);

// pre-load flash detection, IE code is in the VBscript 

var flashInstalled = false;
var flashVersion = 0;

if (!ie||!win) {
	//alert(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin);
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if (plugin) {
			//alert("flash plugin found");
			// found an active Flash plugin, version 3 or up
			flashInstalled = true;
			var version = navigator.plugins["Shockwave Flash"].description.split(" ");
			for (var i = 0; i < version.length; ++i) { if (!isNaN(parseInt(version[i]))) flashVersion = version[i]; }
	}
}

function menuZindex(newindex) {
	//alert("menuZindex - " + newindex);
	document.getElementById("navDiv").style.zIndex = newindex;
}