YAHOO.namespace("product");var zIndexPopup=3;function getVariationsTable(){var c=document.getElementById("variations2");if(!c){YAHOO.util.Event.onContentReady("variations2",function(){var d=YAHOO.util.Dom.getElementsByClassName("proVariationinputquantity");for(var e=0;e<d.length;e++){document.getElementById("qtyInput2_"+(e+1)).value=d[e].value}});url=removeDomainName(urlVariationsTable);ajaxLoading("mainPopBd");YAHOO.util.Connect.asyncRequest("GET",url,variationsTablePopCallback);YAHOO.main.mainPop.cfg.refresh();YAHOO.main.mainPop.cfg.resetProperty("width");YAHOO.main.mainPop.cfg.setProperty("fixedcenter",true);if(navigator.appName!="Microsoft Internet Explorer"){YAHOO.main.mainPop.cfg.resetProperty("underlay");YAHOO.main.mainPop.cfg.setProperty("underlay","shadow");YAHOO.main.mainPop.sizeUnderlay()}if(YAHOO.main.mainPop==null){initMainPop()}YAHOO.main.mainPop.show()}else{var a=YAHOO.util.Dom.getElementsByClassName("proVariationinputquantity");for(var b=0;b<a.length;b++){document.getElementById("qtyInput2_"+(b+1)).value=a[b].value}document.getElementById("mainPop_c").style.visibility="visible"}}var popCallback={success:function(a){document.getElementById("mainPopBd").innerHTML=a.responseText}};var variationsTablePopCallback={success:function(a){document.getElementById("mainPopBd").innerHTML=a.responseText;document.getElementById("mainPop").style.width="980px";if(popbuttxt&&popbuttxt!=""){document.getElementById("proVarTop").value=popbuttxt;document.getElementById("proVarBot").value=popbuttxt}}};var arrayTitle=new Array();var arrayData=new Array();var arrayAlt=new Array();var nbVars=0;var currentScroll=0;function scrollVarTable(b){if((currentScroll+b)<0||(currentScroll+b+2)>arrayTitle.length){return}currentScroll+=b;var e=arrayTitle.length-currentScroll-2;var d=new ClassDivObject("scrollCursorTop");var c=new ClassDivObject("scrollCursorBottom");var a=0;if(e==0){a=190}else{if(e==1){a=(1-1/(arrayTitle.length-2))*190}else{a=(1-e/(arrayTitle.length-2))*190}}if(a<40){a=40}cursor1Left=d.getStyle().left=a+"px";cursor2Left=c.getStyle().left=a+"px";displayTableInfo()}function displayTableInfo(){if(document.getElementById("tdTitleVar1").getElementsByTagName("img")[0]!=null){document.getElementById("tdTitleVar1").getElementsByTagName("img")[0].src=arrayTitle[currentScroll];document.getElementById("tdTitleVar1").getElementsByTagName("img")[0].alt=arrayAlt[currentScroll]}else{document.getElementById("tdTitleVar1").innerHTML=arrayTitle[currentScroll]}if(document.getElementById("tdTitleVar2").getElementsByTagName("img")[0]!=null){document.getElementById("tdTitleVar2").getElementsByTagName("img")[0].src=arrayTitle[currentScroll+1];document.getElementById("tdTitleVar2").getElementsByTagName("img")[0].alt=arrayAlt[currentScroll+1]}else{document.getElementById("tdTitleVar2").innerHTML=arrayTitle[currentScroll+1]}for(var a=1;a<arrayData.length;a++){document.getElementById("tdDataVar1_"+a).innerHTML=arrayData[a][currentScroll];document.getElementById("tdDataVar2_"+a).innerHTML=arrayData[a][currentScroll+1]}}var currentCursor=null;var otherCursor=null;var currentContainer=null;var dragging=false;var ie=document.all;var nn6=document.getElementById&&!document.all;function mouseup(a){if(currentCursor!=null){currentCursor.cursor="hand"}dragging=false;currentCursor=null;otherCursor=null;currentContainer=null;document.onmousemove=null}document.onmouseup=mouseup;function movemouse(c){if(dragging==true&&currentCursor!=null){var a=nn6?tx+c.clientX-x:tx+event.clientX-x;if(a<40){a=40}else{if(a>190){a=190}}currentCursor.style.left=a+"px";otherCursor.style.left=a+"px";var b=Math.round(a/(190/(arrayTitle.length-2)));if(b<0){b=0}else{if(b>(arrayTitle.length-2)){b=arrayTitle.length-2}}if(b!=currentScroll){currentScroll=b;displayTableInfo()}return false}else{document.onmousemove=null}}function selectcursor(b){var c=nn6?b.target:event.srcElement;var a=nn6?"HTML":"BODY";while(c.tagName!=a&&c.className!="scrollCursor"){c=nn6?c.parentNode:c.parentElement}if(c.className=="scrollCursor"){currentCursor=c;if(currentCursor.id=="scrollCursorTop"){otherCursor=document.getElementById("scrollCursorBottom")}else{otherCursor=document.getElementById("scrollCursorTop")}dragging=true;tx=parseInt(currentCursor.style.left+0);ty=parseInt(currentCursor.style.top+0);x=nn6?b.clientX:event.clientX;y=nn6?b.clientY:event.clientY;document.onmousemove=movemouse;currentCursor.cursor="move";return false}}document.onmousedown=selectcursor;function showHideTabsProduct(){var b=document.getElementById("tabsBlock").getElementsByTagName("div");if(this.id=="tab1"||this.id=="tab2"){for(var a=0;a<b.length;a++){b[a].className="tabOff"}this.className="tabOn";if(this.id=="tab1"){document.getElementById("spec2").style.display="none";document.getElementById("spec1").style.display="block"}if(this.id=="tab2"){document.getElementById("spec1").style.display="none";document.getElementById("spec2").style.display="block"}}else{for(var a=0;a<b.length;a++){if(b[a].className!="clear"){b[a].className="productTabOff"}}this.className="productTabOn";var e=(this.id=="productDescTab")?"hiddenOff":"hiddenOn";var d=(this.id=="productTechInfosTab")?"hiddenOff":"hiddenOn";var c=(this.id=="productCertificationsTab")?"hiddenOff":"hiddenOn";if(document.getElementById("productDesc")){document.getElementById("productDesc").className=e}if(document.getElementById("productTechInfos")){document.getElementById("productTechInfos").className=d}if(document.getElementById("productCertifications")){document.getElementById("productCertifications").className=c}}}function initTabs(){if(document.getElementById("tabsBlock")){var b=document.getElementById("tabsBlock").getElementsByTagName("div");if(b.length<2){b[0].style.cursor="default"}else{for(var a=0;a<b.length;a++){if(b[a].className!="clear"){b[a].onclick=showHideTabsProduct}}}}}function brandResize(){var a=document.getElementById("brandContent");if(a.getElementsByTagName("img")[0]){var b=a.getElementsByTagName("img")[0]}else{var b=a.getElementsByTagName("h2")[0]}b.style.bottom=-6-(b.offsetHeight)+"px";document.getElementById("dottedBlock").style.marginTop=(b.offsetHeight)-6+"px"};