window.onload = initialize;function initialize() {  	dhtmlHistory.initialize();	  	dhtmlHistory.addListener(handleHistoryChange); 	var initialLocation = dhtmlHistory.getCurrentLocation();	  	// set the default  	if (initialLocation == ""){  		//initialLocation = null; 	}	changecss('html','overflow','hidden');	changecss('html','background-color','#1A1A1A');	changecss('#flashcontent','background-color','#1A1A1A');	}function changecss(theClass,element,value) {	 var cssRules;	 if (document.all) {	  cssRules = 'rules';	 }	 else if (document.getElementById) {	  cssRules = 'cssRules';	 }	 var added = false;	 for (var S = 0; S < document.styleSheets.length; S++){	  for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {	   if (document.styleSheets[S][cssRules][R].selectorText == theClass) {	    if(document.styleSheets[S][cssRules][R].style[element]){	    document.styleSheets[S][cssRules][R].style[element] = value;	    added=true;		break;	    }	   }	  }	  if(!added){	  if(document.styleSheets[S].insertRule){			  document.styleSheets[S].insertRule(theClass+' { '+element+': '+value+'; }',document.styleSheets[S][cssRules].length);			} else if (document.styleSheets[S].addRule) {				document.styleSheets[S].addRule(theClass,element+': '+value+';');			}	  }	 }	}function updateUI(titleFromXML, title, historyData) {	var historyMessage;	if (historyData != null){		historyMessage = titleFromXML;//historyData.message;		document.title = title;//historyData.message;	} else {		historyMessage = "<i>No History Data - init history</i>";		document.title = "The Prairie Club | Valentine Nebraska";	}	var message = "<b>Location:</b> " + titleFromXML + "<br /><b>History Data Storage:</b> " + historyMessage;                }function handleHistoryChange(titleFromXML, title, historyData) {	updateUI(titleFromXML, title, historyData);	callExternalInterface();		// strip out the extra stuff besides the ID	so.call('changeHistory', titleFromXML);}function callExternalInterface() {  if(thisMovie("shell").updateFlashHistory){		thisMovie("shell").updateFlashHistory(dhtmlHistory.getCurrentLocation());	} else {		return true;	}}function thisMovie(movieName) {    if (navigator.appName.indexOf("Microsoft") != -1) {        return window[movieName];    }    else {        return document[movieName];    }}function setDeepLink(titleFromXML, title, historyMessage){		var historyData = {message:historyMessage};	updateUI(titleFromXML, title, historyData);	//Add to the dhtml history	dhtmlHistory.add(titleFromXML, title, historyData);	urchinTracker('/' + titleFromXML);	}function getDeepLink(){	return dhtmlHistory.getCurrentLocation();}function getPageTitle(){	return document.title;}function setPageTitleAndURL(windowTitle){	document.title = windowTitle;}