			var $j = jQuery.noConflict();
			$j(document).ready(function(){
				/*on insere la carte*/
					$j("#ctl00_langpane .languagebox .choice").after(flash);
				
				/*on verifie toutes les images*/
					$j("img").error(function(){
					  $j(this).attr({src:"",width:"",height:""});
					  $j(this).attr({src:"portaldata/1/Resources/images/2x2.gif"});
					});
			
				/*on verifie l'URL pour savoir si l'on a ou non fr|de|es|en et l'on affiche ou non la div*/
					var reg = new RegExp("(/fr/|/de/|/es/|/en/|/it/)","g");
					var regback = new RegExp("(layout)","g");
					if(!reg.test(document.location) && !regback.test(document.location)){
						var url = document.location.host+"/en"+document.location.pathname;
						document.location.href = "http://"+url;
					}

					var cook = litCook("formula");
					/* s'il n'y a pas de cookie on creer un cookie
					// s'il n'y a pas de cookie on affiche la carte*/
					if(cook == "" || cook == false){
						opacity("add");
						$j("#ctl00_langpane").slideToggle(500, function(){
							language_init();
							if($j(this).find("div").hasClass("hide"))
								$j(this).find("div").removeClass("hide");
							else
								$j(this).find("div").addClass("hide");
						});
					}
					else if(cook != ""){
						listcook = cook.split(",");
						var session = listcook[0];
						var zone = listcook[1];
						var lang = listcook[2];
						var pays = listcook[3];
					}
					
					/*on affecte les styles aux li en fonction de la position de la class act en fonction du nombre d'onglet*/
						var i = 0;
						var zindex = 4;
						var position = "";
						$j("ul.tabtableaux li").each(function(){
							if($j(this).attr("class") == "cur")
								position = i;
							i++;
						});
					
						if(position == 0){
							var step = 8;
							for(var j=1;j<=i;j++){
								$j("ul.tabtableaux li:eq("+j+")").attr({style : "left:-"+step+"px;z-index:"+zindex+";"});
								step += 7;
								zindex--;
							}
						}
						else{
							var step = 0;
							for(var j=0;j<i;j++){
								if(j != 0){
									var left = "left:-"+step+"px";
									zindex--;
								}
								var left = (j != 0) ? "left:-"+step+"px;": "";
								$j("ul.tabtableaux li:eq("+j+")").attr({style : left+"z-index:"+zindex+";"});
								step += 7;
							}
						}					
					
					
					var reg = new RegExp("(tabid-67/|tabid-51/|tabid-120/|tabid-121/|tabid-122/|tabid-123/)","g");
					if(reg.test(document.location)){
						$j("div.products div.tableau-content table").addClass("visible");
						
						/*il faut recuperer l'url puis l'injecter dans celle du menu de gauche*/
							var reg = new RegExp("(tabid-67/|tabid-51/|tabid-120/|tabid-121/|tabid-122/|tabid-123/)","g");
							var path50 = reg.exec(document.location);
							var path51 = document.location.pathname.split(path50[0]);
							var path52 = path51[1];
							$j("div.left-menu-btn1 a").each(function(){
								var href = $j(this).attr("href").replace(path50[0],path50[0]+path52);
								$j(this).attr({href:href});
							});
							
						/*on recupere la class affect?e au H1 pour les sous cat?gories*/
							var h1class = $j("h1").attr("class");
							$j("ul.menuright li:even").addClass(h1class+"submenu");
							$j("ul.menuright li a").addClass(h1class+"submenu");
						
						/*on recup?re les produits correspondant ? la Sales Area choisie*/
							$j("div.products div.tableau-content table").each(function(){
								var tr = "";
								var i = 0;
								$j(this).find("tbody tr td.hide-lang:contains('"+pays+"')").each(function(){
									var classtr = (i/2 == Math.round(i/2)) ? "first" : "second";
									tr += "<tr class=\""+classtr+"\">"+$j(this).parent("tr").html()+"</tr>";
									i++;
								});
								/*$j(this).find("tbody tr td:contains('"+pays+"')").each(function(){
									var classtr = (i/2 == Math.round(i/2)) ? "first" : "second";
									tr += "<tr class=\""+classtr+"\">"+$j(this).parent("tr").html()+"</tr>";
									i++;
								});*/
								$j(this).find("tbody").empty();
								if(tr != "")
									$j(this).find("tbody").prepend(tr);
							});
							setTimeout("remove_loader();",2500);
							
						/*on rediriges les clics vers le bonnes URLs*/
							$j("div.applications table tr a").click(function(){
								var reg =  new RegExp("(tabid-2)", "g");
								var lien = $j(this).attr("lien").replace(reg,"tabid-67");
								document.location.href = lien;
								return false;
								//$j(this).attr({href:lien});
							});
							$j("div.tutorials table tr a").click(function(){
								var reg =  new RegExp("(tabid-73/220)", "g");
								var lien = $j(this).attr("lien").replace(reg,"tabid-67/162");
								document.location.href = lien;
								return false;
								//$j(this).attr({href:lien});
							});
							$j("div.process table tr a").click(function(){
								var reg =  new RegExp("(tabid-73/219)", "g");
								var lien = $j(this).attr("lien").replace(reg,"tabid-67/156");
								document.location.href = lien;
								return false;
								//$j(this).attr({href:lien});
							});
							
						/*on recupere la session du pays pour l'afficher dans les menus select pour les produits (avt : l.652)*/
							if(session != "" && $j("select[name='pays-contact']").html() != null){
								$j("select[name='pays-contact'] option[value='"+session+"']").attr({selected:"selected"});
								var country = $j("select[name='pays-contact'] option[value='"+session+"']").text();
								$j("div.div-content-tableau div.contact").hide(); 
								$j("div.div-content-tableau div."+country).show(); 
							}
							
						/*on affiche l'image dans la bonne div*/
							var reg = new RegExp("(tabid-67/156_)","g");
							if(reg.test(document.location)){
								if($j("div.more-text img:first").attr("src") != undefined){
									var width = $j("div.more-text img:first").width();
									if(width > 130)
										$j("div.more-images").addClass("imagelarge");
									$j("div.more-images").prepend("<img src=\""+$j("div.more-text img:first").attr("src")+"\" />");
									$j("div.more-text img:first").remove();
								}
							}
						}

					
					/*on affiche le bon tableau Technicals data*/
						var reg = new RegExp("(tabid-62/171_)","g");
						if(reg.test(document.location)){
						
							/*il faut recuperer l'url puis l'injecter dans celle du menu de gauche*/
								var reg = new RegExp("(tabid-62/)","g");
								var path50 = reg.exec(document.location);
								var path51 = document.location.pathname.split(path50[0]);
								var path52 = path51[1];
								$j("div.left-menu-btn1 a").each(function(){
									var href = $j(this).attr("href").replace(path50[0],path50[0]+path52);
									$j(this).attr({href:href});
								});
								
						
							if($j(".technicals-data").html() != null){
								var tableau =  $j(".technicals-data").html();
								$j(".technicals-data").remove();
								$j("ul.tabtableaux").after("<div class=\"technicals-data\">"+tableau+"</div>");
								var tech = $j("#type").text();  
								if(tech == "Plaster"){
									$j(".chamotte").remove();
									$j(".gypsum").remove();
									$j(".refractory").remove();
								}
								else if(tech == "Uncalcined Gypsum"){
									$j(".chamotte").remove();
									$j(".plaster").remove();
									$j(".refractory").remove();
								}
								else if(tech == "Chamotte"){
									$j(".plaster").remove();
									$j(".gypsum").remove();
									$j(".refractory").remove();
								}
								else if(tech == "Refractory Investment"){
									$j(".chamotte").remove();
									$j(".gypsum").remove();
									$j(".plaster").remove();
								}
							}
							
							/*on rediriges les clics vers le bonnes URLs*/
								$j("div.applications table tr a").each(function(){
									var reg =  new RegExp("(tabid-2)", "g");
									var lien = $j(this).attr("lien").replace(reg,"tabid-67");
									$j(this).attr({href:lien});
								});
								$j("div.tutorials table tr a").each(function(){
									var reg =  new RegExp("(tabid-73/220)", "g");
									var lien = $j(this).attr("lien").replace(reg,"tabid-67/162");
									$j(this).attr({href:lien});
								});
								$j("div.process table tr a").each(function(){
									var reg =  new RegExp("(tabid-73/219)", "g");
									var lien = $j(this).attr("lien").replace(reg,"tabid-67/156");
									$j(this).attr({href:lien});
								});
							
							/*on traite les demande de contact*/
								$j("#ctl00_tabpane div.sales span.mail").click(function(){
									var i = 1;
									var contact = "";
									var sep = "";

									var contact = $j("p.sales-hide").text();
									var listcontact = contact.split(";");
									contact = "";
									var sep = "";
									for(var i = 0;i<listcontact.length;i++){
										if(listcontact[i] != ""){
											contact += sep+"id"+(i+1)+"="+listcontact[i];
											sep = "&";
										}
									}
									$j("div.div-content-tableau #form-contact").empty();
								
									$j("#ctl00_tabpane div.sales #form-contact").prepend("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"600\" height=\"600\" id=\"test\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"portaldata/1/Resources/swf/contact-liste.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param value=\""+contact+"\" name=\"FlashVars\"/><embed src=\"portaldata/1/Resources/swf/contact-liste.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"600\" height=\"600\" name=\"test\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"  flashvars=\""+contact+"\"/></object>");
								});
								$j("div.technicals-data table.table-products table tr td").each(function(){
									if($j(this).text() == "" || $j(this).text() == " " || $j(this).html() == ""){
										$j(this).html("<span class=\"novisibility\">0</span>");
									}
								});
								
							/* gestion de l'affichage des div pour les produits produits*/
								$j("#ctl00_tabpane ul.tabtableaux li").click(function(){
									var lititle = $j(this).attr("titl");
									$j("ul.tabtableaux li").removeClass("cur");
									$j(this).addClass("cur");
									$j("div.tableaux").hide();
									if(lititle == "61")
										$j("div.technicals-data").show(function(){ $j("div.technicals-data .tableaux").show(); });
									else if(lititle == "62")
										$j("div.presentation").show();
									else if(lititle == "63")
										$j("div.applications").show();
									else if(lititle == "64")
										$j("div.process").show();
									else if(lititle == "65")
										$j("div.tutorials").show();					
									else if(lititle == "66")
										$j("div.sales").show();		
								});

							/*gestion de l'affichage des onglets pour le detail des r?f?rences produits		*/	
								var html = $j("div.presentation").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='62']").hide();
								var html = $j("div.applications").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='63']").hide();
								var html = $j("div.process").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='64']").hide();
								var html = $j("div.tutorials").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='65']").hide();
								var html = $j("div.sales").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='66']").hide();
						}

												
						
					/*on recup?re toutes la liste des process et les langues pour chaque type de produits (gypsum, chamotte, plaster, refractory)*/
						$j("div.products").each(function(){
							/*pour les process*/
								var list = "";
								var tab = "<option selected=\"selected\" value=\"\">All</option>";
								$j(this).find("td.hide-process").each(function(){
									if($j(this).text() != "")
										list += $j(this).text();
								});
								list = list.split(/;/g);
								sort(list);
								list = array_unique(list);
								for(var i = 0;i<list.length;i++){
									if(list[i] != "" && list[i] != undefined)
										tab += "<option value=\""+list[i]+"\">"+list[i]+"</option>";
								}
								$j(this).find("select[name='process']").empty();
								$j(this).find("select[name='process']").prepend(tab);
								$j(this).find("select[name='process'] option[value='']").attr({selected:"selected"});

							/*pour les markets*/
								var list = "";
								var tab = "<option selected=\"selected\" value=\"\">All</option>";
								$j(this).find("td.hide-market").each(function(){
									if($j(this).text() != "")
										list += $j(this).text();
								});
								list = list.split(/;/g);
								sort(list);
								list = array_unique(list);
								for(var i = 0;i<list.length;i++){
									if(list[i] != "" && list[i] != undefined)
										tab += "<option value=\""+list[i]+"\">"+list[i]+"</option>";
								}
								$j(this).find("select[name='market']").empty();
								$j(this).find("select[name='market']").prepend(tab);
								$j(this).find("select[name='market'] option[value='']").attr({selected:"selected"});

								
							var tab = "<option selected=\"selected\" value=\""+session+"\">"+session+"</option><option value=\"\">All data</option>";
							$j(this).find("select[name='country']").empty();
							$j(this).find("select[name='country']").prepend(tab);
						});	
											
					
					
					/*on masque les ancres pour les produits car on utilise les onglets*/
						var reg = new RegExp("(tabid-51/|tabid-120/|tabid-121/|tabid-122/|tabid-123/)","g");
						if(reg.test(document.location)){
							$j("div.products div.tableau-content div.tableau-anchor").attr({style:"background:none;"});
							$j("div.products div.tableau-content div.goto").hide();
							
							$j("div.height").each(function(){
								if($j(this).find("table").height() > 242)
									$j(this).css("width","637px");
							});
							
							/*plaster reset selector*/
								$j("select#process_plaster").change(function(){
									$j("select#market_plaster option[value='']").attr({selected:"selected"});
								});
								$j("select#market_plaster").change(function(){
									$j("select#process_plaster option[value='']").attr({selected:"selected"});
								});
							/*gypsum reset selector*/
								$j("select#process_gypsum").change(function(){
									$j("select#market_gypsum option[value='']").attr({selected:"selected"});
								});
								$j("select#market_gypsum").change(function(){
									$j("select#process_gypsum option[value='']").attr({selected:"selected"});
								});
							/*chamotte reset selector*/
								$j("select#process_chamotte").change(function(){
									$j("select#market_chamotte option[value='']").attr({selected:"selected"});
								});
								$j("select#market_chamotte").change(function(){
									$j("select#process_chamotte option[value='']").attr({selected:"selected"});
								});
							/*refractory reset selector*/
								$j("select#process_refractory").change(function(){
									$j("select#market_refractory option[value='']").attr({selected:"selected"});
								});
								$j("select#market_refractory").change(function(){
									$j("select#process_refractory option[value='']").attr({selected:"selected"});
								});
								
							/*gestion de l'affichage des onglets pour les produits			*/
								/*var html = $j("div.plaster").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='51']").hide();
								var html = $j("div.gypsum").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='52']").hide();
								var html = $j("div.chamotte").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='53']").hide();
								var html = $j("div.refractory").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='54']").hide();
									*/
									
								$j("ul.tabtableaux li").removeClass("cur");
								var html = $j("div.plaster").html();
								if(html != null){
									$j("ul.tabtableaux li[titl='51']").addClass("cur");
									$j("div.plaster").show();
								}
								var html = $j("div.gypsum").html();
								if(html != null){
									$j("ul.tabtableaux li[titl='52']").addClass("cur");
									$j("div.gypsum").show();
								}
								var html = $j("div.chamotte").html();
								if(html != null){
									$j("ul.tabtableaux li[titl='53']").addClass("cur");
									$j("div.chamotte").show();
								}
								var html = $j("div.refractory").html();
								if(html != null){
									$j("ul.tabtableaux li[titl='54']").addClass("cur");
									$j("div.refractory").show();
								}
									
									
							/* gestion de l'affichage des div pour les produits produits*/
								/*$j("#ctl00_tabpane ul.tabtableaux li").click(function(){
									var lititle = $j(this).attr("titl");
									$j("ul.tabtableaux li").removeClass("cur");
									$j(this).addClass("cur");
									$j("div.tableaux").hide();
									if(lititle == "51")
										$j("div.plaster").show();
									else if(lititle == "52")
										$j("div.gypsum").show();
									else if(lititle == "53")
										$j("div.chamotte").show();
									else if(lititle == "54")
										$j("div.refractory").show();					
								});*/
																
						}
						
						
					/*on affiche ou l'on masque les ancres pour les produits en fonction du nombre de produits sur la page de detail du march?*/
						var reg= "";
						var reg = new RegExp("(tabid-67/)","g");
						if(reg.test(document.location)){
							$j("div.products div.tableau-content div.tableau-anchor").attr({style:"background:none;"});
							$j("div.products div.tableau-content div.goto").hide();
							var i = 0;
							var h3 = "";
							var sep = "";
							$j("div.products div.tableau-content").each(function(){
								if($j(this).find("table tbody").html() != "" && $j(this).find("table tbody").html() != undefined){
									var text = $j(this).find("h3").text();
									h3 += sep+"<a href=\""+document.location+"#"+text+"\">"+text+"</a>";
									sep = " | ";
									i++;
								}
								else{
									$j(this).parent("div.products").remove();
									if($j("div.products").html() == null)
										$j("ul li[titl='68']").hide();
								}
							});
							if(i>=2){
								$j("span.gotoanchor").empty();
								$j("span.gotoanchor:first").prepend(h3);
								$j("div.products div.tableau-content div.tableau-anchor:first").removeAttr("style");
								$j("div.products div.tableau-content div.goto:first").show();
							}
							
							/*roolover sur les sous applications*/
								var liclass = $j("ul.menuright li:first").attr("class");
								$j("ul.menuright li").hover(
									function(){
										$j(this).removeClass(liclass);
										$j(this).addClass(liclass+"hover");
									},
									function(){
										$j(this).removeClass(liclass+"hover");
										$j("ul.menuright li:even").addClass(liclass);
									}
								);
								
							/*gestion de l'affichage des onglets pour le detail des applications*/			
								var html = $j("div.presentation").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='67']").hide();
								var html = $j("div.products").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='68']").hide();
								var html = $j("div.process").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='69']").hide();
								var html = $j("div.tutorials").html();
								if(html == null)
									$j("ul.tabtableaux li[titl='70']").hide();
								
							/* gestion de l'affichage des div pour les applications*/
								$j("#ctl00_mainproductspane ul.tabtableaux li").click(function(){
									var lititle = $j(this).attr("titl");
									$j("ul.tabtableaux li").removeClass("cur");
									$j(this).addClass("cur");
									$j("div.tableaux").hide();
									if(lititle == "67")
										$j("div.presentation").show();
									else if(lititle == "68")
										$j("div.products").show();
									else if(lititle == "69")
										$j("div.process").show();
									else if(lititle == "70")
										$j("div.tutorials").show();					
								});
						}
					
					/*on recup?re les pays pour la page production site*/
						var reg = new RegExp("(tabid-50)","g");
						if(reg.test(document.location)){
							/*on affiche que les contacts que l'on choisit dans le menu select dans la page production site*/
							$j("select[name='pays-contact']").change(function(){
								pays = $j(this).text();
								var pays = $j(this).val();
								$j("div.contact").hide();
								$j("div."+pays).show();
								if($j(this).val() == ""){
									$j("div.contact").each(function(){
										$j(this).show();
									});
								}
							});
						
							var list = "";
							var sep = "";
							var listtab = "";
							$j("div.div-content-tableau div.contact").each(function(){
								list = $j(this).attr("class").split("contact ");
								$j(this).removeClass(list[1]);
								/*pour les filtres on rajoute des _*/
									var reg =  new RegExp("(%20| )", "g");
									var listval = list[1].replace(reg,"_");
									$j(this).addClass("contact "+listval);
								listtab += sep+list[1];
								sep = ",";
							});
							listtab = array_unique(listtab.split(","));
							list = "<option value=\"\">All</option>";
							/*on enleve les espaces*/
								var reg =  new RegExp("(%20)", "g");
								var reg2 =  new RegExp("( )", "g");
								session = session.replace(reg," ");
								pays = session.replace(reg2,"_");
							for(var i=0;i<listtab.length;i++){
								if(listtab[i] != "" && listtab[i] != undefined){
									/*pour les filtres on rajoute des _*/
										var reg =  new RegExp("(%20| )", "g");
										var listtabval = listtab[i].replace(reg,"_");
									if(session == listtab[i])
										list += "<option selected=\"selected\" value=\""+listtabval+"\">"+listtab[i]+"</option>";
									else
										list += "<option value=\""+listtabval+"\">"+listtab[i]+"</option>";
								}
							}
							list += "<option value=\"\">All</option>";
							$j("select[name='pays-contact']").prepend(list);
							//$j("select[name='pays-contact'] option:first").attr({selected:"selected"});
							$j("select[name='pays-contact'] option:last").remove();
						}
						
						
					/*on affiche les contacts li?s ? la zone de commercialisation et du pays s?lectionn? pour les sales contact*/
						var reg = new RegExp("(tabid-49|tabid-50)","g");
						if(reg.test(document.location)){
							$j("div.sales").hide();
							$j("div.tableaux div."+zone).show();
							
							/*on affiche le formuaire de contact*/
							$j("div.contact img").click(function(){
								$j(".form-contact").empty();
								var contact = $j(this).attr("id");
								$j(this).parent("div.contact").find(".form-contact").prepend("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"600\" height=\"600\" id=\"test\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"portaldata/1/Resources/swf/contact-formulaire.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param value=\"id="+contact+"\" name=\"FlashVars\"/><embed src=\"portaldata/1/Resources/swf/contact-formulaire.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"600\" height=\"600\" name=\"test\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"  flashvars=\"id="+contact+"\"/></object>");
							});
						}
					
						
					/*on affecte les styles aux bonnes applications*/
						var reg = new RegExp("(tabid-2)","g");
						if(reg.test(document.location)){
							var h3 = new Array();
							var i= 0;
							$j("div.market_box .market_img img").each(function(){
								var text = "";
								h3[i] = appl($j(this).attr("alt"));
								i++;
							});
							var i= 0;
							$j("div.market_box").each(function(){
								var div = $j(this).html();
								var reg =  new RegExp("(###)", "g");
								div = div.replace(reg,h3[i]);
								$j(this).empty();
								$j(this).prepend(div);
								i++;
							});
						}

						
						var reg = new RegExp("(tabid-73|tabid-124|tabid-125)","g");
						if(reg.test(document.location)){
							/* on recupere les applications*/
							
							var regnow = new RegExp("(tabid-73|tabid-124|tabid-125)","g");
							var now = regnow.exec(document.location.pathname);
							if(now[0] != "tabid-125"){
								$j("div.tableaux div.tableau-content").each(function(){								
									var i = 0;
									var text = "";
									var option = "<option value=\"\" selected=\"selected\">All</option>";
									var td = new Array();
									$j(this).find("td.support-applications").each(function(){
										td[i] = $j(this).text();
										i++;
									});
									for(var j = 0;j<td.length;j++){
										td[j] = td[j].replace(/,/g,".");
										td[j] = td[j].replace(/;/g,",");
										text += td[j]+",";
									}
									td = text.split(",");
									sort(td);
									td = array_unique(td);
									for(var j = 0;j<td.length;j++){
										if(td[j] != undefined && td[j] != "")
											option += "<option value=\""+td[j]+"\">"+td[j]+"</option>";								
									}
									
									$j(this).find("select[name='applications']").empty();
									$j(this).find("select[name='applications']").prepend(option);
									$j(this).find("select[name='applications'] option[value='']").attr({selected:"selected"});

									
									$j(this).find("select[name='process-applications']").empty();
									$j(this).find("select[name='process-applications']").prepend(option);
									
									var list = "";
									var tab = "<option value=\"\">All</option>";
									$j(this).find("td.support-lang").each(function(){
										list += $j(this).text();
									});
									list = list.split(/;/g);
									list = array_unique(list);
									for(var i = 0;i<list.length;i++){
										if(list[i] != "" && list[i] != undefined)
											tab += "<option value=\""+list[i]+"\">"+list[i]+"</option>";
									}
									$j(this).find("select[name='support-country']").empty();
									$j(this).find("select[name='support-country']").prepend(tab);
									$j(this).find("select[name='support-country'] option[value='']").attr({selected:"selected"});
								});
							}
							else{
								$j("div.filtre").css("visibility","hidden");
							}							
										

							/* gestion de l'affichage des div pour les produits produits*/
								$j("#ctl00_tabpane ul.tabtableaux li").click(function(){
									var lititle = $j(this).attr("titl");
									$j("ul.tabtableaux li").removeClass("cur");
									$j(this).addClass("cur");
									$j("div.tableaux").hide();
									if(lititle == "71")
										$j("div.usehelp-support").show();
									else if(lititle == "72")
										$j("div.products").show();
								});
										
							/*on creer les bons liens*/
								$j("div.usehelp-support table tr a").click(function(){
									var reg =  new RegExp("(categories-25,26,27,28/)", "g");
									var lien = $j(this).attr("lien").replace(reg,"");
									var host = document.location.href.split("desktopdefault");
									document.location.href=host[0]+lien;
									return false;
								});
							/*on creer les bons liens*/
								$j("div.products table tr td.text a").click(function(){
									var reg =  new RegExp("(categories-25,26,27,28/)", "g");
									var lien = $j(this).attr("lien").replace(reg,"");
									var host = document.location.href.split("desktopdefault");
									document.location.href=host[0]+lien;
									return false;
								});
						}
						
					/*rollover*/
						$j("div.height table tr").hover(
							function(){
								$j(this).addClass("hover");
							},
							function(){
								$j(this).removeClass("hover");
							}
						);
						
					/*on va r?cup?rer les diff?rents h1 puis on les wrap avec le span.h1*/
						$j("h1").each(function(){
							var text = $j(this).text();
							$j(this).html("<span class=\"h1\">"+text+"</span>");
						});
						
					
					/*on rajoute des 0 par defaut pour toutes les cellules vides dans les tableaux*/
						$j("table.tableau-produit tr td a").each(function(){
							if($j(this).text() == "" || $j(this).html() == ""){
								$j(this).html("<span class=\"novisibility\">0</span>");
							}
						});
						$j("table.tableau-produit tr td.hide-process,table.tableau-produit tr td.hide-lang").each(function(){
							if($j(this).text() == "" || $j(this).html() == ""){
								$j(this).html("<span class=\"novisibility\">0</span>");
							}
						});
						$j("table.table-products tr td table.gypsum tr td").each(function(){
							if($j(this).text() == "" || $j(this).html() == "" || $j(this).html() == " " || $j(this).text() == " "){
								$j(this).html("<span class=\"novisibility\">0</span>");
							}
						});
						
						
					/*on traite la liste des pays avant de l'afficher*/
						language_init();
						
						/*si l'on clique sur un continent on affiche la liste des pays*/
							var c_continent = "";
							var c_country = "";
							var c_langue = "";
							
							$j("#ctl00_langpane span.continent").click(function(){
								c_continent = $j(this).text();
								var continent = $j(this).text().split(" ");
								$j("#ctl00_langpane div.countrylist").hide();
								$j("#ctl00_langpane span.continent").removeClass("strong");
								$j(this).addClass("strong");
								
								if($j("div."+continent[0]+" ul").attr("class") == undefined){
									$j("#ctl00_langpane div.countrylist").hide();
									$j("#ctl00_langpane span.continent").removeClass("strong");
									$j(this).addClass("strong");
									var li = "<ul class=\"country\">";
									var tablist = new Array();
									
									var countrylist = $j("div."+continent[0]+" span.countrylist").text();
									//countrylist = countrylist.substr(1,countrylist.length);
									tablist = countrylist.split(";");
									for(var i=0;i<(tablist.length-1);i++){
										if(tablist[i] != "" && tablist[i] != " "){
											if(i == Math.round((tablist.length-1)/3) || i == (Math.round((tablist.length-1)/3))*2){
												li += "</ul><ul class=\"country\">";
											}
											li += "<li onclick=\"return selectcountry(this);\">"+tablist[i]+"</li>";
										}
									}
									li += "</ul>";
									var ul = "<div class=\"country\">"+li+"</div>";
									$j("div."+continent[0]).empty();
									$j("div."+continent[0]).html(ul);
									$j("div."+continent[0]).show();				
								}
								else
									$j("div."+continent[0]).show();
							});
							
							
							$j("#ctl00_langpane #c_submit").click(function(){
								c_country = $j("#ctl00_langpane ul.country li.strong").text();
								c_langue = $j("#ctl00_langpane select").val();
								c_localisation = localisation2(trim(c_country));
								
								if(c_country == "" && c_localisation == undefined){
									$j(".languagebox h2.choice").after("<h4 style=\"font-size:1.2em;color:red;\">You must choose a location.</h4>");
									$j("div.languagebox").scrollTo(0 , { duration: 1000 });
								}
								else{
									if(c_localisation == undefined || c_localisation == "")
										c_localisation = "";
									var host = document.location.host;
									var path = document.location.pathname.substr(4,document.location.pathname.length);
									
									tue_cook("formula");
									if(cookcont1 != "" && cookloc1 != "" && cookloc1 != undefined && cookcont1 != undefined){
										cre_cook("formula",cookcont1+","+cookloc1+","+c_langue+","+cookcount1);
									}
									else{
										c_continent = $j("#ctl00_langpane span.strong").text();
										c_country = $j("#ctl00_langpane ul.country li.strong").text();
										c_langue = $j("#ctl00_langpane select").val();
										c_localisation = localisation3(c_country);
										cre_cook("formula",c_continent+","+c_localisation+","+c_langue+","+c_country);
									}
									document.location.href = "http://"+host+"/"+c_langue+"/"+path;
								}
							});
																
					/*affichage de la div concernant le choix les langues*/
						$j(".lang-btn-corps p a").click(function(){
							opacity("add");

							$j("#ctl00_langpane").slideToggle(500, function(){
								if($j(this).find("div").hasClass("hide"))
									$j(this).find("div").removeClass("hide");
								else
									$j(this).find("div").addClass("hide");
							});
							return false;
						});
						$j("#ctl00_langpane img").click(function(){
							if($j("#ctl00_langpane div").hasClass("hide"))
								$j("#ctl00_langpane div").removeClass("hide");
							else
								$j("#ctl00_langpane div").addClass("hide");
						
							$j("#ctl00_langpane").slideToggle(500);
							opacity("");
						});
			});





