var loadingImage2 = '<div align="center"><img src="/gfx/2k7b/loading.gif" border="0" alt="Traitement en cours..."/></div>';	
var loadingImage3 = '<div align="center"><img src="/gfx/2k7b/loading3.gif" border="0" alt="Traitement en cours..."/></div>';	
	
	
function rightColTopNews(val){
	if(val==0){
		document.getElementById('texteRightNew').style.display='none';
		document.getElementById('texteRightTop').style.display='block';
	}else{
		document.getElementById('texteRightNew').style.display='block';
		document.getElementById('texteRightTop').style.display='none';	
	}
}
	
	
function SendLogin(val){
	if(val==2){
		//login
		var login  = document.getElementById("login").value;
		var passe  = document.getElementById("passe").value;
		var info   = "login="+login+"&passe="+passe+"&val=2";
	}else if(val==5){
		//non inscrit
		var nom     = document.getElementById("nom").value;
		var email   = document.getElementById("email").value;
		var info    = "nom="+nom+"&email="+email+"&val=5";	
	}else if(val==4){
		//non inscrit
		if (document.getElementById("captcha"))
		{
			var nom     = document.getElementById("nom").value;
			var email   = document.getElementById("email").value;
			var captcha   = document.getElementById("captcha").value;
			var user_code = document.getElementById("user_code").value;
			var info    = "captcha="+captcha+"&user_code="+user_code+"&nom="+nom+"&email="+email+"&val=4";
		}
		else
		{
		  var captcha;
		  var user_code;
		  var info      = "val=4";
		}
		
	}
	else if(val==3 || val==7){
		if(document.getElementById("form")){
			var captcha   = '';
			var login     = document.getElementById("login").value;
			var passe     = document.getElementById("passe").value;		
			var passe2    = document.getElementById("passe2").value;	
			var email     = document.getElementById("email").value;
			var form      = document.getElementById("form").value;
			if(val==3){
				var captcha   = document.getElementById("captcha").value;
			}
			var user_code = document.getElementById("user_code").value;
			var info      = "login="+login+"&passe="+passe+"&passe2="+passe2+"&email="+email+"&form="+form+"&captcha="+captcha+"&user_code="+user_code+"&val="+val;
		}else{
			var info   = "val="+val;
		}
	}else if(val==8){
		var user_code    = document.getElementById("user_code").value;
		var info   = "user_code="+user_code+"&form=1&val=8";
	}else if(val==9){
		var info   = "form=1&val="+val;
	}else{
		//inscrit
		var info   = "val="+val;
		
	}
	var address = '/ajax-rating.php';
		
	$("#mainContent").empty();
	$("#mainContent").append(loadingImage2);	
			
	$.ajax({
		url: address,
		dataType: "html",
		data: ""+info+"",
		type: "POST",
		cache: false,
		error: function(e){
			$("#mainContent").empty();
			$("#mainContent").append("<strong>Application Error</strong><br/>Unfortunately a fatal error has been encountered and the script cannot continue.");
			return;
		},
		success: function(data){
			$("#mainContent").empty();
			$("#mainContent").append(data);
			return;
		}
	});
}	

function SendAvis2(item){
		if(item==1)
		{
			
			var zero = "&zero=0";
			if(document.getElementById("zero")){
				if(document.getElementById("zero").checked){
					var zero = "&zero=1";	
					}
			}			
			var login     = document.getElementById("login").value;
			var email     = document.getElementById("email").value;
			var comment   = document.getElementById("contentTxt").value;	
			var idp		  = document.getElementById("idp").value;	
			var user_code = document.getElementById("user_code").value;	
			var captcha   = document.getElementById("captcha").value;	
			var rating    = document.getElementById("rating2").value;	
			comment		  = escape(comment);
			comment		  = comment.replace('+','%plus%');
			comment       = comment.replace('€','%euro%');			
			var infos	  = "user_code="+user_code+"&captcha="+captcha+"&idp="+idp+"&rating="+rating+"&comment="+comment+"&email="+email+"&login="+login+"&val=1"+zero;
		}else if(item==2)
		{
			var idp		= document.getElementById("idp").value;	
			var infos	= "idp="+idp+"&val=2";
		}else if(item==3 || item==5)
		{
			var edit
			if(document.getElementById("edit"))
			{
				var edit = "edit=1&";	
			}
			var comment = document.getElementById("contentTxt").value;	
			var rating  = document.getElementById("rating2").value;			
			var idp		= document.getElementById("idp").value;	
			var ida		= document.getElementById("ida").value;	
			comment		= escape(comment);
			comment		= comment.replace('+','%plus%');
			comment 	= comment.replace('€','%euro%');		
			var infos	= edit+"ida="+ida+"&idp="+idp+"&rating="+rating+"&comment="+comment+"&val="+item;
		}else if(item==4){
			var idp		= document.getElementById("idp").value;	
			var login   = document.getElementById("login").value;
			var passe   = document.getElementById("passe").value;
			var infos   = "idp="+idp+"&passe="+passe+"&login="+login+"&val=4";
		}
		var address = '/ajax-rating-avis.php';

	
		
		$("#mainContent").empty();
		$("#mainContent").append(loadingImage2);	
		
		$.ajax({
			url: address,
			dataType: "html",
			contentType:"application/x-www-form-urlencoded", 
			charset :"iso-8859-1",
			data: infos,
			type: "POST",
			cache: false,
			error: function(e){
				$("#mainContent").empty();
				$("#mainContent").append("<strong>Application Error</strong><br/>Unfortunately a fatal error has been encountered and the script cannot continue.");
				return;
			},
			success: function(data){
				$("#mainContent").empty();
				$("#mainContent").append(data);
				return;
			}
		});
	}


