var sharp = '';

function getCurrentLocation(){
	return window.location.hash;
	document.title ="1";
}

function initialize() {
  	var initialLocation = getCurrentLocation();  
  	if (initialLocation == ""){
    	initialLocation = "<i>Seegne</i>";
  	} else {
		handleHistoryChange();
	}
	document.title = titre;	
}

function handleHistoryChange() {
	if (sharp != getCurrentLocation()){
		callExternalInterface();
		sharp = getCurrentLocation();
	}	
}

function majHash(newAff){
	window.location.hash = newAff;
	handleHistoryChange();
	document.title = titre;	
}

function callExternalInterface() {
	if (thisMovie("swf_accueil").isFonctionPasserelle){
		thisMovie("swf_accueil").fonctionPasserelle(getCurrentLocation());
	}
}

function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    } else {
        return document[movieName]
    }
}