// ############################################################################
// ##
// ##  CUSTOM CONFIGURATIONS
// ##  (i.e. not standard white site conigurations)
// ##
// ############################################################################

// Put custom config settings here.

// Use Google Analytics
useGA = false;

// A variable for photo gallery elements
var viewer;

// Set up global functions to load when the page loads
function WindowOnload() {
    viewer = new PhotoViewer();
    LoadGallery("content-main");
    LoadAcuityForms();
}

// Global functions to load just before the page finishes loading
function PageFooter() {
    //Cufon.replace("h1");
    //Cufon.replace("h2");
    //document.getElementById("MainMenu").style.fontSize = "125%"; // Set smaller in global.css in case javascript is disabled
    //Cufon.replace(document.getElementById("MenuUL").getElementsByTagName("a"));
    //Cufon.now();
}

// ############################################################################
// ##
// ##  STANDARD WHITE SITE CONFIGURATIONS
// ##
// ############################################################################

// ####################################
// Website-specific Elements
// ####################################

// Pre-load images for mouseovers (global images only)
if (document.images)
{
	m_about_the_band_on = new Image();
	m_about_the_band_on.src = '/images/templates/m_about_the_band_on.gif'; //Put path to image in quotes	
	m_about_the_band_off = new Image();
	m_about_the_band_off.src = '/images/templates/m_about_the_band_off.gif'; //Put path to image in quotes

	m_songs_listen_on = new Image();
	m_songs_listen_on.src = '/images/templates/m_songs_listen_on.gif'; //Put path to image in quotes	
	m_songs_listen_off = new Image();
	m_songs_listen_off.src = '/images/templates/m_songs_listen_off.gif'; //Put path to image in quotes

	m_gallery_on = new Image();
	m_gallery_on.src = '/images/templates/m_gallery_on.gif'; //Put path to image in quotes	
	m_gallery_off = new Image();
	m_gallery_off.src = '/images/templates/m_gallery_off.gif'; //Put path to image in quotes
	
	m_testimonials_on = new Image();
	m_testimonials_on.src = '/images/templates/m_testimonials_on.gif'; //Put path to image in quotes	
	m_testimonials_off = new Image();
	m_testimonials_off.src = '/images/templates/m_testimonials_off.gif'; //Put path to image in quotes

	m_the_cd_on = new Image();
	m_the_cd_on.src = '/images/templates/m_the_cd_on.gif'; //Put path to image in quotes	
	m_the_cd_off = new Image();
	m_the_cd_off.src = '/images/templates/m_the_cd_off.gif'; //Put path to image in quotes

	m_bookings_contact_on = new Image();
	m_bookings_contact_on.src = '/images/templates/m_bookings_contact_on.gif'; //Put path to image in quotes	
	m_bookings_contact_off = new Image();
	m_bookings_contact_off.src = '/images/templates/m_bookings_contact_off.gif'; //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;
