/*
FooterManager gère le footer de la page (changement de langue, contact, crédits)

méthodes :
initContent - crée et initialise le swf
show/hide - affiche/masque le menu

événements :
onInit - appelé lorsque le swf est chargé et initialisé

requêtes :

*/
FooterManager = new Object();
//
FooterManager.initContent = function(aIdLangue){
	var vObj = writeSwf("swf/footer.swf", "footer", 900, "100%", "JSManager=FooterManager.swf&idLangue="+aIdLangue);
	var vSwf = this.swf = vObj.swf;
	vSwf.requestChangeLanguage = function (aIdLang){
		document.location = "index.php?idLangue="+aIdLang;
	};
	vSwf.requestContactUs = function (){
		contacteznous = window.open ("/medias/2006/10/manuelle/297/", "contact", "width=250, height=230");
	};
	vSwf.requestSignIn = function (){
		document.location = "index.php?idPage=196";
	};
	var vDiv = this.div = vObj.div;
	this.hauteurSwf = 20;
	this.initDiv();
	this.hide();
};
FooterManager.show = function(){
	this.div.style.height = this.hauteurSwf;
};

FooterManager.hide = function(){
	this.div.style.height = 0;
};
FooterManager.initDiv = function (){
	var vDiv = this.div
	var vIsNS = navigator.appName=="Netscape";
	var vIsSup5 = navigator.appVersion.substring(0,1)>=5;
	if (vIsNS&&vIsSup5){
		vDiv.style.position="fixed";
		vDiv.style.bottom="0";
	}
	vDiv.style.width="100%";
	vDiv.style.backgroundColor="#FFFFFF";
	vDiv.style.borderBottom="#999999 solid 1px";
};
