/* ======================================== Popup Menus v1.0.1 Add-on for SmartMenus v6.0.2+ ======================================== (c)2008 ET VADIKOM-VASIL DINKOV ======================================== */ // === function c_show(m,e){ if(typeof c_dl=="undefined"||!c_dl)return; u=c_gO(m); if(!u||u.IN!=2)return; if(!u.PP){alert('ERROR\n\nSmartMenus 6 Popup Menus Add-on:\n\nYou are calling the "'+m+'" menu, which is not set as a popup menu in the config file.\nThe c_show() function can only be used to show menus that have "Position" set to \'popup\'.'); return}c_mV(); if(u.style.display=="block")return; c_hD();c_S[1]=u;var S,w,h,x,y,mouseX,mouseY,t,targetX,targetY,targetW,targetH,menuW,menuH,C,c,D;S=u.style; if(!u.FM){S.visibility="hidden"; u.FM=1}S.display="block"; w=u.offsetWidth; h=u.offsetHeight;c=c_gW(); if(e){D=c_qM?c_dB:c_dE; mouseX=e.pageX||e.clientX+c.x-(c_rL()?D.offsetWidth-c.w:0); mouseY=e.pageY||e.clientY+c.y;t=e.target||e.srcElement; while(t.nodeType!=1)t=t.parentNode; C=c_cA(t);targetX=C.x; targetY=C.y; targetW=t.offsetWidth; targetH=t.offsetHeight}menuW=u.offsetWidth; menuH=u.offsetHeight; x=!arguments[2]?mouseX:eval(arguments[2]); y=!arguments[3]?mouseY:eval(arguments[3]); if(c_r&&xc.x+c.w)x=c.x+c.w-w; if(hc.y+c.h)y=c.y+c.h-h; else if(h>=c.h||y