function Zoom(id,path_store) { window.open('http://www.adventice.com/store/photo.php3?id='+id+'&path_store='+path_store, 'Adventice', 'toolbar=false,directories=false,status=false,menubar=false,scrollbars=1,resizable=1,width=500,height=600'); } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function nouvelle_fenetre(src,name,w,h) { size= ",width=" + w + ",height=" + h browser=window.open(src,name,"scrollbars=no,resizable=no,toolbar=no,status=no,menubar=no,location=no,directories=no"+size) window.onerror = null; //browser.moveTo ((screen.availWidth - 300)/2,(screen.availHeight - 315)/2); //browser.moveTo (10,20); browser.moveTo ((screen.availWidth - 400),20); browser.focus(); } function SmallWindow(p_url, p_width, p_height) { window.open(p_url,'TOPWIN', 'menubar=no,status=no,location=no,resizable=no,scrollbars=yes,directories=no,width=' + p_width + ',height=' + p_height); } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 1) { curDrag = MM_findObj(objName); if (!curDrag) return false; if (!document.allLayers) { document.allLayers = new Array(); with (document) if (NS4) { for (i=0; i document.MM_maxZ) document.MM_maxZ = aLayerZ; var isVisible = (((NS4)?aLayer.visibility:aLayer.style.visibility).indexOf('hid') == -1); if (aLayer.MM_dragOk != null && isVisible) with (aLayer) { var parentL=0; var parentT=0; if (NS6) { parentLayer = aLayer.parentNode; while (parentLayer != null && parentLayer.style.position) { parentL += parseInt(parentLayer.offsetLeft); parentT += parseInt(parentLayer.offsetTop); parentLayer = parentLayer.parentNode; } } else if (IE) { parentLayer = aLayer.parentElement; while (parentLayer != null && parentLayer.style.position) { parentL += parentLayer.offsetLeft; parentT += parentLayer.offsetTop; parentLayer = parentLayer.parentElement; } } var tmpX=mouseX-(((NS4)?pageX:((NS6)?parseInt(style.left):style.pixelLeft)+parentL)+MM_hLeft); var tmpY=mouseY-(((NS4)?pageY:((NS6)?parseInt(style.top):style.pixelTop) +parentT)+MM_hTop); if (String(tmpX)=="NaN") tmpX=0; if (String(tmpY)=="NaN") tmpY=0; var tmpW = MM_hWidth; if (tmpW <= 0) tmpW += ((NS4)?clip.width :offsetWidth); var tmpH = MM_hHeight; if (tmpH <= 0) tmpH += ((NS4)?clip.height:offsetHeight); if ((0 <= tmpX && tmpX < tmpW && 0 <= tmpY && tmpY < tmpH) && (maxDragZ == null || maxDragZ <= aLayerZ)) { curDrag = aLayer; maxDragZ = aLayerZ; } } } if (curDrag) { document.onmousemove = MM_dragLayer; if (NS4) document.captureEvents(Event.MOUSEMOVE); curLeft = (NS4)?curDrag.left:(NS6)?parseInt(curDrag.style.left):curDrag.style.pixelLeft; curTop = (NS4)?curDrag.top:(NS6)?parseInt(curDrag.style.top):curDrag.style.pixelTop; if (String(curLeft)=="NaN") curLeft=0; if (String(curTop)=="NaN") curTop=0; MM_oldX = mouseX - curLeft; MM_oldY = mouseY - curTop; document.MM_curDrag = curDrag; curDrag.MM_SNAPPED=false; if(curDrag.MM_toFront) { eval('curDrag.'+((NS4)?'':'style.')+'zIndex=document.MM_maxZ+1'); if (!curDrag.MM_dropBack) document.MM_maxZ++; } retVal = false; if(!NS4&&!NS6) event.returnValue = false; } } else if (theEvent == 'mousemove') { if (document.MM_curDrag) with (document.MM_curDrag) { var mouseX = (NS)?objName.pageX : event.clientX + document.body.scrollLeft; var mouseY = (NS)?objName.pageY : event.clientY + document.body.scrollTop; newLeft = mouseX-MM_oldX; newTop = mouseY-MM_oldY; if (MM_bL!=null) newLeft = Math.max(newLeft,MM_bL); if (MM_bR!=null) newLeft = Math.min(newLeft,MM_bR); if (MM_bT!=null) newTop = Math.max(newTop ,MM_bT); if (MM_bB!=null) newTop = Math.min(newTop ,MM_bB); MM_LEFTRIGHT = newLeft-MM_startL; MM_UPDOWN = newTop-MM_startT; if (NS4) {left = newLeft; top = newTop;} else if (NS6){style.left = newLeft; style.top = newTop;} else {style.pixelLeft = newLeft; style.pixelTop = newTop;} if (MM_dragJS) eval(MM_dragJS); retVal = false; if(!NS) event.returnValue = false; } } else if (theEvent == 'mouseup') { document.onmousemove = null; if (NS) document.releaseEvents(Event.MOUSEMOVE); if (NS) document.captureEvents(Event.MOUSEDOWN); //for mac NS if (document.MM_curDrag) with (document.MM_curDrag) { if (typeof MM_targL =='number' && typeof MM_targT == 'number' && (Math.pow(MM_targL-((NS4)?left:(NS6)?parseInt(style.left):style.pixelLeft),2)+ Math.pow(MM_targT-((NS4)?top:(NS6)?parseInt(style.top):style.pixelTop),2))<=MM_tol) { if (NS4) {left = MM_targL; top = MM_targT;} else if (NS6) {style.left = MM_targL; style.top = MM_targT;} else {style.pixelLeft = MM_targL; style.pixelTop = MM_targT;} MM_SNAPPED = true; MM_LEFTRIGHT = MM_startL-MM_targL; MM_UPDOWN = MM_startT-MM_targT; } if (MM_everyTime || MM_SNAPPED) eval(MM_dropJS); if(MM_dropBack) {if (NS4) zIndex = MM_oldZ; else style.zIndex = MM_oldZ;} retVal = false; if(!NS) event.returnValue = false; } document.MM_curDrag = null; } if (NS) document.routeEvent(objName); } return retVal; } /* Gestion des menus */ function menuDisplay ( id , auto ) { if ( document.getElementById('menuSubCat'+id).style.display == 'block' ) { if ( ! auto ) { document.getElementById('menuSubCat'+id).style.display = 'none' ; } } else { document.getElementById('menuSubCat'+id).style.display = 'block' ; } } function menuDisplayInf ( id , auto ) { if ( document.getElementById('menuSubCatInf'+id).style.display == 'block' ) { if ( ! auto ) { document.getElementById('menuSubCatInf'+id).style.display = 'none' ; } } else { document.getElementById('menuSubCatInf'+id).style.display = 'block' ; } } function categ8_menu_over (id) { document.getElementById('categ8_lien_'+id).src = '/images/store/rayons/categ8_lien_'+id+'_on.gif'; document.getElementById('categ8_zoom').src = '/images/store/rayons/categ8_zoom_'+id+'.jpg'; } function categ8_menu_out (id) { document.getElementById('categ8_lien_'+id).src = '/images/store/rayons/categ8_lien_'+id+'_off.gif'; document.getElementById('categ8_zoom').src = '/images/store/rayons/categ8_zoom_defaut.jpg'; } function ShowcaseAfficher(id,itemid) { var i; for(i=0;i<10;i++) { if (document.getElementById('showcase-'+id+'-'+i)) document.getElementById('showcase-'+id+'-'+i).style.display = 'none'; } document.getElementById('showcase-'+id+'-'+itemid).style.display = 'block'; } function pop0(contenu) {document.getElementById("bulle").innerHTML="
"+contenu+"
";} function suivre_souris0(e) {var decal_x = 15;var decal_y = 0; if(navigator.appName=="Microsoft Internet Explorer") {var x=event.x+document.body.scrollLeft;var y=event.y+document.body.scrollTop;} else {var x=e.pageX;var y=e.pageY;} document.getElementById("bulle").style.left=x+decal_x;document.getElementById("bulle").style.top=y+decal_y;} function disparaitre0() {document.getElementById("bulle").innerHTML='';}