//(function($){$.meta={type:"class",name:"metadata",setType:function(type,name){this.type=type;this.name=name},cre:/({.*})/,single:'metadata'};var setArray=$.fn.setArray;$.fn.setArray=function(arr){return setArray.apply(this,arguments).each(function(){if(this.metaDone||this.nodeType==9||$.isXMLDoc(this))return;var data="{}";if($.meta.type=="class"){var m=$.meta.cre.exec(this.className);if(m)data=m[1]}else if($.meta.type=="elem"){if(!this.getElementsByTagName)return;var e=this.getElementsByTagName($.meta.name);if(e.length)data=$.trim(e[0].innerHTML)}else if(this.getAttribute!=undefined){var attr=this.getAttribute($.meta.name);if(attr)data=attr}if(!/^{/.test(data))data="{"+data+"}";eval("data = "+data);if($.meta.single)this[$.meta.single]=data;else $.extend(this,data);this.metaDone=true})};$.fn.data=function(){return this[0][$.meta.single]}})(jQuery);
//eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(8($){$.1I({I:D 8(){7 C=[],1a=[];k.2x={2a:"46",2D:"47",2C:"3T",2R:"2W",2H:"2X",1U:1r,1F:"27",C:{},1a:[],1p:{Y:["2u","2O"]},x:{},2m:H,2N:Z,u:[],1A:[],1n:"2Q",J:H};8 17(s,d){1l(s+","+(D S().1e()-d.1e())+"2Y")}k.17=17;8 1l(s){q(1w 1K!="23"&&1w 1K.J!="23"){1K.1l(s)}K{2Z(s)}}8 2B(6,$x){q(6.f.J){7 1Q=""}7 13=[],14=6.R[0].P[0].14,l=14.w;y(7 i=0;i<l;i++){7 p=H;q($.1o&&($($x[i]).18()&&$($x[i]).18().1d)){p=1R($($x[i]).18().1d)}K q((6.f.x[i]&&6.f.x[i].1d)){p=1R(6.f.x[i].1d)}q(!p){p=2p(6.f,14[i])}q(6.f.J){1Q+="1x:"+i+" 1y:"+p.B+"\\n"}13.Q(p)}q(6.f.J){1l(1Q)}m 13};8 2p(f,U){7 l=C.w;y(7 i=1;i<l;i++){q(C[i].M($.1S(1N(f,U)))){m C[i]}}m C[0]}8 1R(1q){7 l=C.w;y(7 i=0;i<l;i++){q(C[i].B.16()==1q.16()){m C[i]}}m H}8 1V(6){q(6.f.J){7 2l=D S()}7 1j=(6.R[0]&&6.R[0].P.w)||0,2n=6.R[0].P[0].14.w,C=6.f.C,F={V:[],1m:[]};y(7 i=0;i<1j;++i){7 c=6.R[0].P[i],1g=[];F.V.Q($(c));y(7 j=0;j<2n;++j){1g.Q(C[j].G(1N(6.f,c.14[j]),6,c.14[j]))}1g.Q(i);F.1m.Q(1g);1g=1r};q(6.f.J){17("31 F y "+1j+" P:",2l)}m F};8 1N(f,U){q(!U)m"";7 t="";q(f.1F=="27"){q(U.1O[0]&&U.1O[0].35()){t=U.1O[0].1L}K{t=U.1L}}K{q(1w(f.1F)=="8"){t=f.1F(U)}K{t=$(U).1k()}}m t}8 1D(6,F){q(6.f.J){7 29=D S()}7 c=F,r=c.V,n=c.1m,1j=n.w,1J=(n[0].w-1),28=$(6.R[0]),P=[];y(7 i=0;i<1j;i++){P.Q(r[n[i][1J]]);q(!6.f.1M){7 o=r[n[i][1J]];7 l=o.w;y(7 j=0;j<l;j++){28[0].39(o[j])}}}q(6.f.1M){6.f.1M(6,P)}P=1r;q(6.f.J){17("3b 6:",29)}21(6)};8 26(6){q(6.f.J){7 1f=D S()}7 1o=($.1o)?Z:H,1W=[];y(7 i=0;i<6.1h.P.w;i++){1W[i]=0};$1s=$(20(6,1W,0,6.1h.P[0].14.w));$1s.1t(8(1B){k.1c=0;k.1x=1B;k.19=2G(6.f.2R);q(2e(k)||2f(6,1B))k.1z=Z;q(!k.1z){$(k).1H(6.f.2a)}6.f.1A[1B]=k});q(6.f.J){17("3d x:",1f);1l($1s)}m $1s};8 20(6,1u,V){7 1i=[],r=6.1h.P,c=r[V].14;y(7 i=1u[V];i<c.w;i++){7 X=c[i];q(X.3V>1){1i=1i.3f(20(6,1u,V+X.2c))}K{q(6.1h.w==1||(X.2c>1||!r[V+1])){1i.Q(X)}1u[V]=(i+V)}}m 1i};8 2e(X){q(($.1o)&&($(X).18().1d===H)){m Z};m H}8 2f(6,i){q((6.f.x[i])&&(6.f.x[i].1d===H)){m Z};m H}8 21(6){7 c=6.f.1a;7 l=c.w;y(7 i=0;i<l;i++){1Z(c[i]).G(6)}}8 1Z(1q){7 l=1a.w;y(7 i=0;i<l;i++){q(1a[i].B.16()==1q.16()){m 1a[i]}}};8 2G(v){q(1w(v)!="3k"){i=(v.16()=="3H")?1:0}K{i=(v==(0||1))?v:0}m i}8 2J(v,a){7 l=a.w;y(7 i=0;i<l;i++){q(a[i][0]==v){m Z}}m H}8 22(6,$x,13,Y){$x.1C(Y[0]).1C(Y[1]);7 h=[];$x.1t(8(3n){q(!k.1z){h[k.1x]=$(k)}});7 l=13.w;y(7 i=0;i<l;i++){h[13[i][0]].1H(Y[13[i][1]])}}8 2E(6,$x){7 c=6.f;q(c.2m){7 1G=$(\'<1G>\');$("2j:3C 3r",6.R[0]).1t(8(){1G.3s($(\'<3t>\').Y(\'2i\',$(k).2i()))});$(6).3u(1G)}}8 2P(6,u){7 c=6.f,l=u.w;y(7 i=0;i<l;i++){7 s=u[i],o=c.1A[s[0]];o.1c=s[1];o.1c++}}8 1Y(6,u,F){q(6.f.J){7 2o=D S()}7 12="7 2k = 8(a,b) {",l=u.w;y(7 i=0;i<l;i++){7 c=u[i][0];7 19=u[i][1];7 s=(2v(6.f.C,c)=="1k")?((19==0)?"2q":"2r"):((19==0)?"2s":"2t");7 e="e"+i;12+="7 "+e+" = "+s+"(a["+c+"],b["+c+"]); ";12+="q("+e+") { m "+e+"; } ";12+="K { "}7 1P=F.1m[0].w-1;12+="m a["+1P+"]-b["+1P+"];";y(7 i=0;i<l;i++){12+="}; "}12+="m 0; ";12+="}; ";3w(12);F.1m.3y(2k);q(6.f.J){17("3A 3B "+u.3E()+" 3F 3G "+19+" 1f:",2o)}m F};8 2q(a,b){m((a<b)?-1:((a>b)?1:0))};8 2r(a,b){m((b<a)?-1:((b>a)?1:0))};8 2s(a,b){m a-b};8 2t(a,b){m b-a};8 2v(C,i){m C[i].O};k.2d=8(2y){m k.1t(8(){7 $k,$3J,$x,F,f,3L=0,3M;k.f={};f=$.1I(k.f,$.I.2x,2y);q(!k.1h||!k.R)m Z;$k=$(k);$x=26(k);k.f.C=2B(k,$x);F=1V(k);7 1X=[f.2C,f.2D];2E(k);$x.3Q(8(e){q(!k.1z){7 $X=$(k);7 i=k.1x;k.19=k.1c++%2;q(!e[f.2H]){f.u=[];q(f.1U!=1r){7 a=f.1U;y(7 j=0;j<a.w;j++){f.u.Q(a[j])}}f.u.Q([i,k.19])}K{q(2J(i,f.u)){y(7 j=0;j<f.u.w;j++){7 s=f.u[j],o=f.1A[s[0]];q(s[0]==i){o.1c=s[1];o.1c++;s[1]=o.1c%2}}}K{f.u.Q([i,k.19])}};22($k[0],$x,f.u,1X);1D($k[0],1Y($k[0],f.u,F));m H}}).3W(8(){q(f.2N){k.3X=8(){m H};m H}});$k.1E("3Y",8(){F=1V(k)}).1E("2T",8(e,13){f.u=13;7 u=f.u;2P(k,u);22(k,$x,u,1X);1D(k,1Y(k,u,F))}).1E("42",8(){1D(k,F)}).1E("43",8(e,B){1Z(B).G(k)});q($.1o&&($(k).18()&&$(k).18().2S)){f.u=$(k).18().2S}q(f.u.w>0){$k.45("2T",[f.u])}21(k)})};k.N=8(1y){7 l=C.w,a=Z;y(7 i=0;i<l;i++){q(C[i].B.16()==1y.B.16()){a=H}}q(a){C.Q(1y)}};k.2U=8(1T){1a.Q(1T)};k.T=8(s){7 i=30(s);m(2g(i))?0:i};k.32=8(s){7 i=33(s);m(2g(i))?0:i};k.36=8(6){q($.37.38){8 2M(){3a(k.2b)k.3c(k.2b)}2M.3e(6.R[0])}K{6.R[0].1L=""}}}});$.3g.1I({I:$.I.2d});7 L=$.I;L.N({B:"1k",M:8(s){m Z},G:8(s){m $.1S(s.16())},O:"1k"});L.N({B:"3j",M:8(s){m/^\\d+$/.15(s)},G:8(s){m $.I.T(s)},O:"W"});L.N({B:"3l",M:8(s){m/^[3m£$3o‚¬?.]/.15(s)},G:8(s){m $.I.T(s.11(D 1b(/[^0-9.]/g),""))},O:"W"});L.N({B:"3q",M:8(s){m s.2I(D 1b(/^(\\+|-)?[0-9]+\\.[0-9]+((E|e)(\\+|-)?[0-9]+)?$/))},G:8(s){m $.I.T(s.11(D 1b(/,/),""))},O:"W"});L.N({B:"3v",M:8(s){m/^\\d{2,3}[\\.]\\d{2,3}[\\.]\\d{2,3}[\\.]\\d{2,3}$/.15(s)},G:8(s){7 a=s.3x("."),r="",l=a.w;y(7 i=0;i<l;i++){7 1v=a[i];q(1v.w==2){r+="0"+1v}K{r+=1v}}m $.I.T(r)},O:"W"});L.N({B:"3I",M:8(s){m/^(2w?|2z|2A):\\/\\/$/.15(s)},G:8(s){m 2V.1S(s.11(D 1b(/(2w?|2z|2A):\\/\\//),\'\'))},O:"1k"});L.N({B:"3P",M:8(s){m/^\\d{4}[\\/-]\\d{1,2}[\\/-]\\d{1,2}$/.15(s)},G:8(s){m $.I.T((s!="")?D S(s.11(D 1b(/-/g),"/")).1e():"0")},O:"W"});L.N({B:"3R",M:8(s){m/^\\d{1,3}%$/.15(s)},G:8(s){m $.I.T(s.11(D 1b(/%/g),""))},O:"W"});L.N({B:"3S",M:8(s){m s.2I(D 1b(/^[A-3U-z]{3,10}\\.? [0-9]{1,2}, ([0-9]{4}|\'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\\s(3Z|40)))$/))},G:8(s){m $.I.T(D S(s).1e())},O:"W"});L.N({B:"41",M:8(s){m/\\d{1,2}[\\/\\-]\\d{1,2}[\\/\\-]\\d{2,4}/.15(s)},G:8(s,6){7 c=6.f;s=s.11(/\\-/g,"/");q(c.1n=="2Q"){s=s.11(/(\\d{1,2})[\\/\\-](\\d{1,2})[\\/\\-](\\d{4})/,"$3/$1/$2")}K q(c.1n=="44"){s=s.11(/(\\d{1,2})[\\/\\-](\\d{1,2})[\\/\\-](\\d{4})/,"$3/$2/$1")}K q(c.1n=="2L/24/25"||c.1n=="2L-24-25"){s=s.11(/(\\d{1,2})[\\/\\-](\\d{1,2})[\\/\\-](\\d{2})/,"$1/$2/$3")}m $.I.T(D S(s).1e())},O:"W"});L.N({B:"1f",M:8(s){m/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\\s(3h|3i)))$/.15(s)},G:8(s){m $.I.T(D S("3p/2h/2h "+s).1e())},O:"W"});L.N({B:"3D",M:8(s){m H},G:8(s,6,X){7 c=6.f,p=(!c.2F)?\'3N\':c.2F;m $(X).18()[p]},O:"W"});L.2U({B:"34",G:8(6){q(6.f.J){7 1f=D S()}$("2j:3z",6.R[0]).2K(\':2u\').1C(6.f.1p.Y[1]).1H(6.f.1p.Y[0]).3O().2K(\':2O\').1C(6.f.1p.Y[0]).1H(6.f.1p.Y[1]);q(6.f.J){$.I.17("3K 48 1T",1f)}}})})(2V);',62,257,'||||||table|var|function|||||||config|||||this||return||||if||||sortList||length|headers|for|||id|parsers|new||cache|format|false|tablesorter|debug|else|ts|is|addParser|type|rows|push|tBodies|Date|formatFloat|node|row|numeric|cell|css|true||replace|dynamicExp|list|cells|test|toLowerCase|benchmark|data|order|widgets|RegExp|count|sorter|getTime|time|cols|tHead|arr|totalRows|text|log|normalized|dateFormat|meta|widgetZebra|name|null|tableHeaders|each|headerArr|item|typeof|column|parser|sortDisabled|headerList|index|removeClass|appendToTable|bind|textExtraction|colgroup|addClass|extend|checkCell|console|innerHTML|appender|getElementText|childNodes|orgOrderCol|parsersDebug|getParserById|trim|widget|sortForce|buildCache|tableHeadersRows|sortCSS|multisort|getWidgetById|checkCellColSpan|applyWidget|setHeadersCss|undefined|mm|yy|buildHeaders|simple|tableBody|appendTime|cssHeader|firstChild|rowSpan|construct|checkHeaderMetadata|checkHeaderOptions|isNaN|01|width|tr|sortWrapper|cacheTime|widthFixed|totalCells|sortTime|detectParserForColumn|sortText|sortTextDesc|sortNumeric|sortNumericDesc|even|getCachedSortType|https|defaults|settings|ftp|file|buildParserCache|cssDesc|cssAsc|fixColumnWidth|parserMetadataName|formatSortingOrder|sortMultiSortKey|match|isValueInArray|filter|dd|empty|cancelSelection|odd|updateHeaderSortCount|us|sortInitialOrder|sortlist|sorton|addWidget|jQuery|asc|shiftKey|ms|alert|parseFloat|Building|formatInt|parseInt|zebra|hasChildNodes|clearTableBody|browser|msie|appendChild|while|Rebuilt|removeChild|Built|apply|concat|fn|am|pm|integer|Number|currency|Â|offset|â|2000|floating|td|append|col|prepend|ipAddress|eval|split|sort|visible|Sorting|on|first|metadata|toString|and|dir|desc|url|document|Applying|shiftDown|sortOrder|sortValue|end|isoDate|click|percent|usLongDate|headerSortDown|Za|colSpan|mousedown|onselectstart|update|AM|PM|shortDate|appendCache|applyWidgetId|uk|trigger|header|headerSortUp|Zebra'.split('|'),0,{}));
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(8($){$.1V({I:D 8(){7 C=[],1d=[];k.2v={28:"3Z",2b:"48",29:"49",2P:"4a",2D:"4b",1I:1E,1w:"25",C:{},1d:[],1m:{S:["2c","2L"]},x:{},2u:K,2Q:13,u:[],1y:[],1l:"2O",J:K};8 17(s,d){1h(s+","+(D T().1e()-d.1e())+"4c")}k.17=17;8 1h(s){q(1u 1P!="2S"&&1u 1P.J!="2S"){1P.1h(s)}N{2V(s)}}8 1T(6,$x){q(6.f.J){7 1O=""}7 G=6.L[0].G;q(6.L[0].G[0]){7 Z=[],12=G[0].12,l=12.w;y(7 i=0;i<l;i++){7 p=K;q($.1o&&($($x[i]).16()&&$($x[i]).16().1g)){p=1K($($x[i]).16().1g)}N q((6.f.x[i]&&6.f.x[i].1g)){p=1K(6.f.x[i].1g)}q(!p){p=22(6.f,12[i])}q(6.f.J){1O+="1D:"+i+" 1B:"+p.B+"\\n"}Z.R(p)}}q(6.f.J){1h(1O)}m Z};8 22(f,V){7 l=C.w;y(7 i=1;i<l;i++){q(C[i].O($.1M(1Q(f,V)))){m C[i]}}m C[0]}8 1K(1x){7 l=C.w;y(7 i=0;i<l;i++){q(C[i].B.14()==1x.14()){m C[i]}}m K}8 1U(6){q(6.f.J){7 23=D T()}7 19=(6.L[0]&&6.L[0].G.w)||0,2r=(6.L[0].G[0]&&6.L[0].G[0].12.w)||0,C=6.f.C,F={1c:[],1j:[]};y(7 i=0;i<19;++i){7 c=6.L[0].G[i],1p=[];F.1c.R($(c));y(7 j=0;j<2r;++j){1p.R(C[j].H(1Q(6.f,c.12[j]),6,c.12[j]))}1p.R(i);F.1j.R(1p);1p=1E};q(6.f.J){17("2W F y "+19+" G:",23)}m F};8 1Q(f,V){q(!V)m"";7 t="";q(f.1w=="25"){q(V.1L[0]&&V.1L[0].2X()){t=V.1L[0].1S}N{t=V.1S}}N{q(1u(f.1w)=="8"){t=f.1w(V)}N{t=$(V).1i()}}m t}8 1G(6,F){q(6.f.J){7 2U=D T()}7 c=F,r=c.1c,n=c.1j,19=n.w,1J=(n[0].w-1),2h=$(6.L[0]),G=[];y(7 i=0;i<19;i++){G.R(r[n[i][1J]]);q(!6.f.20){7 o=r[n[i][1J]];7 l=o.w;y(7 j=0;j<l;j++){2h[0].32(o[j])}}}q(6.f.20){6.f.20(6,G)}G=1E;q(6.f.J){17("4d 6:",2U)}1z(6)};8 2x(6){q(6.f.J){7 1f=D T()}7 1o=($.1o)?13:K,27=[];y(7 i=0;i<6.1t.G.w;i++){27[i]=0};$1r=$("35 37",6);$1r.1s(8(1F){k.1a=0;k.1D=1F;k.18=2B(6.f.2P);q(2d(k)||2e(6,1F))k.1C=13;q(!k.1C){$(k).1q(6.f.28)}6.f.1y[1F]=k});q(6.f.J){17("3a x:",1f);1h($1r)}m $1r};8 2K(6,G,1c){7 1k=[],r=6.1t.G,c=r[1c].12;y(7 i=0;i<c.w;i++){7 11=c[i];q(11.41>1){1k=1k.3b(2K(6,3c,1c++))}N{q(6.1t.w==1||(11.3e>1||!r[1c+1])){1k.R(11)}}}m 1k};8 2d(11){q(($.1o)&&($(11).16().1g===K)){m 13};m K}8 2e(6,i){q((6.f.x[i])&&(6.f.x[i].1g===K)){m 13};m K}8 1z(6){7 c=6.f.1d;7 l=c.w;y(7 i=0;i<l;i++){1Z(c[i]).H(6)}}8 1Z(1x){7 l=1d.w;y(7 i=0;i<l;i++){q(1d[i].B.14()==1x.14()){m 1d[i]}}};8 2B(v){q(1u(v)!="3i"){i=(v.14()=="3j")?1:0}N{i=(v==(0||1))?v:0}m i}8 2E(v,a){7 l=a.w;y(7 i=0;i<l;i++){q(a[i][0]==v){m 13}}m K}8 1W(6,$x,Z,S){$x.1H(S[0]).1H(S[1]);7 h=[];$x.1s(8(3L){q(!k.1C){h[k.1D]=$(k)}});7 l=Z.w;y(7 i=0;i<l;i++){h[Z[i][0]].1q(S[Z[i][1]])}}8 2z(6,$x){7 c=6.f;q(c.2u){7 1v=$(\'<1v>\');$("2j:3l 3H",6.L[0]).1s(8(){1v.3G($(\'<3o>\').S(\'2l\',$(k).2l()))});$(6).3r(1v)}}8 2M(6,u){7 c=6.f,l=u.w;y(7 i=0;i<l;i++){7 s=u[i],o=c.1y[s[0]];o.1a=s[1];o.1a++}}8 1Y(6,u,F){q(6.f.J){7 2m=D T()}7 Y="7 2k = 8(a,b) {",l=u.w;y(7 i=0;i<l;i++){7 c=u[i][0];7 18=u[i][1];7 s=(2s(6.f.C,c)=="1i")?((18==0)?"2n":"2o"):((18==0)?"2p":"2q");7 e="e"+i;Y+="7 "+e+" = "+s+"(a["+c+"],b["+c+"]); ";Y+="q("+e+") { m "+e+"; } ";Y+="N { "}7 1N=F.1j[0].w-1;Y+="m a["+1N+"]-b["+1N+"];";y(7 i=0;i<l;i++){Y+="}; "}Y+="m 0; ";Y+="}; ";3t(Y);F.1j.3u(2k);q(6.f.J){17("3w 3x "+u.3z()+" 3A 3B "+18+" 1f:",2m)}m F};8 2n(a,b){m((a<b)?-1:((a>b)?1:0))};8 2o(a,b){m((b<a)?-1:((b>a)?1:0))};8 2p(a,b){m a-b};8 2q(a,b){m b-a};8 2s(C,i){m C[i].Q};k.2f=8(2w){m k.1s(8(){q(!k.1t||!k.L)m;7 $k,$3E,$x,F,f,3F=0,3I;k.f={};f=$.1V(k.f,$.I.2v,2w);$k=$(k);$x=2x(k);k.f.C=1T(k,$x);F=1U(k);7 1X=[f.29,f.2b];2z(k);$x.3K(8(e){7 19=($k[0].L[0]&&$k[0].L[0].G.w)||0;q(!k.1C&&19>0){7 $11=$(k);7 i=k.1D;k.18=k.1a++%2;q(!e[f.2D]){f.u=[];q(f.1I!=1E){7 a=f.1I;y(7 j=0;j<a.w;j++){f.u.R(a[j])}}f.u.R([i,k.18])}N{q(2E(i,f.u)){y(7 j=0;j<f.u.w;j++){7 s=f.u[j],o=f.1y[s[0]];q(s[0]==i){o.1a=s[1];o.1a++;s[1]=o.1a%2}}}N{f.u.R([i,k.18])}};$k.1R("3S");1W($k[0],$x,f.u,1X);3T(8(){1G($k[0],1Y($k[0],f.u,F));$k.1R("3U")},0);m K}}).3V(8(){q(f.2Q){k.3X=8(){m K};m K}});$k.1n("3Y",8(){k.f.C=1T(k,$x);F=1U(k)}).1n("2J",8(e,Z){f.u=Z;7 u=f.u;2M(k,u);1W(k,$x,u,1X);1G(k,1Y(k,u,F))}).1n("44",8(){1G(k,F)}).1n("45",8(e,B){1Z(B).H(k)}).1n("47",8(){1z(k)});q($.1o&&($(k).16()&&$(k).16().2N)){f.u=$(k).16().2N}q(f.u.w>0){$k.1R("2J",[f.u])}1z(k)})};k.P=8(1B){7 l=C.w,a=13;y(7 i=0;i<l;i++){q(C[i].B.14()==1B.B.14()){a=K}}q(a){C.R(1B)}};k.2R=8(21){1d.R(21)};k.U=8(s){7 i=2Y(s);m(26(i))?0:i};k.2Z=8(s){7 i=30(s);m(26(i))?0:i};k.33=8(6){q($.34.36){8 2I(){38(k.2a)k.39(k.2a)}2I.3d(6.L[0])}N{6.L[0].1S=""}}}});$.3f.1V({I:$.I.2f});7 M=$.I;M.P({B:"1i",O:8(s){m 13},H:8(s){m $.1M(s.14())},Q:"1i"});M.P({B:"3k",O:8(s){m/^\\d+$/.15(s)},H:8(s){m $.I.U(s)},Q:"W"});M.P({B:"3m",O:8(s){m/^[3n£$3p‚¬?.]/.15(s)},H:8(s){m $.I.U(s.X(D 1b(/[^0-9.]/g),""))},Q:"W"});M.P({B:"3s",O:8(s){m s.2G(D 1b(/^(\\+|-)?[0-9]+\\.[0-9]+((E|e)(\\+|-)?[0-9]+)?$/))},H:8(s){m $.I.U(s.X(D 1b(/,/),""))},Q:"W"});M.P({B:"3v",O:8(s){m/^\\d{2,3}[\\.]\\d{2,3}[\\.]\\d{2,3}[\\.]\\d{2,3}$/.15(s)},H:8(s){7 a=s.3y("."),r="",l=a.w;y(7 i=0;i<l;i++){7 1A=a[i];q(1A.w==2){r+="0"+1A}N{r+=1A}}m $.I.U(r)},Q:"W"});M.P({B:"3J",O:8(s){m/^(2y?|2A|2C):\\/\\/$/.15(s)},H:8(s){m 2T.1M(s.X(D 1b(/(2y?|2A|2C):\\/\\//),\'\'))},Q:"1i"});M.P({B:"3P",O:8(s){m/^\\d{4}[\\/-]\\d{1,2}[\\/-]\\d{1,2}$/.15(s)},H:8(s){m $.I.U((s!="")?D T(s.X(D 1b(/-/g),"/")).1e():"0")},Q:"W"});M.P({B:"3Q",O:8(s){m/^\\d{1,3}%$/.15(s)},H:8(s){m $.I.U(s.X(D 1b(/%/g),""))},Q:"W"});M.P({B:"3R",O:8(s){m s.2G(D 1b(/^[A-3W-z]{3,10}\\.? [0-9]{1,2}, ([0-9]{4}|\'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\\s(40|42)))$/))},H:8(s){m $.I.U(D T(s).1e())},Q:"W"});M.P({B:"43",O:8(s){m/\\d{1,2}[\\/\\-]\\d{1,2}[\\/\\-]\\d{2,4}/.15(s)},H:8(s,6){7 c=6.f;s=s.X(/\\-/g,"/");q(c.1l=="2O"){s=s.X(/(\\d{1,2})[\\/\\-](\\d{1,2})[\\/\\-](\\d{4})/,"$3/$1/$2")}N q(c.1l=="46"){s=s.X(/(\\d{1,2})[\\/\\-](\\d{1,2})[\\/\\-](\\d{4})/,"$3/$2/$1")}N q(c.1l=="2t/24/2g"||c.1l=="2t-24-2g"){s=s.X(/(\\d{1,2})[\\/\\-](\\d{1,2})[\\/\\-](\\d{2})/,"$1/$2/$3")}m $.I.U(D T(s).1e())},Q:"W"});M.P({B:"1f",O:8(s){m/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\\s(3g|3h)))$/.15(s)},H:8(s){m $.I.U(D T("3q/2i/2i "+s).1e())},Q:"W"});M.P({B:"3D",O:8(s){m K},H:8(s,6,11){7 c=6.f,p=(!c.2F)?\'3M\':c.2F;m $(11).16()[p]},Q:"W"});M.2R({B:"31",H:8(6){q(6.f.J){7 1f=D T()}$("2j:3C",6.L[0]).2H(\':2c\').1H(6.f.1m.S[1]).1q(6.f.1m.S[0]).3O().2H(\':2L\').1H(6.f.1m.S[0]).1q(6.f.1m.S[1]);q(6.f.J){$.I.17("3N 4e 21",1f)}}})})(2T);',62,263,'||||||table|var|function|||||||config|||||this||return||||if||||sortList||length|headers|for|||id|parsers|new||cache|rows|format|tablesorter|debug|false|tBodies|ts|else|is|addParser|type|push|css|Date|formatFloat|node|numeric|replace|dynamicExp|list||cell|cells|true|toLowerCase|test|data|benchmark|order|totalRows|count|RegExp|row|widgets|getTime|time|sorter|log|text|normalized|arr|dateFormat|widgetZebra|bind|meta|cols|addClass|tableHeaders|each|tHead|typeof|colgroup|textExtraction|name|headerList|applyWidget|item|parser|sortDisabled|column|null|index|appendToTable|removeClass|sortForce|checkCell|getParserById|childNodes|trim|orgOrderCol|parsersDebug|console|getElementText|trigger|innerHTML|buildParserCache|buildCache|extend|setHeadersCss|sortCSS|multisort|getWidgetById|appender|widget|detectParserForColumn|cacheTime|mm|simple|isNaN|tableHeadersRows|cssHeader|cssDesc|firstChild|cssAsc|even|checkHeaderMetadata|checkHeaderOptions|construct|yy|tableBody|01|tr|sortWrapper|width|sortTime|sortText|sortTextDesc|sortNumeric|sortNumericDesc|totalCells|getCachedSortType|dd|widthFixed|defaults|settings|buildHeaders|https|fixColumnWidth|ftp|formatSortingOrder|file|sortMultiSortKey|isValueInArray|parserMetadataName|match|filter|empty|sorton|checkCellColSpan|odd|updateHeaderSortCount|sortlist|us|sortInitialOrder|cancelSelection|addWidget|undefined|jQuery|appendTime|alert|Building|hasChildNodes|parseFloat|formatInt|parseInt|zebra|appendChild|clearTableBody|browser|thead|msie|th|while|removeChild|Built|concat|headerArr|apply|rowSpan|fn|am|pm|Number|desc|integer|first|currency|Â|col|â|2000|prepend|floating|eval|sort|ipAddress|Sorting|on|split|toString|and|dir|visible|metadata|document|shiftDown|append|td|sortOrder|url|click|offset|sortValue|Applying|end|isoDate|percent|usLongDate|sortStart|setTimeout|sortEnd|mousedown|Za|onselectstart|update|header|AM|colSpan|PM|shortDate|appendCache|applyWidgetId|uk|applyWidgets|headerSortUp|headerSortDown|asc|shiftKey|ms|Rebuilt|Zebra'.split('|'),0,{}))

function p_home(value){
	if(value==1){
		document.getElementById('h_edito').style.display='none';
		document.getElementById('h_perso').style.display='block';
	}else{
		document.getElementById('h_edito').style.display='block';
		document.getElementById('h_perso').style.display='none';	
	}
}

function gearApppend(value){
	if(value==1){
		document.getElementById('gearTop').style.display='none';
		document.getElementById('gearBottom').style.display='none';
		document.getElementById('gearMiddle').style.display='block';
	}else{
		document.getElementById('gearTop').style.display='block';
		document.getElementById('gearBottom').style.display='block';
		document.getElementById('gearMiddle').style.display='none';
	}
}

function backGear(value,id){
	if(value==1)
	{
		document.getElementById('backGear'+id).style.backgroundImage='url("/gfx/2k7b/gear/pdn-search-list-hover.gif")';
	}else{
		document.getElementById('backGear'+id).style.backgroundImage='url("/gfx/2k7b/gear/pdn-search-list.gif")';
	}
	
}	


function SetCookie (name, value){
	var aujourdhui = new Date() ;
	var expdate = new Date() ;
	expdate.setTime( aujourdhui.getTime() + ( 24*60*60*1000 ) )
	document.cookie = name + "=" + value + ";expires=" + expdate.toGMTString() ;
}	

function checkadult(){
	var checkadult;
	if (document.cookie.indexOf('sectionX')=='-1') {
		checkadult=confirm('Cette partie à caractère pornographique de Prix du Net est formellement interdite aux mineurs. Vous devez absolument avoir au moins 18 ans pour rentrer dans cette catégorie.: OK = Je certifie sur l\'honneur avoir au moins 18 ans / Annuler = Je n\'ai pas 18 ans');
		
		if (checkadult) {	
			var ts=new Date();
			ts.setTime(ts.getTime()+3600000);
			document.cookie = 'sectionX=1; path=/; ';
		}
		else { 
			document.location='/';
		}
	}
}



function Efface_histo(val) {
	if(window.XMLHttpRequest) // Firefox
	   xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // Internet Explorer
	   xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else { // XMLHttpRequest non supporté par le navigateur
	   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
	   return;
	}
	xhr_object.open("GET", "/reinit.php", true);
	xhr_object.onreadystatechange = function() {
	   if(xhr_object.readyState == 4){
			if( xhr_object.responseText=='')
			{
				document.getElementById('imgHisto1').innerHTML =  " ";
				document.getElementById('imgHisto2').innerHTML =  " ";
				document.getElementById('imgHisto3').innerHTML =  " ";
				document.getElementById('imgHisto4').innerHTML =  " ";
				document.getElementById('imgHisto5').innerHTML =  " ";
				document.getElementById('arrow1').innerHTML =  " ";
				document.getElementById('arrow2').innerHTML =  " ";
				document.getElementById('arrow3').innerHTML =  " ";
				document.getElementById('arrow4').innerHTML =  " ";
				document.getElementById('arrow5').innerHTML =  " ";
				if(val==1){
					document.getElementById('imgHisto6').innerHTML =  " ";
					document.getElementById('imgHisto7').innerHTML =  " ";
					document.getElementById('imgHisto8').innerHTML =  " ";
					document.getElementById('imgHisto9').innerHTML =  " ";
					document.getElementById('imgHisto10').innerHTML =  " ";
					document.getElementById('arrow6').innerHTML =  "<br />";
					document.getElementById('arrow7').innerHTML =  " ";
					document.getElementById('arrow8').innerHTML =  " ";
					document.getElementById('arrow9').innerHTML =  " ";
					document.getElementById('arrow10').innerHTML =  " ";				
					document.getElementById('txtHisto').innerHTML =  "Vous n'avez aucun historique de produits enregistré.<br /><br />L'historique vous permet d'afficher la liste des <strong>10 derniers produits</strong> consultés.<br />";				
				}else{
					document.getElementById('priceHisto').innerHTML =  " ";
					document.getElementById('arrowHisto').innerHTML =  " ";
				}
				document.getElementById('reinitHisto').innerHTML =  " ";
				
			}
	   }
	}
	xhr_object.send(null);	
}

function p_home_opt(value){
	if(value==1){
		document.getElementById('zone_perso').style.display='none';
		document.getElementById('zone_perso2').style.display='block';
		SetCookie ('txthome', 'on');
	}else{
		document.getElementById('zone_perso').style.display='block';
		document.getElementById('zone_perso2').style.display='none';	
		SetCookie ('txthome', 'off');
	}
}

function p_home_bloc(value,bloc){
	if(value==1){
		document.getElementById('zone_'+bloc+'1').style.display='none';
		document.getElementById('zone_'+bloc+'2').style.display='block';
		SetCookie ('home'+bloc+'', 'on');
	}else{
		document.getElementById('zone_'+bloc+'1').style.display='block';
		document.getElementById('zone_'+bloc+'2').style.display='none';	
		SetCookie ('home'+bloc+'', 'off');
	}
}

function Check_inv() {
	for (var i = 0; i < document.getElementById("inputForm").elements.length; i++) {
		if(document.getElementById("inputForm").elements[i].type == 'checkbox'
			&& document.getElementById("inputForm").elements[i].name != 'txt_home'
			&& document.getElementById("inputForm").elements[i].name != 'aff_homehigh'
			&& document.getElementById("inputForm").elements[i].name != 'aff_homelife'){
			document.getElementById("inputForm").elements[i].checked = !(document.getElementById("inputForm").elements[i].checked);
		}
	}
}

function filtre(value){
	if(value!=''){
		document.location.href=value;
	}
}

function startLytebox(url) {
      var anchor = this.document.createElement('lytebox_misc');
      anchor.setAttribute('rev', 'width: 400px; height: 400px; scrolling: no;');
      anchor.setAttribute('href', url);
      anchor.setAttribute('rel', 'lyteframe');
      myLytebox.start(anchor, false, true);
      return false;
}	

function getelt(){			
	var l1    = document.getElementById('listrub1');
	var l2    = document.getElementById('listrub2');
	var index = l1.selectedIndex;
								
	if(window.XMLHttpRequest) // Firefox
	   xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // le navitateur tout pourri
	  xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else { // XMLHttpRequest non supporté par le navigateur
	  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
	return;
	}
	xhr_object.open("POST", "/ajax-floues.php", true);
	xhr_object.onreadystatechange = function() {
		if(xhr_object.readyState == 4){
			eval(xhr_object.responseText);
		}
	}
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	var data = "listrub1="+escape(l1.options[index].value)+"&form=listrub&select=listrub2";
	xhr_object.send(data);							
}

function add_f(id)
{
	var filtre = document.getElementById('filtre_'+id).cloneNode(true);
	document.getElementById('critere_'+id).appendChild(filtre);
}
	
function comp(id,val,gpe,section){
	if(val==1)
	{
		document.getElementById('comp_pdt').style.display="block";
		document.getElementById('list_line_txt_'+id).style.backgroundImage="url(/gfx/2k7b/liste-fond-descr-compare.png)";
		document.getElementById('pdt_'+id).innerHTML= '<a href="#c" onclick="javascript:comp('+id+',0,'+gpe+',\''+section+'\')" style="outline: none"><img src="/gfx/2k7b/liste-comparer-moins'+section+'.png" alt="comparer"/></a>';				
		var url = document.getElementById('url-'+id).innerHTML;
		var xhr_object = null;		
	}else if(val==2){
		var str = ''+id+'';
		str = str.split(',');		
		for (var i=0; i < str.length; ++i)
		{
			var item = document.getElementById('pdt_'+str[i]);
			var item2 = document.getElementById('list_line_txt_'+str[i]);
			if(item)
			{
				item.innerHTML= '<a href="#cp" onclick="javascript:comp('+str[i]+',1,'+gpe+',\''+section+'\')" style="outline: none" onmouseover="Tip(\'Vous pouvez comparer les caractéristiques et le prix de ce produit avec 3 autres modèles simultanément. La liste se situe en haut de la colonne de droite.\',WIDTH, \'30\',TEXTALIGN, \'justify\', CLICKCLOSE, true)"><img src="/gfx/2k7b/liste-comparer-plus'+section+'.png" alt="comparer"/></a>';							
			}
			if(item2){
				item2.style.backgroundImage="url(/gfx/2k7b/liste-fond-descr.png)";
			}
		}
		document.getElementById('comp_pdt').style.display="none";
	}else{
		var item = document.getElementById('list_line_txt_'+id);
		var item2 = document.getElementById('url-'+id);
		if(item2){
			var url = document.getElementById('url-'+id).innerHTML;
		}
		if(item)
		{
		
			item.style.backgroundImage="url(/gfx/2k7b/liste-fond-descr.png)";
			document.getElementById('pdt_'+id).innerHTML= '<a href="#c" onclick="javascript:comp('+id+',1,'+gpe+',\''+section+'\')" style="outline: none" onmouseover="Tip(\'Vous pouvez comparer les caractéristiques et le prix de ce produit avec 3 autres modèles simultanément. La liste se situe en haut de la colonne de droite.\',WIDTH, \'30\',TEXTALIGN, \'justify\',CLICKCLOSE, true)"><img src="/gfx/2k7b/liste-comparer-plus'+section+'.png" alt="comparer"/></a>';		
		}
			
	}
	
	
	if(window.XMLHttpRequest) // Firefox
	   xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // Internet Explorer
	   xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else { // XMLHttpRequest non supporté par le navigateur
	   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
	   return;
	}
	
	xhr_object.open("GET", "/comparo.php?sec="+section+"&id="+id+"&val="+val+"&gpe="+gpe+"&url="+url+"", true);
	xhr_object.onreadystatechange = function() {
	   if(xhr_object.readyState == 4){
			if( xhr_object.responseText=='')
			{
				document.getElementById('comp_pdt').style.display="none";
			}else{
				document.getElementById("comparo_pdt").innerHTML = xhr_object.responseText;
			}
	   }
	}
	xhr_object.send(null);			
}
	
	
	
function comp2(id,val,gpe,section,aff){
	var item2 = document.getElementById('url-'+id);
	if(item2){
		var url = document.getElementById('url-'+id).innerHTML;	
	}
	
	if(val==1)
	{
		document.getElementById('comp_pdt').style.display="block";
		document.getElementById('pdt_'+id).innerHTML=  '<a href="#cp" onclick="javascript:comp2('+id+',0,'+gpe+',\''+section+'\')" class="txt_grey3"><span class="left"><img src="/gfx/2k7b/liste-comparer2-moins'+section+'.gif" alt="comparer moins"/></span>&nbsp;Comparer</a>';	
		var url = document.getElementById('url-'+id).innerHTML;
		var xhr_object = null;		
	}else if(val==2){
		var str = ''+id+'';
		str = str.split(',');		
		for (var i=0; i < str.length; ++i)
		{
			var item = document.getElementById('pdt_'+str[i]);
			if(item)
			{
				document.getElementById('pdt_'+str[i]).innerHTML=  '<a href="#cp" onclick="javascript:comp2('+str[i]+',1,'+gpe+',\''+section+'\')" class="txt_grey3"><span class="left"><img src="/gfx/2k7b/liste-comparer2-plus.gif" alt"comparer plus"/></span>&nbsp;Comparer</a>';	
			}
		}
		document.getElementById('comp_pdt').style.display="none";
	}else{
		var item = document.getElementById('pdt_'+id);
		if(item)
		{
			document.getElementById('pdt_'+id).innerHTML=  '<a href="#cp" onclick="javascript:comp2('+id+',1,'+gpe+',\''+section+'\')" class="txt_grey3"><span class="left"><img src="/gfx/2k7b/liste-comparer2-plus.gif" alt="comparer plus"/></span>&nbsp;Comparer</a>';	
		}
			
	}	
	
	var xhr_object = null;		
	if(window.XMLHttpRequest) // Firefox
	   xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // Internet Explorer
	   xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else { // XMLHttpRequest non supporté par le navigateur
	   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
	   return;
	}	
	xhr_object.open("GET", "/comparo.php?aff=2&sec="+section+"&id="+id+"&val="+val+"&gpe="+gpe+"&url="+url+"", true);
	xhr_object.onreadystatechange = function() {
	   if(xhr_object.readyState == 4){
			if( xhr_object.responseText=='')
			{
				document.getElementById('comp_pdt').style.display="none";
			}else{
				document.getElementById("comparo_pdt").innerHTML = xhr_object.responseText;
			}
	   }
	}
	xhr_object.send(null);			
}
	
function comp3(id,val,gpe,section,aff){
	var item2 = document.getElementById('url-'+id);
	if(item2){
		var url = document.getElementById('url-'+id).innerHTML;	
	}
	
	if(val==1)
	{
		document.getElementById('comp_pdt').style.display="block";
		document.getElementById('pdt_'+id).innerHTML=  '<a href="#cp" onclick="javascript:comp3('+id+',0,'+gpe+',\''+section+'\')" class="txt_grey3"><span class="left"><img src="/gfx/2k7b/liste-comparer2-moins'+section+'.gif" alt="comparer moins"/></span></a>';	
		var xhr_object = null;		
	}else if(val==2){
		var str = ''+id+'';
		str = str.split(',');		
		for (var i=0; i < str.length; ++i)
		{
			var item = document.getElementById('pdt_'+str[i]);
			if(item)
			{
				document.getElementById('pdt_'+str[i]).innerHTML=  '<a href="#cp" onclick="javascript:comp3('+str[i]+',1,'+gpe+',\''+section+'\')" class="txt_grey3"><span class="left"><img src="/gfx/2k7b/liste-comparer2-plus.gif" alt"comparer plus"/></span></a>';	
			}
		}
		document.getElementById('comp_pdt').style.display="none";
	}else{
		var item = document.getElementById('pdt_'+id);
		if(item)
		{
			document.getElementById('pdt_'+id).innerHTML=  '<a href="#cp" onclick="javascript:comp3('+id+',1,'+gpe+',\''+section+'\')" class="txt_grey3"><span class="left"><img src="/gfx/2k7b/liste-comparer2-plus.gif" alt="comparer plus"/></span></a>';	
		}
			
	}	
	
	var xhr_object = null;		
	if(window.XMLHttpRequest) // Firefox
	   xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // Internet Explorer
	   xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else { // XMLHttpRequest non supporté par le navigateur
	   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
	   return;
	}	
	xhr_object.open("GET", "/comparo.php?aff=3&sec="+section+"&id="+id+"&val="+val+"&gpe="+gpe+"&url="+url+"", true);
	xhr_object.onreadystatechange = function() {
	   if(xhr_object.readyState == 4){
			if( xhr_object.responseText=='')
			{
				document.getElementById('comp_pdt').style.display="none";
			}else{
				document.getElementById("comparo_pdt").innerHTML = xhr_object.responseText;
			}
	   }
	}
	xhr_object.send(null);			
}	
	
function Mlist(key){
	if(key>0){
		var xhr_object = null;	
		if(window.XMLHttpRequest) // Firefox
		   xhr_object = new XMLHttpRequest();
		else if(window.ActiveXObject) // Internet Explorer
		   xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
		else { // XMLHttpRequest non supporté par le navigateur
		   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
		   return;
		}
		xhr_object.open("GET", "param.php?key="+key+"", true); 
		
		xhr_object.onreadystatechange = function() {
		   if(xhr_object.readyState == 4) {
			   document.getElementById('allHome').style.display='none';
			   document.getElementById('allItems').style.display='block';
			   document.getElementById('allItems').innerHTML = xhr_object.responseText;
			   document.onload= initDragDropScript();
		   }
		}
		xhr_object.send(null);	
	}else{
		document.getElementById('allItems').innerHTML = '';
		document.getElementById('allHome').style.display='block';
		document.getElementById('allItems').style.display='none';
		document.onload= initDragDropScript();
	}
}	

 $(function () {
        $('.bubbleInfo').each(function () {
            //options
        	var time = 0;
            var hideDelay = 0;
            var hideDelayTimer = null;
            //tracker
            var beingShown = false;
            var shown = false;
            var trigger = $('.trigger', this);
            var info = $('.bubblePop', this).css('opacity', 'hide');
            $([trigger.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;
                    info.css({
                        top: -130,
                        left: 35,
                        display: 'block'
                    }).animate({
                        opacity: 'show'
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }
                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        opacity: 'hide'
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
	
	
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('9.15.12=s(f,E){e(f==M)k;7 3={f:f,4:5,d:0};e(E){9.C(3,E)};9.C(3,{13:(3.4>1)?S:x});7 c=9(m);9.C(c,{T:3.d,f:3.f});e(!3.b||3.b==M||3.b==\'14\'){7 h=3.4*U;7 l=\'<D g="8-6" b="j:\'+h+\'r">\'}e(3.b==\'y\'){7 h=3.4*10;7 l=\'<D g="8-6 y-8" b="j:\'+h+\'r">\'}e(3.b==\'P\'){7 h=3.4*10;7 l=\'<B g="P-6"><D g="8-6 y-8" b="j:\'+h+\'r">\'}c.A(l);7 v,w,o=\'\';7 H=J.K(q/3.4*3.d);X(7 i=0;i<=3.4;i++){e(i==0){o+=\'<p g="G-6" b="j:\'+H+\'%;">\'+3.d+\'/\'+3.4+\'</p>\'}I{v=J.K(q/3.4*i);w=(3.4-i)+2;o+=\'<p g="8"><a O="#\'+i+\'" Y="\'+i+\'/\'+3.4+\'" b="j:\'+v+\'%;z-N:\'+w+\'">\'+i+\'</a></p>\'}}c.u(\'.8-6\').A(o);e(3.4>1){c.A(\'<B g="8-6-R"></B>\')}7 t=9(c).u(\'.8-6\').n(\'.8\');t.11(s(){e(3.4==1){3.d=(3.d==0)?1:0;9(c).u(\'.8-6\').n(\'.G-6\').V({j:(3.d*q)+\'%\'});9.Q(c.f,{"6":3.d});k x}I{3.d=t.N(m)+1;F=9(m).n(\'a\')[0].O.Z(\'#\')[1];9.Q(c.f,{"6":F},s(L){c.n(\'.8-6-R\').W(L)});k x}k S});k m}',62,68,'|||settings|maxvalue||rating|var|star|jQuery||style|container|curvalue|if|url|class|raterwidth||width|return|ratingparent|this|children|listitems|li|100|px|function|stars|find|starWidth|starIndex|false|small||append|span|extend|ul|options|raterValue|current|curvalueWidth|else|Math|floor|response|null|index|href|inline|post|result|true|averageRating|25|css|html|for|title|split||click|rater|cancel|basic|fn'.split('|'),0,{}))	



function strip_tags(str, allowed_tags) {
    var key = '', allowed = false;
    var matches = [];
    var allowed_array = [];
    var allowed_tag = '';
    var i = 0;
    var k = '';
    var html = '';		
    var replacer = function(search, replace, str) {
        return str.split(search).join(replace);
    };
    // Build allowes tags associative array
    if (allowed_tags) {
        allowed_array = allowed_tags.match(/([a-zA-Z]+)/gi);
    }
    str += '';		
    // Match tags
    matches = str.match(/(<\/?[\S][^>]*>)/gi);
   // Go through all HTML tags
	for (key in matches) {
	    if (isNaN(key)) {
	         // IE7 Hack
	        continue;
	    }

		// Save HTML tag
		html = matches[key].toString();

		// Is tag not in allowed list? Remove from str!
		allowed = false;

		// Go through all allowed tags
		for (k in allowed_array) {
			// Init
			allowed_tag = allowed_array[k];
			i = -1;

			if (i != 0) { i = html.toLowerCase().indexOf('<'+allowed_tag+'>');}
			if (i != 0) { i = html.toLowerCase().indexOf('<'+allowed_tag+' ');}
			if (i != 0) { i = html.toLowerCase().indexOf('</'+allowed_tag)   ;}

			// Determine
			if (i == 0) {
				allowed = true;
				break;
			}
		}

		if (!allowed) {
			str = replacer(html, "", str); // Custom replace. No regexing
		}
	}

	return str;
}

//favorites products
function favoris(id,sel){
	var address = '/pdt-favoris.php';
	var info = "id="+id+"&sel="+sel+"";
	
	$(document).ready(function() { 		
		$("div#mainContentHisto").empty();
		$("div#mainContentHisto").append(loadingImage2);	
				
		$.ajax({
			url: address,
			dataType: "html",
			data: ""+info+"",
			type: "POST",
			cache: false,
			error: function(e){
				$("div#mainContentHisto").empty();
				$("div#mainContentHisto").append("<strong>Application Error</strong><br/>Unfortunately a fatal error has been encountered and the script cannot continue.");
				return;
			},
			success: function(data){
				$("div#mainContentHisto").empty();
				$("div#mainContentHisto").append(data);
				return;
			}
		});
	});	
}

function histoImg(id,val,pge){
	var address = '/pdt-historique.php';
	var info = "id="+id+"&val="+val+"&pge="+pge+"";
		$("div#priceHisto").empty();
		$("div#priceHisto").append(loadingImage3);				
		$.ajax({
			url: address,
			dataType: "html",
			data: ""+info+"",
			type: "POST",
			cache: false,
			error: function(e){
				$("div#priceHisto").empty();
				$("div#arrow1").empty();
				$("div#arrow2").empty();
				$("div#arrow3").empty();
				$("div#arrow4").empty();
				$("div#arrow5").empty();									
				$("div#priceHisto").append("<strong>Application Error</strong><br/>Unfortunately a fatal error has been encountered and the script cannot continue.");
				return;
			},
			success: function(data){
				$("div#priceHisto").empty();
				$("div#arrow1").empty();
				$("div#arrow2").empty();
				$("div#arrow3").empty();
				$("div#arrow4").empty();
				$("div#arrow5").empty();
				if(pge==1){
					$("div#arrow6").empty();					
					$("div#arrow7").empty();					
					$("div#arrow8").empty();					
					$("div#arrow9").empty();					
					$("div#arrow10").empty();					
					$("div#arrow10").empty();
				}
				$("div#priceHisto").append(data);
				$("div#arrow"+val+"").html('<img src="/gfx/2k7b/ajax/fleche-haut.gif" alt="fleche" />');				
				return;
			}	
	});
}


function getHisto(lien,pge){
	var address = lien+'&p='+pge;	
	$(document).ready(function() { 	
		$("#favProduit").empty();
		$("#favProduit").append(loadingImage2);
			
		$.ajax({
			url: address,
			dataType: "html",
			type: "GET",
			cache: false,
			error: function(e){
				$("#favProduit").empty();
				$("#favProduit").append("<strong>Application Error</strong><br/>Unfortunately a fatal error has been encountered and the script cannot continue.<br/><br/>Please try again.");
				return;
			},
			success: function(data){
				$("#favProduit").empty();
				$("#favProduit").append(data);
				return;
			}
		});
	});
	document.location='#favProduit';
}


function sendRubHisto(){
	var id = document.getElementById("id").value;
	$("#favProduit").empty();
	$("#favProduit").append(loadingImage2);
	$.ajax({
		url: "/ajax-histo.php?id="+id+"",
		dataType: "html",
		charset : "ISO-8859-1",
		type: "GET",
		cache: false,
		error: function(e){
			$("#favProduit").empty();
			$("#favProduit").append("<strong>Application Error</strong><br/>Unfortunately a fatal error has been encountered and the script cannot continue.<br/><br/>Please try again.");
		},
		success: function(data){
			$("#favProduit").empty();
			$("#favProduit").append(data);
		}
	});
}


