function historyHandler () {

	// this is the public method that will be called to add an entry
	this.addHistory = function(data) {
		unFocus.History.Keeper.addHistory(escape(data));
	};

	// the method that will take updates from the History Keeper
	this.onHistoryChange = function(data) {
		//alert('onHistoryChange: ' + pushDeeplink);
		//pushUrl (data);
	};

	// add the event listener
	// :NOTE: onHistoryChange has to be anchored to this object.
	// A private method would not be properly scoped, and could not update state.
	unFocus.History.Keeper.addEventListener('historyChange', this.onHistoryChange);
};
	document.historyHandler = new historyHandler ();

function getSWF (movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) return window[movieName]
    else return document[movieName]
}
function pushUrl (id) {
	//if (id!="") getSWF("yo").pushUrl (id);
}
function setUrl(u) {
	//location.href = u;
	document.historyHandler.addHistory(u);
}
function getUrl() {
	return window.location.toString();
}
/**********************************************************************************/
function RECOMMANDEZ (url) {
	window.open ('assets/partager1.php?url='+url,'recommander','width=300,height=400');
}
function CREDITS () {
	window.open ('assets/credits.htm','credits','width=300,height=150');
}
function MENTIONS_LEGALES () {
	window.open ('assets/mentions_legales.htm','mentions','width=350,height=400,scrollbars=yes');
}