function getLayer(name,wo){if(wo==null||getLayer.arguments[1]=="")wo=window.self;if(parseInt(new BrowserManager().version)==4){if(new BrowserManager().isNS)return findLayer(name,wo.document);else if(new BrowserManager().isMSIE)return wo.document.all[name];}if((new BrowserManager().isNS&&parseInt(new BrowserManager().version)>=6)||new BrowserManager().isMSIE||new BrowserManager().isOpera||new BrowserManager().isMozilla||new BrowserManager().isSafari){return wo.document.getElementById(name);}return null;}function findLayer(name,doc){var i,layer;for(i=0;i<doc.layers.length;i++){layer=doc.layers[i];if(layer.name==name)return layer;if(layer.document.layers.length>0)if((layer=findLayer(name,layer.document))!=null)return layer;}return null;}function hideLayer(lo){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4){lo.visibility="hide";return lo.visibility=="hide";}else if((new BrowserManager().isMSIE&&parseInt(new BrowserManager().version)>=4)||new BrowserManager().isNS&&parseInt(new BrowserManager().version)>=6||new BrowserManager().isOpera||new BrowserManager().isMozilla||new BrowserManager().isSafari){lo.style.visibility="hidden";return lo.style.visibility=="hidden";}}return null;}function showLayer(lo){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4){lo.visibility="show";return lo.visibility=="show";}else if((new BrowserManager().isMSIE&&parseInt(new BrowserManager().version)>=4)||new BrowserManager().isNS&&parseInt(new BrowserManager().version)>=6||new BrowserManager().isOpera||new BrowserManager().isMozilla||new BrowserManager().isSafari){lo.style.visibility="visible";return lo.style.visibility=="visible";}}return null;}function inheritLayer(lo){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4){lo.visibility="inherit";return lo.visibility=="inherit";}else if((new BrowserManager().isMSIE&&parseInt(new BrowserManager().version)>=4)||(new BrowserManager().isNS&&parseInt(new BrowserManager().version)>=6)||new BrowserManager().isOpera||new BrowserManager().isMozilla||new BrowserManager().isSafari){lo.style.visibility="inherit";return lo.style.visibility=="inherit";}}return null;}function getLayerLeft(lo){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)return parseInt(lo.left);else if((new BrowserManager().isMSIE&&parseInt(new BrowserManager().version)>=4)||(new BrowserManager().isNS&&parseInt(new BrowserManager().version)>=6)||new BrowserManager().isOpera||new BrowserManager().isMozilla||new BrowserManager().isSafari)return parseInt(lo.style.left);}return null}function setLayerLeft(lo,newLeft){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)lo.left=newLeft;else if((new BrowserManager().isMSIE&&parseInt(new BrowserManager().version)>=4)||(new BrowserManager().isNS&&parseInt(new BrowserManager().version)>=6)||new BrowserManager().isOpera||new BrowserManager().isMozilla||new BrowserManager().isSafari)lo.style.left=parseInt(newLeft)+"px";}return getLayerLeft(lo)==newLeft;}function getLayerTop(lo){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)return parseInt(lo.top);else if((new BrowserManager().isMSIE&&parseInt(new BrowserManager().version)>=4)||(new BrowserManager().isNS&&parseInt(new BrowserManager().version)>=6)||new BrowserManager().isOpera||new BrowserManager().isMozilla||new BrowserManager().isSafari)return parseInt(lo.style.top);}return null;}function setLayerTop(lo,newTop){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)lo.top=newTop;else if((new BrowserManager().isMSIE&&parseInt(new BrowserManager().version)>=4)||(new BrowserManager().isNS&&parseInt(new BrowserManager().version)>=6)||new BrowserManager().isOpera||new BrowserManager().isMozilla||new BrowserManager().isSafari)lo.style.top=parseInt(newTop)+"px";}return getLayerTop(lo)==newTop;}function getLayerWidth(lo){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)return parseInt(lo.clip.right-lo.clip.left);else{if(lo.clientWidth)return parseInt(lo.clientWidth);else if(lo.offsetWidth)return parseInt(lo.offsetWidth);}}return null}function setLayerWidth(lo,newWidth){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)lo.resizeTo(newWidth,getLayerHeight(lo));else lo.style.width=parseInt(newWidth)+"px";}return getLayerWidth(lo)==newWidth;}function getLayerHeight(lo){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)return parseInt(lo.clip.bottom-lo.clip.top);else{if(lo.clientHeight)return parseInt(lo.clientHeight);else if(lo.offsetHeight)return parseInt(lo.offsetHeight);}}return null}function setLayerHeight(lo,newHeight){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)lo.resizeTo(getLayerWidth(lo),newHeight);else lo.style.height=parseInt(newHeight)+"px";}return getLayerHeight(lo)==newHeight;}function moveLayerTo(lo,x,y){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4)lo.moveTo(x,y);else{lo.style.left=parseInt(x)+"px";lo.style.top=parseInt(y)+"px";}}return(getLayerLeft(lo)==x&&getLayerTop(lo)==y);}function layerWrite(lo,txt,b_NS4resize){if(lo!=null){if(new BrowserManager().isNS&&parseInt(new BrowserManager().version)==4){var widthBeforeWritting=getLayerWidth(lo);var heightBeforeWritting=getLayerHeight(lo);var lyr=lo.document;lyr.write(txt);lyr.close();if(b_NS4resize)lo.resizeTo(widthBeforeWritting,heightBeforeWritting);}else lo.innerHTML=txt;}}function scrollerLayer(name,lo,scrollForX,scrollForY,increment,delay){if(scrollerLayer.arguments.length!=scrollerLayer.length){alert('Méthode scrollerLayer : Paramètres manquants. '+scrollerLayer.arguments.length+' fournis, contre '+scrollerLayer.length+' attendus');return null;}this.name=name;this.lo=lo;this.scrollForX=scrollForX;this.scrollForY=scrollForY;this.dirY=null;this.dirX=null;this.increment=increment;this.delay=delay;this.newTop=null;this.newLeft=null;this.layer_left=null;this.layer_top=null;this.processScrolling=null;this.isScrolling=false;this.launchScroll=launchScrollLayer;this.doScroll=doScroll;if(!increment)this.increment=10;if(!delay)this.delay=20;this.layer_left=getLayerLeft(lo);this.layer_top=getLayerTop(lo);}function launchScrollLayer(){if(this.processScrolling!=null)this.processScrolling=null;if(this.scrollForX>this.layer_left)this.dirX=4;if(this.scrollForX>this.layer_left)this.dirX=6;if(this.scrollForY<this.layer_top)this.dirY=8;if(this.scrollForY>this.layer_top)this.dirY=2;this.newLeft=getLayerLeft(this.lo);this.newTop=getLayerTop(this.lo);this.doScroll();this.isScrolling=true;}function doScroll(){if(this.processScrolling!=null)this.processScrolling=null;if(this.dirY==8)if(this.newTop-this.scrollForY<this.increment)this.increment=this.newTop-this.scrollForY;if(this.dirY==2)if(this.scrollForY-this.newTop<this.increment)this.increment=this.scrollForY-this.newTop;if(this.dirX==4)if(this.newLeft-this.scrollForX<this.increment)this.increment=this.newLeft-this.scrollForX;if(this.dirX>=6)if(this.scrollForX-this.newLeft>this.increment)this.increment=this.scrollForX-this.newLeft;if(this.dirY==8)this.newTop=this.newTop-this.increment;if(this.dirY==2)this.newTop=this.newTop+this.increment;if(this.dirX==4)this.newLeft=this.newLeft-this.increment;if(this.dirX>=6)this.newLeft=this.newLeft+this.increment;if(this.dirX!=null||this.dirY!=null)moveLayerTo(this.lo,this.newLeft,this.newTop);if(((this.dirY==8)&&(this.newTop>=this.scrollForY))||((this.dirY==2)&&(this.newTop<=this.scrollForY)))this.processScrolling=window.setTimeout(this.name+'.doScroll()',this.delay);if(((this.dirX==4)&&(this.newLeft>=this.scrollForX))||((this.dirX>=6)&&(this.newLeft<=this.scrollForX)))this.processScrolling=window.setTimeout(this.name+'.doScroll()',this.delay);if((this.dirX==null&&this.dirY==null)||(this.newLeft==this.scrollForX)&&(this.newTop==this.scrollForY)){this.isScrolling=false;window.clearTimeout(this.processScrolling);this.processScrolling=null;}}