function NoError(){return true;}window.onerror=NoError;/* ----------------------------| FIL D'ARIANE |---------------------------- */function ExtraireURL(url) {	var separateur = " | ";	var tjs = url.indexOf("/",7)	var tjs2= 0;	var domaine=url.substring(7,url.indexOf("/",7));	document.write("<a href='"+url.substring(0,tjs)+"'>"+domaine+"</a>");	while (tjs>1) {		tjs2 = url.indexOf("/",tjs+1);		if (tjs2>0) {			rep = url.substring(tjs+1,tjs2);			document.write( separateur + "<a href='"+url.substring(0,tjs2)+"/index.php'>"+rep+"</a>");		} else {			rep = url.substring(tjs+1,9999);			document.write( separateur + rep);		}		tjs = url.indexOf("/",tjs+1);	}}/* ----------------------------| GESTION INDEX  |---------------------------- */function ouvreMySM() {	document.getElementById("edito").style.cssText = "display: none;";	document.getElementById("mySM").style.cssText = "display: block;";	document.getElementById("ongletIndex1").style.cssText = "background-color: #e8e8e8; border-left: 2px solid rgb(245,245,245); border-right: 2px solid #ddd;color: black; font-weight: bold;";	document.getElementById("ongletIndex2").style.cssText = "background-color: rgb(245,245,245); border-left: 2px solid rgb(250,250,250); border-right: 2px solid #eee;color: #ccc; font-weight: normal;";	}function ouvreEdito() {	document.getElementById("edito").style.cssText = "display: block;";	document.getElementById("mySM").style.cssText = "display: none;";	document.getElementById("ongletIndex2").style.cssText = "background-color: #e8e8e8; border-left: 2px solid rgb(245,245,245); border-right: 2px solid #ddd;color: black;color: black; font-weight: bold;";	document.getElementById("ongletIndex1").style.cssText = "background-color: rgb(245,245,245); border-left: 2px solid rgb(250,250,250); border-right: 2px solid #eee;color: #ccc; font-weight: normal;";	}function ouvreNews() {	document.getElementById("news").style.cssText = "display: block;";	document.getElementById("autres").style.cssText = "display: none;";	document.getElementById("ongletNews1").style.cssText = "background-color: rgb(194,204,247);color: black; font-weight: bold;";	document.getElementById("ongletNews2").style.cssText = "background-color: rgb(238,241,248);color: #ccc; font-weight: normal;";	}function ouvreAutres() {	document.getElementById("news").style.cssText = "display: none;";	document.getElementById("autres").style.cssText = "display: block;";	document.getElementById("ongletNews2").style.cssText = "background-color: rgb(194,204,247);color: black; font-weight: bold;";	document.getElementById("ongletNews1").style.cssText = "background-color: rgb(238,241,248);color: #ccc; font-weight: normal;";	}function ouvreAujourdhui() {	document.getElementById("aujourdhui").style.cssText = "display: block;";	document.getElementById("demain").style.cssText = "display: none;";	document.getElementById("ongletDates1").style.cssText = "background-color: rgb(194,204,247);color: black; font-weight: bold;";	document.getElementById("ongletDates2").style.cssText = "background-color: rgb(238,241,248);color: #ccc; font-weight: normal;";	}function ouvreDemain() {	document.getElementById("aujourdhui").style.cssText = "display: none;";	document.getElementById("demain").style.cssText = "display: block";	document.getElementById("ongletDates2").style.cssText = "background-color: rgb(194,204,247);color: black; font-weight: bold;";	document.getElementById("ongletDates1").style.cssText = "background-color: rgb(238,241,248);color: #ccc; font-weight: normal;";	}/* ----------------------------| CACHE MAIL  |---------------------------- */	if (document.getElementById && document.createTextNode) {(function() {	function init() {		if (!init.done) {			init.done = true;			var spans = document.getElementsByTagName("span");			for (var i = 0, span; (span = spans[ i]); ++i) {				if (belongsToClass(span, classNames.email)) {					initSpan(span);				}			}		}	}	function initSpan(span) {		var u, h, d;		var spans = span.getElementsByTagName("span");		for (var i= 0, s; (s = spans[ i]); ++i) {			var str = s.firstChild && s.firstChild.nodeValue;			if (belongsToClass(s, classNames.user)) {				u = str;			} else if (belongsToClass(s, classNames.host)) {				h = str;			} else if (belongsToClass(s, classNames.domain)) {				d = str;			}		}		if (u && h && d) {			chgSpan(span, u, h, d);		}	}	function chgSpan(span, u, h, d) {		var email = u + "@" + h + "." + d;		var a = createElement("a");		a.href = "mailto:" + email;		a.className = classNames.email;		a.appendChild(document.createTextNode(email));		span.parentNode.replaceChild(a, span);	}	// DOM	function createElement(nn) {		return document.createElementNS ? document.createElementNS("http://www.w3.org/1999/xhtml", nn) : document.createElement(nn);	}	function belongsToClass(n, cn) {		return new RegExp("(^| )" + cn + "( |$)").test(n.className);	}	// Events	function addLoadEvent(f) {		if (document.addEventListener) {			document.addEventListener("DOMContentLoaded", f, false);		}		if (window.addEventListener) {			window.addEventListener("load", f, false);		} else if (document.addEventListener) {			document.addEventListener("load", f, false);		} else if (window.attachEvent) {			window.attachEvent("onload", f);		}	}	 var classNames = {        "email": "email",        "user": "u",        "host": "h",        "domain": "d"    };    addLoadEvent(init);})();}/* ----------------------------| GERE TAILLE POLICES  |---------------------------- */function largeur_fenetre(){	if (window.innerWidth) return window.innerWidth;	else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;	else return 0;}function reconstruction(){	if (largeur != largeur_fenetre() || hauteur != hauteur_fenetre())	window.history.go(0);}if(!window.largeur && window.innerWidth)  {   window.onresize = reconstruction;   largeur = largeur_fenetre();   typo = parseInt(((largeur-1000)/40)+100);  }  largeur = largeur_fenetre();   typo = parseInt(((largeur-1000)/40)+85);   if (typo>=120) { typo=120;}      document.write('<style type="text/css">#global {font-size:'+typo+'%;} </style><p class="cache" style="display:none;">'+typo+'</p>'); if(!window.largeur && document.body && document.body.offsetWidth)  // POUR IE  {   window.onresize = reconstruction;   typo = largeur_fenetre()/1050;   if (typo>=1.2) { typo=1.2;}   document.write('<style type="text/css">#global {font-size:'+typo+'em;} </style>');  }  /* ----------------------------| ANIM INTRO |---------------------------- */    largeur = largeur_fenetre();function transformLayer() {  x = 0; y= -900; w= largeur; h= 800; id= 'intro'; duration= 100; steps= 20;    stepDuration = Math.round(duration/steps) ; // Value is in miliseconds.  obj = dd.elements[id];    x1 = obj.x;  y1 = obj.y; w1 = obj.w; h1 = obj.h;  x = (x)?x:x1;  y = (y)?y:y1;  w = (w)?w:w1; h = (h)?h:h1;  difX = (x - x1)/steps;  difY = (y - y1)/steps;  difW = (w - w1)/steps; difH = (h - h1)/steps;     obj.moveBy(difX,difY);  obj.resizeBy(difW,difH);  duration = (duration - stepDuration);  steps --;	if(steps>=0){	 setTimeout('transformLayer('+x+','+y+','+w+','+h+',"'+id+'",'+duration+','+steps+')',stepDuration);	 }  return;}
