// ############################################################################
// ##
// ##  CUSTOM CONFIGURATIONS
// ##  (i.e. not standard white site conigurations)
// ##
// ############################################################################

// Put custom config settings here.

// Setting the login form to true so we know whether or not it's been cleared.
gblnDefaultUsernamePassword = true;

// ############################################################################
// ##
// ##  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;

// Detect the Mozilla HTML editing component (after Mozilla 1.3)
blnMozHTMLEditor = 0;
if (ua.indexOf("mozilla") != -1 && ua.indexOf("rv:") != -1)
	{
	intVerStart = ua.indexOf("rv:");
	intVerStart = intVerStart + 3;
	intVerEnd = intVerStart + 3;
	intMozillaRev = ua.substring(intVerStart,intVerEnd);
	if (intMozillaRev > 1.3)
		{
		blnMozHTMLEditor = 1;                           // This Mozilla browser has the HTML editing component (after 1.3)
		}
	}

// Detect the Internet Explorer HTML editing component (advanced version after IE5.5)
blnIEHTMLEditor = 0;
if (blnIE)
	{
	if (!blnIE4 && !blnIE5)
		{
		blnIEHTMLEditor = 1;                            // This version of IE supports both the IE specific cm3 editor and the Mozilla-based editor
		}
	if (blnIE55)
		{
		blnIEHTMLEditor = 1;                            // This version of IE supports both the IE specific cm3 editor and the Mozilla-based editor
		}
	}
