// BEGIN IE DROPDOWN FIX 		
		// This script fixes IE's inability to properly implement standard CSS :hover properties
		// Nodes are set to force the on/off state when rolled over. Make sure this script is fired via an onload event in the body tag
		function startList() {
			if (document.all&&document.getElementById) {
				// Set the id 'nav' to variable name 'navroot'
				navRoot = document.getElementById("nav");
				
				// Locate how many items there are under the document id labeled 'nav' - for each one set it to an array element
				for (i=0; i<navRoot.childNodes.length; i++) {
					node = navRoot.childNodes[i];
						
					// If the node is a list item element <li>, run the an on/off mouse event to change the class, which sets its display	
					if (node.nodeName=="LI") {
						
						node.onmouseover=function() {
						this.className+="over";
			  			}
			  
						node.onmouseout=function() {
						this.className=this.className.replace("over", "");
						}
			  	 	}
			  	}
			}
		}
		// -->
		
// END IE DROPDOWN FIX 


// BEGIN QUOTE ROTATOR
		// This script rotates customer comments and images in random order and swaps out at given intervals
		
		// get_random() creates a random number to be used in testimony()
		function get_random() {
		
			// !Important: if you change the number of quotes in the arrays, make sure your match it to the number in the "Math.random()*X"
			var ranNum= Math.floor(Math.random()*/* change the following number to match the number of array elements */7);
			return ranNum;
		}
		
		function testimony() {
			// set a random number to variable 'which'
			var which=get_random();
			
			// quotes: make sure that the number in the array matches integer in the ranNum variable
			var quote=new Array(7) //Change the number in this line to match the number of array elements - same for the other arrays
			// Please remember to escape quotes and apostrophes with backslashes (\)
			quote[0]='No other system delivers the property and people management tools and seamlessly integrates them in real-time to GDS channels and our web site like MyPMS does. We estimate our ROI on MyPMS adds up to tens of thousands of dollars annually.';
			quote[1]='Booking Center is the best product on the market today. After comparing the other systems out there, [they are] much further down the road in terms of technical capabilities and support in our opinion.';
			quote[2]='We manage about 15,000 guests with over 25,000 bookings using our BookingCenter Software every day. Our 10 reservation agents continually find new ways to make BookingCenter work for us. I think it\'s a splendid product!';   
			quote[3]='I checked out software... and NONE of the other software had the comprehensive global marketing network of Bookingcenter. Thanks to that connection I had guests from three different European countries establishing a repeat international clientele from the beginning.';
			quote[4]='I\'m really impressed by how quickly you work on suggestions. I\'m not used to this! I\m even more happy now we\'ve made the switch!';
			quote[5]='The most user friendly and \'value for money\' software I came across. Easy to download a free trial and purchase only the modules we needed. Plus, professional and prompt support.';
			quote[6]='In our Hospitality &amp; Tourism program, we downloaded several \"front office\" software programs and of the different ones, BookingCenter offered the most complete and user-friendly version.';
			
			// customer: make sure that the number in the array matches integer in the ranNum variable
			var customer=new Array(7)
			customer[0]='Rick Mangu - Country Plaza Inn, San Clemente, CA';
			customer[1]='Matthew Parker - 7 Sea Street Inn, Nantucket, MA';
			customer[2]='Edward Bunn - Solar Springs Health Retreat, Bundanoon, Australia';   
			customer[3]='Tristan Rhodes - Lemontree Cottages, Guerneville, CA';
			customer[4]='Nicholas Wyatt - InnHouse Vacation Rentals, Kissimmee, FL';
			customer[5]='Kirstein Combrink - Sontyger Guesthouse, Tyger Valley, South Africa';
			customer[6]='Vicky Jordan - Hospitality student, Mississippi Gulf Coast Community College';
			
			// faces: make sure that the number in the array matches integer in the ranNum variable
			var face=new Array(7)
			face[0]='/images/quotes/rmangu.gif';
			face[1]='/images/quotes/mparker.gif';
			face[2]='/images/quotes/ebunn.gif';   
			face[3]='/images/quotes/trhodes.gif';
			face[4]='/images/quotes/nwyatt.gif';
			face[5]='/images/quotes/kcombrink.gif';
			face[6]='/images/quotes/vjordan.gif';
			
			// set each element to display in the <div> tags with each of the following IDs: testimony, property, talkinghead
			document.getElementById('testimony').innerHTML = quote[which];
			document.getElementById('property').innerHTML = customer[which];
			document.getElementById('talkinghead').style.background = "transparent url(" + face[which] + ") right bottom no-repeat";
			
			// rotate testimony, property, talkinghead at an interval of X
			//setTimeout("testimony()", /* Change this number to effect rate of rotation in microseconds */10000);
		}

// END QUOTE ROTATOR 


/*
------------------------------------------------------------------------------------------------------------------------------

EVERYTHING BELOW THIS LINE IS AN OLDER SCRIPT NOT SURE IF YOU NEED THEM ANYMORE, BUT YOU DELETE AT YOU DISCRETION, JEFF!

------------------------------------------------------------------------------------------------------------------------------
*/



<!--
//BROWSER SNIFF
var isIE4 = (document.all && !document.getElementById) ? true : false;
var isIE5 = (document.all && document.getElementById) ? true : false;
var isNS4 = (!document.all && !document.getElementById) ? true : false;
var isNS6 = (!document.all && document.getElementById) ? true : false;
var dhtml = !isNS4;
var isPc = navigator.userAgent.indexOf("Windows") != -1;
var isMac = !isPc;

