	<!--
	Event.observe(window, 'load', function() {
		initAlts();
	});

	function setActiveStyleSheet(title) {
		 var i, a, main;
		 for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
			 if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
				 a.disabled = true;
				 if(a.getAttribute("title") == title) a.disabled = false;
			 }
		 }
	}

	function alertSize() {
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
		if(myWidth > 958) {
			setActiveStyleSheet('css2');
		} else {
			setActiveStyleSheet('css1');
		}
	}

	function doClear(theText) {
		if (theText.value == theText.defaultValue) {
			theText.value = ""
		}
	}

	function showSousCategorie(numero)
	{
		var souscategorie = 'sous_categorie' + numero;
		var categorie = 'categorie' + numero;

		var elem, vis;
		if( document.getElementById ) // this is the way the standards work
			elem = document.getElementById( souscategorie );
		else if( document.all ) // this is the way old msie versions work
				elem = document.all[souscategorie];
		else if( document.layers ) // this is the way nn4 works
			elem = document.layers[souscategorie];
		vis = elem.style;
		// if the style.display value is blank we try to figure it out here
		if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
			vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
		vis.display = (vis.display==''||vis.display=='block')?'none':'block';

		if( document.getElementById ) // this is the way the standards work
			elem = document.getElementById( categorie );
		else if( document.all ) // this is the way old msie versions work
				elem = document.all[categorie];
		else if( document.layers ) // this is the way nn4 works
			elem = document.layers[categorie];
		vis = elem.style;
		// if the style.display value is blank we try to figure it out here
		if(categorie == 'categorie13' || categorie == 'categorie20') {
			if(vis.backgroundImage == 'url(images/fleche_halloween_bas.gif)') {
				vis.backgroundImage = 'url(images/fleche_halloween_droite.gif)';
			} else {
				vis.backgroundImage = 'url(images/fleche_halloween_bas.gif)';
			}
		} else if(categorie == 'categorie5' || categorie == 'categorie12') {
			if(vis.backgroundImage == 'url(images/fleche_nn_bas.gif)') {
				vis.backgroundImage = 'url(images/fleche_nn_droite.gif)';
			} else {
				vis.backgroundImage = 'url(images/fleche_nn_bas.gif)';
			}
		} else if(categorie == 'categorie11' || categorie == 'categorie14') {
			if(vis.backgroundImage == 'url(images/fleche_nb_bas.gif)') {
				vis.backgroundImage = 'url(images/fleche_nb_droite.gif)';
			} else {
				vis.backgroundImage = 'url(images/fleche_nb_bas.gif)';
			}
		} else if(categorie == 'categorie18') {
			if(vis.backgroundImage == 'url(images/fleche_stvalentin_bas.gif)') {
				vis.backgroundImage = 'url(images/fleche_stvalentin_droite.gif)';
			} else {
				vis.backgroundImage = 'url(images/fleche_stvalentin_bas.gif)';
			}
		} else if(categorie == 'categorie21') {
			if(vis.backgroundImage == 'url(images/fleche_sm_bas.gif)') {
				vis.backgroundImage = 'url(images/fleche_sm_droite.gif)';
			} else {
				vis.backgroundImage = 'url(images/fleche_sm_bas.gif)';
			}
		} else {
			if(vis.backgroundImage == 'url(images/fleche_bas.gif)') {
				vis.backgroundImage = 'url(images/fleche_droite.gif)';
			} else {
				vis.backgroundImage = 'url(images/fleche_bas.gif)';
			}
		}
		/*
		if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
			vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
		vis.display = (vis.display==''||vis.display=='block')?'none':'block';
		*/
	}

	function createCookie(name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}
	
	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	
	function eraseCookie(name) {
		createCookie(name,"",-1);
	}
	
	function showPanier(firstTime)
	{
		var panier = 'menu_gauche_panier_m';
		var bouton = 'masquer_panier';
		var elem, vis;

		if( document.getElementById ) // this is the way the standards work
			elem = document.getElementById( panier );
		else if( document.all ) // this is the way old msie versions work
				elem = document.all[panier];
		else if( document.layers ) // this is the way nn4 works
			elem = document.layers[panier];
		vis = elem.style;

		if(firstTime) {
			if(readCookie('affichage') == 'block') {
				vis.display = 'block';
			} else {
				vis.display = 'none';
			}
			//alert(readCookie('affichage'));
		} else {
			// if the style.display value is blank we try to figure it out here
			if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
				vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
			vis.display = (vis.display==''||vis.display=='block')?'none':'block';
			
			createCookie('affichage',vis.display,7);
		}

		if( document.getElementById ) // this is the way the standards work
			elem = document.getElementById( bouton );
		else if( document.all ) // this is the way old msie versions work
			elem = document.all[bouton];
		else if( document.layers ) // this is the way nn4 works
			elem = document.layers[bouton];
		vis = elem.style;

		if(readCookie('affichage') == 'block') {
			vis.background = '#a70100 url(images/fleche_bas_panier.gif) no-repeat 42px 6px';
		} else {
			vis.background = '#a70100 url(images/fleche_droite_panier.gif) no-repeat 45px 4px';
		}
	}

	function showDetails()
	{
		var details_editeur = 'details_editeur';
		var details = 'details';

		var elem, vis;
		if( document.getElementById ) // this is the way the standards work
			elem = document.getElementById( details_editeur );
		else if( document.all ) // this is the way old msie versions work
				elem = document.all[details_editeur];
		else if( document.layers ) // this is the way nn4 works
			elem = document.layers[details_editeur];
		vis = elem.style;
		// if the style.display value is blank we try to figure it out here
		if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
			vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
		vis.display = (vis.display==''||vis.display=='block')?'none':'block';

		if( document.getElementById ) // this is the way the standards work
			elem = document.getElementById( details );
		else if( document.all ) // this is the way old msie versions work
				elem = document.all[details];
		else if( document.layers ) // this is the way nn4 works
			elem = document.layers[details];
		vis = elem.style;
		// if the style.display value is blank we try to figure it out here
		if(vis.backgroundImage == 'url(images/plus.gif)') {
			vis.backgroundImage = 'url(images/moins.gif)';
		} else {
			vis.backgroundImage = 'url(images/plus.gif)';
		}
	}

	function hersande() {}

	function MM_swapImgRestore() { //v3.0
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_preloadImages() { //v3.0
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function MM_findObj(n, d) { //v4.01
		var p,i,x;	if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	function MM_swapImage() { //v3.0
		var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}

	function MM_jumpMenu(targ,selObj,restore){ //v3.0
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}

	window.onresize=alertSize;
	alertSize();

	// 0 - Gris ; 1 - Noir ; 2 - Rouge
	function changeTab(anchor, couleur) {
		
		var tabbox = anchor;
		var target;
		
		// Get tabbox container
		while(tabbox != null && (tabbox.className == null || tabbox.className.indexOf("tabbox") == -1)){
			tabbox = tabbox.parentNode;
			
			// Is H1 - Hx tag
			if(tabbox.nodeName.search(/^h[0-9]$/i) == 0){
				target = tabbox.parentNode;
			}
		}
		if(tabbox == null || target == null){
			return false;
		}
					
		
		// Find and unselect Current Tab
		var tag;
		for(var i = 0; i < tabbox.childNodes.length; i++){
			tag = tabbox.childNodes[i];
			
			// Selected Div
			if(tag.nodeName.toLowerCase() == "div" && tag.className != null && (tag.className.indexOf("selected_0") > -1 || tag.className.indexOf("selected_1") > -1 || tag.className.indexOf("selected_2") > -1 )){
				tag.className = "";
				break;
			}
		}
		
		// Select Tag
		if(target != null){
			target.className = (target.className || "") +" selected_" + couleur;
		}
		
		return false;
	}
  //-->
