jQuery(document).ready(function(){$("a.thumbnail").fancybox()});function showCompte(){if(document.getElementById("compte_content").style.display=="block"){document.getElementById("compte_content").style.display="none"}else{document.getElementById("compte_content").style.display="block"}}function getPassword(){alert("here")}function roll(a){document.recherche.img1.src=a}function rollOverProduct(a,b){if(b){document.getElementById("product_name_title"+a).className="productRollOut"}else{document.getElementById("product_name_title"+a).className=""}}function showCategory(){if(document.getElementById("div_categories").style.display=="block"){document.getElementById("div_categories").style.display="none";document.getElementById("closeCat").style.display="none"}else{document.getElementById("div_categories").style.display="block";document.getElementById("closeCat").style.display="block"}}function expandField(b,a){if(a){b.rows="30"}else{b.rows="2"}}function trim(a){return a.replace(/^\s+/g,"").replace(/\s+$/g,"")}String.prototype.nl2br=function(){var a="<br />";return(this+"").replace(/([^>]?)\n/g,"$1"+a+"\n")};var menuStatus=true;Global=function(){this.loading=function(a){switch(a){case true:document.getElementById("panel_detail_cache").style.display="inline";case false:document.getElementById("panel_detail_cache").style.display="none"}};this.grabFormElements=function(c){var a=c.elements;var b="";for(i=0;i<a.length;i++){if(a[i].type=="checkbox"){if(a[i].checked==true){b+="&"+a[i].name+"="+a[i].value}}else{b+="&"+a[i].name+"="+a[i].value}}return b};this.checkValue=function(a){if(a.checked==true){return a.value}return false};this.validateInput=function(b){switch(b.getAttribute("required")){case"true":if(b.value==""){this.addClass(b,"required");var a=document.getElementById(b.id+"_label");if(a!=null){this.addClass(a,"required")}}else{this.delClass(b,"required");var a=document.getElementById(b.id+"_label");if(a!=null){this.delClass(a,"required")}}break}};this.hideAllPopups=function(){document.getElementById("cache").style.display="none";document.getElementById("popup_network_printing").style.display="none"};this.printToNetworkDialog=function(){this.hideAllPopups();document.getElementById("cache").style.display="inline";document.getElementById("popup_network_printing").style.display="inline"};this.addClass=function(a,b){a.className+=" "+b};this.delClass=function(a,c){var b=new RegExp(c,"g");a.className=a.className.replace(b,"")};this.getXMLValue=function(d,c,e){if(e==true){var f=d.indexOf("<"+c+"><![CDATA[");var a=d.indexOf("]]></"+c+">");var b=("<"+c+"><![CDATA[").length}else{var f=d.indexOf("<"+c+">");var a=d.indexOf("</"+c+">");var b=("<"+c+">").length}if(f!=-1&&a!=-1){f=f+b;return d.substring(f,a)}else{return""}};this.getXMLNodesArray=function(d,e){var b=new Array();var c=("<"+e+">").length;var f;var a;f=d.indexOf("<"+e+">");a=d.indexOf("</"+e+">");while(a!=-1){f=f+c;b[b.length]=d.substring(f,a);d=d.substring(a+c+1);f=d.indexOf("<"+e+">");a=d.indexOf("</"+e+">")}return b};this.isTemplate=function(b,a){if(a.id.match(/Template/)!=null){return true}if(a.parentNode.parentNode.id.match(/Template/)!=null){return true}return false};this.toggleMenu=function(){if(!menuStatus==false){document.getElementById("menu").className="minimized";document.getElementById("expand_handle").className="minimized";document.getElementById("content").className="maximized";document.getElementById("expand_handle_img").src="/img/misc/handle_right_off.png";document.getElementById("expand_handle_img").setAttribute("overpict","/img/misc/handle_right_on.png");document.getElementById("expand_handle_img").setAttribute("outpict","/img/misc/handle_right_off.png")}else{document.getElementById("menu").className="maximized";document.getElementById("expand_handle").className="maximized";document.getElementById("content").className="minimized";document.getElementById("expand_handle_img").src="/img/misc/handle_left_off.png";document.getElementById("expand_handle_img").setAttribute("overpict","/img/misc/handle_left_on.png");document.getElementById("expand_handle_img").setAttribute("outpict","/img/misc/handle_left_off.png")}menuStatus=!menuStatus};this.toggleSubMenu=function(b,a){var c=b.parentNode.getElementsByTagName("div");if(c[1].style.display!="none"){c[1].style.display="none";this.addCookieValue(a)}else{c[1].style.display="";this.removeCookieValue(a)}};this.setMenu=function(){var d=this.getCookie("menu");if(d==null){d=""}var a=d.split(",");for(var c=0;c<a.length;c++){var b=document.getElementById("submenu"+a[c]);if(b!=null){b.style.display="none"}}};this.addCookieValue=function(a){var b=this.getCookie("menu");if(b==null){b=""}b+=a+",";this.setCookie("menu",b,365)};this.removeCookieValue=function(b){var c=this.getCookie("menu");if(c==null){c=""}var a=new RegExp(b+",","g");c=c.replace(a,"");this.setCookie("menu",c,365)};this.setCookie=function(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"};this.getCookie=function(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null};this.delCookie=function(a){setCookie(a,"",-1)}};global=new Global();function GetXmlHttpObject(){var a=null;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}var Utf8={encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var e=0;e<b.length;e++){var d=b.charCodeAt(e);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a},decode:function(a){var b="";var d=0;var e=c1=c2=0;while(d<a.length){e=a.charCodeAt(d);if(e<128){b+=String.fromCharCode(e);d++}else{if((e>191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}};