//FLASH SNIFF
var useFlash = false;

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
// Check for Flash version 5 or greater in Netscape
var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=5)
	useFlash = true;
} else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	// Assume any Windows IE except for Windows 3.1 supports the OBJECT tag
	useFlash = true;
}
var y = new Date();
y.setFullYear(y.getFullYear()+1);
document.cookie = "flash=" + useFlash + ";expires="+y.toGMTString();
//document.cookie = "flash=false";

//IMAGE PRELOADS
var b_learnmore1 = new Image();
var b_learnmore1_over = new Image();
b_learnmore1.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore.gif';
b_learnmore1_over.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_over.gif';

var b_learnmore2 = new Image();
var b_learnmore2_over = new Image();
b_learnmore2.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore.gif';
b_learnmore2_over.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_over.gif';

var b_learnmore3 = new Image();
var b_learnmore3_over = new Image();
b_learnmore3.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore.gif';
b_learnmore3_over.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_over.gif';

var b_learnmore_cccc991 = new Image();
var b_learnmore_cccc991_over = new Image();
b_learnmore_cccc991.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_cccc99.gif';
b_learnmore_cccc991_over.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_cccc99_over.gif';

var b_learnmore_cccc992 = new Image();
var b_learnmore_cccc992_over = new Image();
b_learnmore_cccc992.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_cccc99.gif';
b_learnmore_cccc992_over.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_cccc99_over.gif';

var b_learnmore_cccc993 = new Image();
var b_learnmore_cccc993_over = new Image();
b_learnmore_cccc993.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_cccc99.gif';
b_learnmore_cccc993_over.src = 'http://www.bookingcenter.com/images/navigation/b_learnmore_cccc99_over.gif';

var b_reviews_cccc991 = new Image();
var b_reviews_cccc991_over = new Image();
b_reviews_cccc991.src = 'http://www.bookingcenter.com/images/navigation/b_reviews_cccc99.gif';
b_reviews_cccc991_over.src = 'http://www.bookingcenter.com/images/navigation/b_reviews_cccc99_over.gif';

var b_reviews_cccc992 = new Image();
var b_reviews_cccc992_over = new Image();
b_reviews_cccc992.src = 'http://www.bookingcenter.com/images/navigation/b_reviews_cccc99.gif';
b_reviews_cccc992_over.src = 'http://www.bookingcenter.com/images/navigation/b_reviews_cccc99_over.gif';

var b_news_learnmore = new Image();
var b_news_learnmore_over = new Image();
b_news_learnmore.src = 'http://www.bookingcenter.com/images/navigation/b_news_learnmore.gif';
b_news_learnmore_over.src = 'http://www.bookingcenter.com/images/navigation/b_news_learnmore_over.gif';

// WINDOW FUNCTIONS
function windowSet( url, height, width){
	var myWindow = window.open( url, 'BookingCenter', 'directories=no,height=' + height + ',width=' + width + ',innerheight=' + height + 'innerwidth=' + width + ',location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
					myWindow.window.moveTo (100, 25);
	} 

function windowHelp( url, height, width){
	var helpWindow = window.open( url, 'Help', 'directories=no,height=' + height + ',width=' + width + ',innerheight=' + height + 'innerwidth=' + width + ',location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
					helpWindow.window.moveTo (50, 200);
	}


//VARS

var nav = ["about","products","solutions","support"];
var timeoutId;
var currentNav = "";



//FUNCTIONS

function getStyles() {
    if (isPc) {
    	return "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.bookingcenter.com/styles.css\">";
    } else {
    	return "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.bookingcenter.com/styles_mac.css\">";
    }
}

function swap(name,state) {
	if(document.images) {
		document[name].src = eval(name + state + ".src");
	}
}


function subNavOff(which,state) {
	navTimeout();
}

function subNavOn(which,state) {
	clearAllNav();
	clearNavTimeout();
	subNav(which,state);
}

function navTimeout() {
    clearNavTimeout();
    timeoutId = setTimeout("clearAllNav()",2000);
}

function clearAllNav() {
    for (i = 0; i < nav.length; i++) {
        subNav(nav[i],0); //clear subnav
    }
}

function clearNavTimeout() {
    clearTimeout(timeoutId);
}

function subNavSwap(which,state) {
	var color = "cc0000";
	if (state == 0) {
		color = "cccc99";
		navTimeout();
	} else {
		clearNavTimeout();
	}
    if (isIE4){
        obj = eval('document.all.nb' + which + '.style');
        obj.backgroundColor = color;
    } else if (isNS6 || isIE5){
        obj = document.getElementById('nb' + which);
        obj.style.backgroundColor = color;
    } else if (document.layers){
        document.layers['nav_' + which].layerBackgroundColor = color;
    }
}

function subNav(which,state) {
    if (isNS6 || isIE4 || isIE5){
        var hidden = 'hidden';
        var visible = 'visible';
    } else if (document.layers){
        var hidden = 'hide';
        var visible = 'show';
    }

    var newVis;
    if (state == 0) {
        newVis = hidden;
    } else {
        newVis = visible;
    }


    if (isIE4 || isIE5){
        obj = eval('document.all.nav_' + which + '.style');
        obj.visibility = newVis;
    } else if (isNS6){
        obj = document.getElementById('nav_' + which);
        obj.style.visibility = newVis;
    } else if (document.layers['nav_test']){
        document.layers['nav_' + which].visibility = newVis;
    }
}

function clearSubNav(current) {
    if ((current != 'about') && (!navPersistAbout)) {
        subNav('about',0);
    }
    if ((current != 'casestudies') && (!navPersistCasestudies)) {
        subNav('casestudies',0);
    }
}

//-->
