///////////////////////////////////////////
///
/// This Code is Copyright 2003 James Austin and if you steal it I will kick your ARSE!
/// Reason:	There are no Open Source Menus like this on the Web so if I had to endure
/// 		Days of pain, so can you!
///
///
///////////////////////////////////////////  Setup Main Variables

	var pareitm;
	var menucnt = 99;
	var hideleft = 0;
	var fadeout = false;
	var fadein = false;

///////////////////////////////////////////  Check out WTF the browser is!
////////// Lets do Some Types:

     /////// Netscape Browsers
	isNS = (!document.all) ? true : false;				// Other Netscape

	bName = navigator.appName;					// Netscape 4
	bVer = parseInt(navigator.appVersion);
	isNS4 = (bName == "Netscape" && bVer == 4) ? true : false;
									// New Netscape
	isNS5 = (navigator.userAgent.indexOf("Netscape")!=-1) && !isNS4;


     /////// Internet Explorer Browsers
	isIE = (navigator.appVersion.indexOf("MSIE")!=-1);
	isIE4 = (navigator.appVersion.indexOf("MSIE 4")!=-1);		// Old IE
	isIE5 = isIE & !isIE4;						// Versions Greater than 4

	notIE5 = (navigator.appVersion.indexOf("MSIE 5")==-1)		// IE6 has screwed up the mouseOut Event the
	isIE6plus = isIE & notIE5 && !isIE4;				// following is to detect evil browsers.

     /////// Other Browsers
	isOP = (navigator.userAgent.indexOf("Opera")!=-1);		// Opera
	isKQ = (navigator.userAgent.indexOf("Konqueror")!=-1);		// Konquerer

///// These are the Code Groupings:

	/////  1. IE4, OP & KQ & NS5  - Standard Divs
	/////  2. IE5  - Advanced 'Fading' Divs
	/////  3. NS4  - Ye Olde Crap'e Layers

	if (isIE4 || isOP || isKQ || isNS5){
		document.write("<script language=\"Javascript\" src=\"/base.js\"></script>");
	}

	else if (isIE5){
		// This will use DOM Effects Later when I get to it, but for now it'll just use base
		// document.write("<script language=\"Javascript\" src=\"/newie.js\"></script>");

		document.write("<script language=\"Javascript\" src=\"/base.js\"></script>");
	}

	else if (isNS4){
		document.write("<script language=\"Javascript\" src=\"/oldns.js\"></script>");
	}

	else {
		// This is for any fallthroughs such as moozilla :P

		document.write("<script language=\"Javascript\" src=\"/base.js\"></script>");
	}


///////////////////////////////////////////  Setup Menus

	menus = new Array();
	menux = new Array();
	menuy = new Array();

	for (i=0; i < menucnt; i++){
		menus[i] = new Array;
	}

///////////////////////////////////////////  Generic Menu Code Here

	document.write("<script language=\"Javascript\" src=\"/menus.js\"></script>");

