// ############################################################################
// ##
// ##  CUSTOM CONFIGURATIONS
// ##  (i.e. not standard white site conigurations)
// ##
// ############################################################################

// Put custom config settings here.

// ############################################################################
// ##
// ##  STANDARD WHITE SITE CONFIGURATIONS
// ##
// ############################################################################

// ####################################
// Website-specific Elements
// ####################################

// Pre-load images for mouseovers (global images only)
if (document.images)
{
	//an_image_off = new Image();
	//an_image_off.src = ''; //Put path to image in quotes
	
	//an_image_on = new Image();
	//an_image_on.src = ''; //Put path to image in quotes
}

// ####################################
// Browser Detection
// ####################################

// Note: Browser detection may be outside this file if the site is heavily JS
// driven and different JS files are loaded for each browser (e.g. separate
// DOM / NS / IE files)

var ua = navigator.userAgent.toLowerCase();
var av = navigator.appVersion.toLowerCase();

// Detect browsers
blnDOM = (document.getElementById) ? true : false;      // All DOM based browsers
blnIE = (document.all) ? true : false;                  // Any IE
blnIE = blnIE && (ua.indexOf("opera") == -1);           // Make sure Opera is not detected as IE
blnIE = blnIE && (ua.indexOf("webtv") == -1);           // Make sure WebTV is not detected as IE
blnIE4 = blnIE && !blnDOM;                              // IE 4 or earlier, not DOM based
blnIE5 = (blnIE && av.indexOf("msie 5.") != -1);        // Any IE 5.x series
blnIE50 = (av.indexOf("msie 5.0") != -1);               // IE 5.0 specifically
blnIE55 = (av.indexOf("msie 5.5") != -1);               // IE 5.5 specifically
blnIE6 = (blnIE && av.indexOf("msie 6.") != -1);        // Any IE 6.x series
blnNS = blnDOM && !blnIE;                               // DOM based, not IE - e.g. Netscape 6.0 and after
blnNS4 = (document.layers) && (av.indexOf("4.") != -1); // Netscape 4 specifically
blnGecko = (ua.indexOf("gecko") != -1);                 // Gecko based browsers
blnOpera = (ua.indexOf("opera") != -1);                 // Opera
blnFirefox = (ua.indexOf("firefox") != -1);             // Firefox
blnSafari = (ua.indexOf("safari") != -1);               // Safari (Mac)
blnKonqueror = (ua.indexOf("konqueror") != -1);         // Konqueror

// Detect operating systems
blnMac = (av.indexOf("Mac") != -1);                     // Macintosh

// Detect other browser features
blnCanPrint = (window.print) ? 1 : 0;                   // Browsers that can print

// ####################################
// Function Pre-Configurations
// ####################################

// Set default transition toggle state for ImageSwapFX function
var blnToggleTrans = 0;

// ====================

// Function:    InitNav

//              Note: InitNav must be called after menu list is created.

//

// Purpose:     Assigns classes to certain events for Internet Explorer 6.

//              (IE6 does not fully support CSS standards.)

//

// Input:       -

//

// Output:      -

//

// Assumptions: -

//

// History:     200512 Code from htmldog.com

//              200512 RW Turned into a function for nicer modularity

// ====================

function InitNav(strListID) {

	sfHover = function() {

		var sfEls = document.getElementById(strListID).getElementsByTagName("LI");

		for (var i=0; i<sfEls.length; i++) {

			sfEls[i].onmouseover=function() {

				this.className+=" sfhover";

			}

			sfEls[i].onmouseout=function() {

				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");

			}

		}

	}

	// Only executes in IE

	if (window.attachEvent) {

		window.attachEvent("onload", sfHover);

	}

}
