/* USE WORDWRAP TOO SEE THIS FILE
========================================
 SmartMenus v4.7 ShadowFX Add-on
========================================
 (c)2003 VASIL DINKOV- PLOVDIV, BULGARIA
========================================
 For Internet Explorer 4+ (without Mac)
========================================
 Get the menus with a great manual & examples at:
 http://www.smartmenus.org
 LEAVE THESE NOTES PLEASE - delete the comments if you want */


s_shadowSize=2;
s_shadowTransparency=15;//(0-100) 100 is for none
s_shadowColor='#808080';
s_permMenusHasShadow=true;
/*matters only if you use any permanent menu*/

// THE SERIOUS SCRIPT PLEASE DO NOT TOUCH
if(s_iE&&navigator.platform.toLowerCase().indexOf("mac")==-1){eval("function s_DropShadow(a){if(eval(\"s_mar\"+a+\"[5]\")&&!s_permMenusHasShadow)return;var e,pW,pH,i;e=document.all['s_m'+a];pW=e.offsetWidth;pH=e.offsetHeight;document.write('<div style=visibility:'+(eval(\"s_mar\"+a+\"[5]\")?\"visible\":\"hidden\")+';position:absolute;left:'+(eval(\"s_mar\"+a+\"[5]\")?eval(eval(\"s_mar\"+a+\"[3]\")):-1000)+'px;top:'+(eval(\"s_mar\"+a+\"[5]\")?eval(eval(\"s_mar\"+a+\"[2]\")):-1000)+'px;z-index:'+(eval(\"s_mar\"+a+\"[5]\")?2009:eval(\"2010+s_mar\"+a+\"[0]*2-1\"))+';width:'+(pW+s_shadowSize)+'px;height:'+(pH+s_shadowSize)+'px;font-family:sans-serif;font-size:1px id=s_shfx'+a+'>');for(i=s_shadowSize;i>0;i--){document.write('<div style=position:absolute;top:'+i+'px;left:'+i+'px;width:'+pW+'px;height:'+pH+'px;background:'+s_shadowColor+';filter:alpha(opacity='+s_shadowTransparency+')></div>')};document.write('</div>')}");eval("for(s_l=1;s_l<=s_menuCount;s_l++)s_DropShadow(s_l);");eval("function s_ov(b,c,j,t){if(s_N==b)return;s_N=b;var s,a,k,i,d;if(c.indexOf('show:')==0)s=c.indexOf(';')>-1?s_nr(c.substring(5,c.indexOf(';'))):s_nr(c.substring(5));d=c.indexOf('NOROLL')>-1||c.indexOf('SELECTED')>-1?0:1;a=eval('s_mar'+j+'[0]');if(s_HiS.length>a+1&&s_HiS[a+1][0].style.visibility!='hidden'){k=!s_HiO[a]||s_HiO[a][0]!=b?a:a+1;for(i=s_HiS.length-1;i>k;i--){s_HiS[i][1].style.visibility='hidden';s_HiS[i][0].style.visibility='hidden'}};if(a==1&&s_HiS[1]&&eval(s_HiS[1][0].id.substring(3))!=j&&!eval('s_mar'+s_HiS[1][0].id.substring(3)+'[5]')){s_HiS[1][1].style.visibility='hidden';s_HiS[1][0].style.visibility='hidden'};if(!s_keepHighlighted&&s_HiM[a-1]&&s_HiM[a-1][0].on)s_cImg(a-1,1);if(s_HiM[a+1]&&s_HiM[a+1][0].on)s_cImg(a+1,1);if(s_HiM[a]&&s_HiM[a][0].on)s_cImg(a,1);if(!s_keepHighlighted&&s_HiO[a-1]&&s_HiO[a-1][0].on)s_cBack(a-1);if(s_HiO[a+1]&&s_HiO[a+1][0].on)s_cBack(a+1);if(s_HiO[a]&&s_HiO[a][0].on)s_cBack(a);s_HiO[a]=d?[b,eval('s_mar'+j+'[4]')]:0;s_HiS[a]=[document.all['s_m'+j],document.all['s_shfx'+j]];if(d){s_HiO[a][0].style.background=s_HiO[a][1][2];s_HiO[a][0].style.color=s_HiO[a][1][4];s_HiO[a][0].on=1};if(!s)return;var r,rs,q,qs,F,Y,M,S,P,L,T,p;r=document.all['s_m'+s];rs=document.all['s_m'+s].style;q=document.all['s_shfx'+s];qs=document.all['s_shfx'+s].style;s_HiS[a+1]=[r,q];if(s_useSubImages){s_HiM[a]=d?[document.images['s_g'+s],eval('s_mar'+j+'[4]')]:0;if(s_HiM[a])s_cImg(a)};if(rs.visibility=='visible')return;F=s_dE.scrollLeft+s_dE.clientWidth;Y=s_dE.scrollTop+s_dE.clientHeight;M=eval('s_mar'+j);S=eval('s_mar'+s);p=M[4][17]?M[4][10]:0;P=b.offsetParent;L=s_nS4?b.pageX:b.offsetLeft;T=s_nS4?b.pageY:b.offsetTop;while(P){L+=P.offsetLeft;T+=P.offsetTop;P=P.offsetParent};if(T-p+s_subMenuOffsetY+r.offsetHeight+s_shadowSize>Y){rs.pixelTop=Y-r.offsetHeight-s_shadowSize;qs.pixelTop=Y-r.offsetHeight-s_shadowSize}else{rs.pixelTop=T-p+s_subMenuOffsetY;qs.pixelTop=T-p+s_subMenuOffsetY};if(L+M[1]+S[1]-M[4][10]*2-s_subMenuOffsetX+s_shadowSize<F){rs.pixelLeft=L+M[1]-M[4][10]*2-s_subMenuOffsetX;qs.pixelLeft=L+M[1]-M[4][10]*2-s_subMenuOffsetX}else{rs.pixelLeft=L-S[1]+s_subMenuOffsetX;qs.pixelLeft=L-S[1]+s_subMenuOffsetX};if(r.filters&&r.filters.length!=0){r.filters[0].apply();rs.visibility='visible';r.filters[0].play();qs.visibility='visible'}else{rs.visibility='visible';qs.visibility='visible'}};function s_hide2(){for(var i=s_HiS.length-1;i>0;i--){if(i!=1||!eval('s_mar'+s_HiS[1][0].id.substring(3)+'[5]')){s_HiS[i][1].style.visibility='hidden';s_HiS[i][0].style.visibility='hidden'};if(s_HiO[i])s_cBack(i);if(s_HiM[i])s_cImg(i,1)};s_HiS=[''];s_HiO=[''];s_HiM=[''];s_N=null};function s_show(a,e){var n=s_nr(a);if(eval('s_mar'+n+'[0]')!=1){alert('ERROR:\\nYou are calling the \"'+a+'\" menu, which is not a first level menu!\\nYou can only call first level menus with the s_show() function.');return};if(eval('s_mar'+n+'[5]')){alert('ERROR:\\nYou are calling the \"'+a+'\" menu, which is a permanent menu (defined with the s_add() function for this menu)!');return};clearTimeout(s_TIM);var r,rs,q,qs,F,Y,A,mouseX,mouseY,cL,cT;r=document.all['s_m'+n];rs=document.all['s_m'+n].style;q=document.all['s_shfx'+n];qs=document.all['s_shfx'+n].style;if(rs.visibility=='visible')return;s_hide2();s_HiS[1]=[r,q];e=event?event:e;mouseX=e.clientX+s_dE.scrollLeft;mouseY=e.clientY+s_dE.scrollTop;F=s_dE.scrollLeft+s_dE.clientWidth;Y=s_dE.scrollTop+s_dE.clientHeight;A=eval('s_mar'+n);cL=typeof(A[3])!='number'&&A[3]==''?mouseX:eval(A[3]);cT=typeof(A[2])!='number'&&A[2]==''?mouseY:eval(A[2]);if(cT+r.offsetHeight+s_shadowSize>Y){rs.pixelTop=Y-r.offsetHeight-s_shadowSize;qs.pixelTop=Y-r.offsetHeight-s_shadowSize}else{rs.pixelTop=cT;qs.pixelTop=cT};if(cL+A[1]+s_shadowSize<F){rs.pixelLeft=cL;qs.pixelLeft=cL}else{rs.pixelLeft=F-A[1]-s_shadowSize;qs.pixelLeft=F-A[1]-s_shadowSize};if(r.filters&&r.filters.length!=0){r.filters[0].apply();rs.visibility='visible';r.filters[0].play();qs.visibility='visible'}else{rs.visibility='visible';qs.visibility='visible'}}")};s_AddOnLoaded=true;