﻿var Timer_Izi_CloseSsMenuPopUp,nav=cherchenav();function Izi_OpenSsMenuPopUp(j,g,c,i){var a=0,b=0,h=d_dm[0],e=h.m[c];if(e){var f=_dmni(e);if(f.style.visibility!="visible"){SsMenuIco=document.getElementById(j);if(SsMenuIco){Coord=Izi_findPos(SsMenuIco);switch(i){case "left":var d=f.style.width.replace("px","");if(d>0){a=Coord[0]-d;b=Coord[1]}break;case "right":a=Coord[0]+SsMenuIco.width;b=Coord[1];break;case "bottom":a=Coord[0];b=Coord[1]+SsMenuIco.height+5}}dm_ext_hideAllSubmenus(0);dm_popup(0,c,0,g,a,b)}}}function Izi_CloseSsMenuPopUp(b){var c=d_dm[0],a=c.m[b];if(a){clearTimeout(a.hideTimer);a.hideTimer=setTimeout("dm_popup_close(0,"+b+")",1e3)}}function Izi_findPos(a){var b=curtop=0;if(a.offsetParent)do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent);return [b,curtop]}function cherchenav(){var a,c=document.layers,b=document.all,d=document.getElementById&&!document.all,e=window.opera;if(d)a="ns6";else if(c)a="ns4";else if(e)a="opera";else if(b)a="ie4";return a}var PosCharteMemoStyleMarginLeft="",PosCharteMemoStyleLeft="",PosCharteMemoStyleMarginTop="",PosCharteMemoStyleTop="";function LockNegPosCharte(){try{var a=document.getElementById("PosCharte");if(a!=null){if(PosCharteMemoStyleMarginLeft=="")PosCharteMemoStyleMarginLeft=a.style.marginLeft;if(PosCharteMemoStyleLeft=="")PosCharteMemoStyleLeft=a.style.left;if(document.body.clientWidth<a.offsetWidth&&PosCharteMemoStyleLeft=="50%"){a.style.marginLeft="0px";a.style.left="0px"}else{a.style.marginLeft=PosCharteMemoStyleMarginLeft;a.style.left=PosCharteMemoStyleLeft}if(PosCharteMemoStyleMarginTop=="")PosCharteMemoStyleMarginTop=a.style.marginTop;if(PosCharteMemoStyleTop=="")PosCharteMemoStyleTop=a.style.top;if(document.body.clientHeight<a.offsetHeight&&PosCharteMemoStyleTop=="50%"){a.style.marginTop="0px";a.style.top="0px"}else{a.style.marginTop=PosCharteMemoStyleMarginTop;a.style.top=PosCharteMemoStyleTop}}}catch(b){}}
