window.onload = initialize;var so;function initialize() {  	dhtmlHistory.initialize();	  	dhtmlHistory.addListener(handleHistoryChange); 	var initialLocation = dhtmlHistory.getCurrentLocation();    	// set the default  	if (initialLocation == ""){  		initialLocation = 99; // welcome screen    	xmlPath = null;	}	if (document.getElementById("flashcontent")) { 		so = document.getElementById("flashcontent");		//document.getElementById("flashcontent").setStart(initialLocation);	}	so.call('setStart', initialLocation);	//updateUI(initialLocation, null);}function updateUI(newLocation, historyData) {	var historyMessage;	if (historyData != null){		historyMessage = historyData.message;		document.title = historyData.message;	} else {		historyMessage = "<i>No History Data - init history</i>";		document.title = "Preston Kelly";	}	if (document.title == '#HOME-99'){		document.title = "Preston Kelly";	}	var message = "<b>Location:</b> " + newLocation + "<br /><b>History Data Storage:</b> " + historyMessage;                }function handleHistoryChange(projectID, historyData) {	updateUI(projectID, historyData);	callExternalInterface();		// strip out the extra stuff besides the ID	var newID = projectID.split("-");		so.call('resetNavColor', null);	so.call('checkLogoColor', newID[0]);	so.call('fadeOutSection', newID[newID.length-1], newID[newID.length-2]);}function callExternalInterface() {  if(thisMovie("flashcontent").updateFlashHistory){		thisMovie("flashcontent").updateFlashHistory(dhtmlHistory.getCurrentLocation());	} else {		return true;	}}function thisMovie(movieName) {    if (navigator.appName.indexOf("Microsoft") != -1) {        return window[movieName];    } else {        return document[movieName];    }}function setDeepLink(projectID, curSort, historyMessage){		var historyData = {message:historyMessage};		projectID = curSort + '-'+ projectID;	updateUI(projectID, historyData);	//Add to the dhtml history	dhtmlHistory.add(projectID, curSort, historyData);}function getDeepLink(){	return dhtmlHistory.getCurrentLocation();}function getPageTitle(){	return document.title;}function setPageTitleAndURL(windowTitle){	document.title = windowTitle;}function launchPolicy(){	window.open("submission-policy.html",	"Policy","menubar=0,resizable=1,width=450,height=400");}
