function ucFirst(a){
	if(a.length>0){return a.substring(0,1).toUpperCase()+a.substring(1)}
	else{return a}
}
function addEvent(b,c,a){
	if(a.addEventListener){a.addEventListener(b,c,false)}
	else{if(a.attachEvent){a.attachEvent("on"+b,c)}
	}
}
function hasClass(b,a){return b.className.match(new RegExp("(\\s|^)"+a+"(\\s|$)"))}
function addClass(b,a){if(!this.hasClass(b,a)){b.className+=" "+a}}
function removeClass(c,a){if(hasClass(c,a)){var b=new RegExp("(\\s|^)"+a+"(\\s|$)");c.className=c.className.replace(b," ")}}
function crea_xmlhttp(obj_xmlHttp){
	if(!obj_xmlHttp&&typeof XMLHttpRequest!="undefined"){
		obj_xmlHttp=new XMLHttpRequest()
	}
	return(obj_xmlHttp)
}

function onLoad_illustration(){marche(1)}
/*function onclick_out(k){
	clic_2=new Date();
	tps_clic=clic_2.getTime()-clic_1.getTime();clic_1=clic_2;
	if(tps_clic<700){return}selObj=k.target||k.srcElement;
	var b="";
	if(selObj.id=="box_lpn"){
		var c=document.getElementById("input_pub_lpn");
		var a=c.value;
		if(a=="Comparer les prix"){document.getElementById("input_pub_lpn").value=""}
		b=selObj.action+"?"+c.name+"="+document.getElementById("input_pub_lpn").value+"&box=1"
	}
	else{while(selObj.tagName!="A"){selObj=selObj.parentNode}b=selObj.href}
	var g=new Poly9.URLParser(document.location.href);
	var h=new Poly9.URLParser(b);
	if(g.getHost()!=h.getHost()){
		if(clic_m=="aj"){
			var f="http://www.lesnumeriques.com/inc/clic.php?clic_m="+clic_m+"&url_source="+escape(document.location.href)+"&url="+escape(b)+"&type_clic=1";
			xhr_clic=false;
			xhr_clic=new createXHR();
			xhr_clic.open("GET",f,true);
			xhr_clic.send(null)
		}
		else{
			if(clic_m=="sc"){
				var d=new Date();
				var f="http://www.lesnumeriques.com/inc/clic.php?clic_m="+clic_m+"&url_source="+escape(document.location.href)+"&url="+escape(b)+"&type_clic=1&date="+escape(d.getTime());
				addScript(f)
			}
		}
	}
}*/
/*function showhide_sel(a,b){
	if(browser.isIE&&browser.versionMinor<7){
		for(elt in a){
			addEvent("mouseover",function(c){for(s in b){document.getElementById(b[s]).style.visibility="hidden"}},document.getElementById(a[elt]));
			addEvent("mouseout",function(c){for(s in b){document.getElementById(b[s]).style.visibility="visible"}},document.getElementById(a[elt]))
		}
	}
}*/
if(typeof Poly9=="undefined"){var Poly9={}}
Poly9.URLParser=function(a){
	this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Pathname:8,URL:0,Querystring:9,Fragment:10};this._values={};this._regex=null;this.version=0.1;this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/;
	for(var b in this._fields){this["get"+b]=this._makeGetter(b)}
	if(typeof a!="undefined"){this._parse(a)}
};
Poly9.URLParser.prototype._initValues=function(){
	for(var a in this._fields){this._values[a]=""}
};
Poly9.URLParser.prototype._parse=function(a){
	this._initValues();
	var b=this._regex.exec(a);
	if(!b){throw"DPURLParser::_parse -> Invalid URL"}
	for(var c in this._fields){
		if(typeof b[this._fields[c]]!="undefined"){
			this._values[c]=b[this._fields[c]]
		}
	}
};
Poly9.URLParser.prototype._makeGetter=function(a){
	return function(){return this._values[a]}
};
var col_fond_txt_focus='';
/*PARAM temps*/
function illustration(a,l,k,e,d,c,b,h,g,f){
	this.id=a;
	this.auto=l;
	this.encours=k;
	this.temps=e;
	this.nb_images=d;
	this.col_fond=c;
	this.col_hover=b;
	this.slide=h;
	this.nom_class_hover=g;
	this.nom_class_defaut=f}
var illustration_1=new illustration(1,1,"-1",3000,3,col_fond_txt_focus,"#C0C0C0",true,"focus_hover","focus_defaut");
var illustration_2=new illustration(2,0,0,"",18,"","",false);

function MM_findObj(f,e){
	var c,b,a;
	if(!e){e=document}
	if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}
	if(!(a=e[f])&&e.all){a=e.all[f]}
	for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}
	for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}
	if(!a&&e.getElementById){a=e.getElementById(f)}return a
}
function MM_showHideLayers(){
	var c,e,a,d,b=MM_showHideLayers.arguments;
	for(c=0;c<(b.length-2);c+=3){if((d=MM_findObj(b[c]))!=null){a=b[c+2];if(d.style){d=d.style;a=(a=="show")?"visible":(a=="hide")?"hidden":a}d.visibility=a}}}
function fond_col(id_illustration,numero){document.getElementById("b"+id_illustration+"_"+numero).style.backgroundColor=eval("illustration_"+id_illustration).col_hover}var play_etat=new String("");
function marche(id_illustration){
	illustration=eval("illustration_"+id_illustration);
	if(illustration.slide==true){
		if(illustration.auto==1){
			if(illustration.encours==illustration.nb_images-1){illustration.encours=0}
			else{illustration.encours++}
		}
	}
	for(i=1;i<illustration.nb_images+1;i++){MM_showHideLayers("l"+id_illustration+"_"+i,"","hide")}
	MM_showHideLayers("l"+id_illustration+"_"+(illustration.encours+1),"","show");
	if(illustration.en_cours){
		if(typeof(timeval)!="undefined"){window.clearInterval(timeval);illustration.en_cours=false}
	}
	if((illustration.auto==1)&&(illustration.slide==true)){timeval=window.setInterval("marche("+id_illustration+")",illustration.temps);fond(id_illustration,(illustration.encours+1));illustration.en_cours=true}
}
function fond(c,a){
	for(var b=1;b<=illustration.nb_images;b++){
		addClass(document.getElementById("b"+c+"_"+b),illustration.nom_class_defaut);
		removeClass(document.getElementById("b"+c+"_"+b),illustration.nom_class_hover);
		if(document.getElementById("focus_arr_"+b)!=undefined){document.getElementById("focus_arr_"+b).style.visibility="hidden"}
	}
	removeClass(document.getElementById("b"+c+"_"+a),illustration.nom_class_defaut);
	addClass(document.getElementById("b"+c+"_"+a),illustration.nom_class_hover);
	if(document.getElementById("focus_arr_"+a)!=undefined){document.getElementById("focus_arr_"+a).style.visibility="visible"}
}
function hover_focus(id_illustration,n_bouton){illustration=eval("illustration_"+id_illustration);fond(id_illustration,n_bouton);illustration.encours=n_bouton-1;illustration.auto=0;marche(id_illustration)}
function stop_illustration(a){illustration.auto=0;marche(a)}
function marche_illustration(id_illustration){illustration=eval("illustration_"+id_illustration);illustration.encours=illustration.encours-1;if(illustration.encours<0){illustration.encours=2}illustration.auto=1;marche(id_illustration)}
function b_over(id_illustration,n_bouton){illustration=eval("illustration_"+id_illustration);illustration.encours=n_bouton-1;marche(id_illustration)}

