if(typeof dd_domreadycheck=="undefined")var dd_domreadycheck=false;var anylinkcssmenu={menusmap:{},preloadimages:[],effects:{delayhide:200,shadow:{enabled:true,opacity:.3,depth:[5,5]},fade:{enabled:true,duration:500}},dimensions:{},getoffset:function(e,t){return e.offsetParent?e[t]+this.getoffset(e.offsetParent,t):e[t]},getoffsetof:function(e){e._offsets={left:this.getoffset(e,"offsetLeft"),top:this.getoffset(e,"offsetTop"),h:e.offsetHeight}},getdimensions:function(e){this.dimensions={anchorw:e.anchorobj.offsetWidth,anchorh:e.anchorobj.offsetHeight,docwidth:(window.innerWidth||this.standardbody.clientWidth)-20,docheight:(window.innerHeight||this.standardbody.clientHeight)-15,docscrollx:window.pageXOffset||this.standardbody.scrollLeft,docscrolly:window.pageYOffset||this.standardbody.scrollTop};if(!this.dimensions.dropmenuw){this.dimensions.dropmenuw=e.dropmenu.offsetWidth;this.dimensions.dropmenuh=e.dropmenu.offsetHeight}},isContained:function(e,t){var t=window.event||t;var n=t.relatedTarget||(t.type=="mouseover"?t.fromElement:t.toElement);while(n&&n!=e)try{n=n.parentNode}catch(t){n=e}if(n==e)return true;else return false},setopacity:function(e,t){e.style.opacity=t;if(typeof e.style.opacity!="string"){e.style.MozOpacity=t;if(e.filters){e.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+t*100+")"}}},showmenu:function(e){var t=anylinkcssmenu.menusmap[e];clearTimeout(t.hidetimer);this.getoffsetof(t.anchorobj);this.getdimensions(t);var n=t.anchorobj._offsets.left+(t.orientation=="lr"?this.dimensions.anchorw:0);var r=t.anchorobj._offsets.top+this.dimensions.anchorh-(t.orientation=="lr"?this.dimensions.anchorh:0);if(n+this.dimensions.dropmenuw+this.effects.shadow.depth[0]>this.dimensions.docscrollx+this.dimensions.docwidth){n=n-this.dimensions.dropmenuw+(t.orientation=="lr"?-this.dimensions.anchorw:this.dimensions.anchorw)}if(r+this.dimensions.dropmenuh>this.dimensions.docscrolly+this.dimensions.docheight){r=Math.max(r-this.dimensions.dropmenuh-(t.orientation=="lr"?-this.dimensions.anchorh:this.dimensions.anchorh),this.dimensions.docscrolly)}if(this.effects.fade.enabled){this.setopacity(t.dropmenu,0);if(this.effects.shadow.enabled)this.setopacity(t.shadow,0)}t.dropmenu.setcss({left:n+"px",top:r+"px",visibility:"visible"});if(this.effects.shadow.enabled)t.shadow.setcss({left:n+anylinkcssmenu.effects.shadow.depth[0]+"px",top:r+anylinkcssmenu.effects.shadow.depth[1]+"px",visibility:"visible"});if(this.effects.fade.enabled){clearInterval(t.animatetimer);t.curanimatedegree=0;t.starttime=(new Date).getTime();t.animatetimer=setInterval(function(){anylinkcssmenu.revealmenu(e)},20)}},revealmenu:function(e){var t=anylinkcssmenu.menusmap[e];var n=(new Date).getTime()-t.starttime;if(n0){var r=e.shift();if(r.addEventListener)r.addEventListener(n,t,false);else if(r.attachEvent)r.attachEvent("on"+n,function(){return t.call(r,window.event)});this.addEvent(e,t,n)}},domready:function(e){if(dd_domreadycheck){e();return}if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);e();dd_domreadycheck=true},false)}else if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top)(function(){if(dd_domreadycheck)return;try{document.documentElement.doScroll("left")}catch(t){setTimeout(arguments.callee,0);return}e();dd_domreadycheck=true})()}if(document.attachEvent&&parent.length>0)this.addEvent([window],function(){e()},"load")},addState:function(e,t){if(e.getAttribute("data-image")){var n=e.tagName=="IMG"?e:e.getElementsByTagName("img")[0];if(n){n.src=t=="add"?e.getAttribute("data-overimage"):e.getAttribute("data-image")}}else{if(document.location.protocol=="https:"){anylinkcssmenu.setcssclass(e,"selectedanchorhttps",t)}else{anylinkcssmenu.setcssclass(e,"selectedanchor",t)}}},setupmenu:function(e,t,n){this.standardbody=document.compatMode=="CSS1Compat"?document.documentElement:document.body;var r=t.getAttribute("rel");var i=r.replace(/\[(\w+)\]/,"");var s=this.menusmap[e+n]={id:e+n,anchorobj:t,dropmenu:document.getElementById(i),revealtype:r.length!=i.length&&RegExp.$1=="click"?"click":"mouseover",orientation:t.getAttribute("rev")=="lr"?"lr":"ud",shadow:document.createElement("div")};s.anchorobj._internalID=e+n;s.anchorobj._isanchor=true;s.dropmenu._internalID=e+n;s.shadow._internalID=e+n;s.shadow.className="anylinkshadow";document.body.appendChild(s.dropmenu);document.body.appendChild(s.shadow);s.dropmenu.setcss=this.setcss;s.shadow.setcss=this.setcss;s.shadow.setcss({width:s.dropmenu.offsetWidth+"px",height:s.dropmenu.offsetHeight+"px"});this.setopacity(s.shadow,this.effects.shadow.opacity);this.addEvent([s.anchorobj,s.dropmenu,s.shadow],function(e){var t=anylinkcssmenu.menusmap[this._internalID];if(this._isanchor&&t.revealtype=="mouseover"&&!anylinkcssmenu.isContained(this,e)){anylinkcssmenu.showmenu(t.id);anylinkcssmenu.addState(this,"add")}else if(typeof this._isanchor=="undefined"){clearTimeout(t.hidetimer)}},"mouseover");this.addEvent([s.anchorobj,s.dropmenu,s.shadow],function(e){if(!anylinkcssmenu.isContained(this,e)){var t=anylinkcssmenu.menusmap[this._internalID];t.hidetimer=setTimeout(function(){anylinkcssmenu.addState(t.anchorobj,"remove");anylinkcssmenu.hidemenu(t.id)},anylinkcssmenu.effects.delayhide)}},"mouseout");this.addEvent([s.anchorobj,s.dropmenu],function(e){var t=anylinkcssmenu.menusmap[this._internalID];if(this._isanchor&&t.revealtype=="click"){if(t.dropmenu.style.visibility=="visible")anylinkcssmenu.hidemenu(t.id);else{anylinkcssmenu.addState(this,"add");anylinkcssmenu.showmenu(t.id)}if(e.preventDefault)e.preventDefault();return false}else t.hidetimer=setTimeout(function(){anylinkcssmenu.hidemenu(t.id)},anylinkcssmenu.effects.delayhide)},"click")},init:function(e){this.domready(function(){anylinkcssmenu.trueinit(e)})},trueinit:function(e){var t=this.getElementsByClass(e);var n=this.preloadimages;for(var r=0;r