	// BROWSER DETECTION
	function BrowserCheck() {
		var b = navigator.appName
		if (b=="Netscape") this.b = "ns"
		else if (b=="Microsoft Internet Explorer") this.b = "ie"
		else this.b = b
		this.version = navigator.appVersion
		this.v = parseInt(this.version)
		this.ns = (this.b=="ns" && this.v>=4)
		this.ns4 = (this.b=="ns" && this.v==4)
		this.ns5 = (this.b=="ns" && this.v==5)
		this.ns6 = (this.b=="ns" && this.v==6)
		this.ie = (this.b=="ie" && this.v>=4)
		this.ie4 = (this.version.indexOf('MSIE 4')>0)
		this.ie5 = (this.version.indexOf('MSIE 5')>0)
		this.min = (this.ns||this.ie)
	}
	is = new BrowserCheck();

	// TOP MENU ROLLOVER
	var lang_f = new Array();
	var lang_o = new Array();
	for (i = 0; i < 1; i++)
	{
		lang_f[i] = new Image();
		lang_o[i] = new Image();
		lang_f[i].src = "img/fr/lang_menu_" + (i + 1) + "_f.gif";
		lang_o[i].src = "img/fr/lang_menu_" + (i + 1) + "_o.gif";
	}

	function lang_over(obj, idx)
	{
		document.getElementById("lang-" + idx).src = lang_o[idx - 1].src;
		if (obj != null)
			obj.parentNode.className = "over";
	}

	function lang_out(obj, idx)
	{
		document.getElementById("lang-" + idx).src = lang_f[idx - 1].src;
		if (obj != null)
			obj.parentNode.className = "";
	}

	// TOP MENU ROLLOVER
	var currentTopRub;
	var top_f = new Array();
	var top_o = new Array();
	for (i = 0; i < 7; i++)
	{
		top_f[i] = new Image();
		top_o[i] = new Image();
		top_f[i].src = "img/fr/top_menu_" + (i + 1) + "_f.gif";
		top_o[i].src = "img/fr/top_menu_" + (i + 1) + "_o.gif";
	}

	function top_over(obj, idx)
	{
		document.getElementById("top-" + idx).src = top_o[idx - 1].src;
		if (obj != null)
			obj.parentNode.className = "over";
	}

	function top_out(obj, idx)
	{
		if (idx != currentTopRub)
		{
			document.getElementById("top-" + idx).src = top_f[idx - 1].src;
			if (obj != null)
				obj.parentNode.className = "";
		}
	}

	// MAIN MENU ROLLOVER
	var currentMainRub;
	var main_f = new Array();
	var main_o = new Array();
	for (i = 0; i < 9; i++)
	{
		main_f[i] = new Image();
		main_o[i] = new Image();
		main_f[i].src = "img/fr/main_menu_" + (i + 1) + "_f.gif";
		main_o[i].src = "img/fr/main_menu_" + (i + 1) + "_o.gif";
	}

	function main_over(obj, idx)
	{
		document.getElementById("main-" + idx).src = main_o[idx - 1].src;
		if (obj != null)
			obj.parentNode.parentNode.className = "open";
	}

	function main_out(obj, idx)
	{
		if (idx != currentMainRub)
		{
			document.getElementById("main-" + idx).src = main_f[idx - 1].src;
			if (obj != null)
				obj.parentNode.parentNode.className = "";
		}
	}

	// BOTTOM MENU ROLLOVER
	var currentBottomRub;
	var bottom_f = new Array();
	var bottom_o = new Array();
	for (i = 0; i < 4; i++)
	{
		bottom_f[i] = new Image();
		bottom_o[i] = new Image();
		bottom_f[i].src = "img/fr/footer_menu_" + (i + 1) + "_f.gif";
		bottom_o[i].src = "img/fr/footer_menu_" + (i + 1) + "_o.gif";
	}

	function bottom_over(idx)
	{
		document.getElementById("bottom-" + idx).src = bottom_o[idx - 1].src;
	}

	function bottom_out(idx)
	{
		if (idx != currentBottomRub)
		{
			document.getElementById("bottom-" + idx).src = bottom_f[idx - 1].src;
		}
	}

	function open_newsletter(){
	   window.open('../content/popup/popup-newsletter.php?email=' + document.getElementById('email').value,'newsletter','width=383,height=440');
	}

	// INTERFACE INITIALIZATION
	function init()
	{
		if (!is.ie)
			document.getElementById("canvas").style.width = "967px";

		if (document.getElementById("menu-bar") && document.getElementById("cc-content"))
		{
			//alert(document.getElementById("main-menu").offsetHeight);
			var nbBloc = Math.ceil(document.getElementById("main-menu").offsetHeight / 102);
			document.getElementById("main-menu").style.height = 102 * nbBloc - 23 + "px";
			document.getElementById("menu-bar").style.height = 102 * nbBloc - 1 + "px";

			nbBloc = Math.ceil(document.getElementById("cc-content").offsetHeight / 102);
			if (nbBloc <= 5)
				nbBloc = 5;
			document.getElementById("cc-content").style.height = 102 * nbBloc -1 + "px";

			if (typeof currentMainRub != "undefined")
				if (currentMainRub != 0)
					main_over(null, currentMainRub);
		}
	}

