// jNav2.js
(function(){
function aa(a,b){var z=this;a=z.a=bb(a,'string')?document.getElementById(a):a;z.aa(a);}
aa.prototype.aa=function(a){var z=this;for(var y=0;y<a.childNodes.length;y++){var b=a.childNodes[y];if(b.nodeType!=1||!b.tagName.match(/^div$/i)){continue}ua('mouseover',aa.prototype.ac,b);ua('mouseout',aa.prototype.ad,b);b.className+=' menuItem';z.ab(b)}};
aa.prototype.ab=function(a){var z=this,b,c;for(var y=0;y<a.childNodes.length;y++){var d=a.childNodes[y];if(d.nodeType==1){if(d.tagName.match(/^a$/i)&&!b){b=d}else if(d.tagName.match(/^div$/i)&&!c){c=d}}}if(b){b.className+=' menuLabel'}if(c){c.className=' subMenu';z.aa(c)}};
aa.prototype.ac=function(){var c=this;if(c){c.className+=' active'}};
aa.prototype.ad=function(a){a=a||window.event;var b=this,d=a.toElement||a.relatedTarget;while(d){if(d==b){return;}d=d.parentNode||undefined}b.className=b.className.replace(/ active/g,'')};
function bb(a,b){return(typeof(a)==b?1:0);}
function bf(a,b){if(a.currentStyle){return a.currentStyle[b];}var c;try{c=document.defaultView.getComputedStyle(a,null).getPropertyValue(b.replace(/[A-Z]/g,function(d){return '-'+d.toLowerCase();}));}catch(e){c=a.style[b];}return c;}
function ua(a,b,c){var d='on';if(!c){c=window;}if(typeof(a)=='string'){a=[a];}for(var f in a){var e=a[f];if(c.addEventListener){c.addEventListener(e,b,0);}else if(c.attachEvent){c.attachEvent(d+e,b);}else{c[d+e]=bb(c[d+e],'function')?function(ev){c[d+e](ev);b(ev);}:b;}}}
function ub(a,c,b){if(!b){b=window;}if(b.removeEventListener){b.removeEventListener(a,c,0);}else if(b.detachEvent){b.detachEvent('on'+a,c);}else{b['on'+a]=null;}}
function uc(a,b){var c=a.cloneNode(b),ev=['onclick','onmouseover','onmouseout'],d=function(e,f){for(var y=0;y<ev.length;y++){var x=ev[y];f[x]=e[x];}if(f.childNodes.length>0){for(var y=0;y<f.childNodes.length;y++){d(e.childNodes[y],f.childNodes[y]);}}};d(a,c);return c;}
if(!window.jeremy){window.jeremy={};}
if(!window.jeremy.addEvent){window.jeremy.addEvent=ua;}
if(!window.jeremy.removeEvent){window.jeremy.removeEvent=ub;}
if(!window.jeremy.superClone){window.jeremy.superClone=uc;}
window.jeremy.jNav2=aa;
})();