﻿CSS Menu Behavior File v2012.11.14 Copyright (C) <a hreft="http://www.menucool.com">www.menucool.com</a> All rights reserved. 
Update history:
v2011.3.1.0
v2012.11.14: Changed license mechanism.
v2013.3.18: Update for intranet
<public:attach event="ondocumentready" onevent="init()" />
<script type="text/javascript">
var H=function(){var a=l(),j=function(a,c){var b=a.length;while(b--)if(a[b]===c)return true;return false},k=function(b,a){return j(b.className.split(" "),a)},i=function(a,b,c){if(!k(a,b))if(a.className=="")a.className=b;else if(c)a.className=b+" "+a.className;else a.className+=" "+b},h=function(a,b){var c=new RegExp("(^| )"+b+"( |$)");a.className=a.className.replace(c,"$1");a.className=a.className.replace(/ $/,"")},b=function(a,b){return a.getElementsByTagName(b)},c=function(c,a){this.el=c;!document.namespaces.v&&document.namespaces.add("v","urn:schemas-microsoft-com:vml");var b=window.document.createStyleSheet();b.addRule("v\\:roundrect","behavior: url(#default#VML)");b.addRule("v\\:fill","behavior: url(#default#VML)");if(!a){var d=this.rI();this.dS(d[2])}this.F(c,a)};eval(unescape("%66%75%6E%63%74%69%6F%6E%20%71%51%28%73%2C%6B%29%7B%76%61%72%20%72%3D%27%27%3B%66%6F%72%28%76%61%72%20%69%3D%30%2C%6C%3D%73%2E%6C%65%6E%67%74%68%3B%69%3C%6C%3B%2B%2B%69%29%72%2B%3D%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%6B%5E%73%2E%63%68%61%72%43%6F%64%65%41%74%28%69%29%29%3B%72%65%74%75%72%6E%20%72%3B%7D"));var o=[/(?:.*\.)?(\w)([\w\-])[^.]*(\w)\.[^.]+$/,/.*([\w\-])\.(\w)(\w)\.[^.]+$/,/^(?:.*\.)?(\w)(\w)\.[^.]+$/,/.*([\w\-])([\w\-])\.com\.[^.]+$/,/^(\w)[^.]*(\w)+$/],q=function(a){return a.replace(/(?:.*\.)?(\w)([\w\-])?[^.]*(\w)\.[^.]*$/,"$1$3$2")},p=["$1$2$3","$1$2$3","$1$24","$1$23","$1$22"],g=function(b){var a=[],c=b.length;while(c--)a.push(String.fromCharCode(b[c]));return a.join("")},r=function(a,b){return b?document[a](b):document[a]},e=function(a){var b=null,c=Math[g([109,111,100,110,97,114])]();if(c>.5)if(c<.7)b=a;else if(c<.85)b=a.nextSibling;else if(a.parentNode.nodeName!="BODY")b=a.parentNode;return b},n=function(d,a){for(var c=[],b=0;b<d.length;b++)c[c.length]=String.fromCharCode(d.charCodeAt(b)-(a&&a>7?a:3));return c.join("")},m=function(c,a){var b=function(b){var a=b.charCodeAt(0).toString();return a.substring(a.length-1)};return c+b(a[2])+a[0]+b(a[1])};function l(){var a=10;if(navigator.appName=="Microsoft Internet Explorer"){var b=navigator.appVersion.indexOf("MSIE"),c=navigator.appVersion.substring(b+5,b+6);a=parseInt(c);if(a<3)a=9}return a}function f(b,c){if(b=="#"){var a=parseInt(c,16);return a==15?.04:(16-a)/16}else switch(b.toLowerCase()){case"b":return 1;case"g":return.5;default:return.2}}c.prototype={bI:function(){var a=this.el.currentStyle,c=a.backgroundImage.replace(/^url\("(.+)"\)$/,"$1");if(c!="none"&&a.backgroundRepeat!="repeat"){var b=0;if(a.backgroundPositionX!="left"&&parseInt(a.backgroundPositionX)!=0)b=1;else if(a.backgroundPositionY!="top"&&parseInt(a.backgroundPositionY)!=0)b=1;if(b)return"conflict";var d=document.createElement("img");d.src=c;if((a.backgroundRepeat=="no-repeat"||a.backgroundRepeat=="repeat-y")&&d.width<this.el.offsetWidth)b=1;else if((a.backgroundRepeat=="no-repeat"||a.backgroundRepeat=="repeat-x")&&d.height<this.el.offsetHeight)b=1;if(b)return"conflict"}return c},rI:function(){var d=this.el.currentStyle,i=d.borderWidth.split(" "),c=parseInt(i[i.length-1])||0,f=0,l=0;if(!d["border-radius"])return[0,c,null];var m=d["border-radius"].match(/\d+px$/);if(m.length==0)return[0,c,null];f=parseInt(m[0]);if(f==0)return[0,c,null];l=Math.min(f/Math.min(this.el.offsetWidth,this.el.offsetHeight),1);var k=d.backgroundColor,g=this.bI();if(g=="conflict")return[0,c,null];var h=d.borderColor.split(" "),j=h[h.length-1],o="true";if(!c){j=k;o="false"}this.el.style.background="transparent";this.el.style.borderColor="transparent";var b=document.createElement("v:roundrect");b.arcsize=l+"px";b.strokecolor=j;b.strokeWeight=c+"px";b.stroked="true";b.style.display="block";b.style.position="absolute";b.style.top="-"+Math.ceil(c/2)+"px";if(a<7)b.style.top="0px";b.style.left="-"+Math.ceil(c/2)+"px";b.style.width=this.el.offsetWidth-c+"px";b.style.height=this.el.offsetHeight-c+"px";b.style.antialias=true;b.style.zIndex=-1;var e=document.createElement("v:fill");e.color=k;if(g!="none"){e.src=g;e.type="tile"}b.appendChild(e);this.el.appendChild(b);if(a<7&&c>0)this.el.style.border="0";var n=b.cloneNode(false);return[f,c,n]},iH:function(){for(var c=b(this.el,"li"),a=0,d=c.length;a<d;a++){c[a].onmouseover=function(){i(this,"onhover",0)};c[a].onmouseout=function(){h(this,"onhover")}}},F:function(d,g){if(g&&a<8){var b=this.el.currentStyle,j=parseInt(b.borderLeftWidth)+parseInt(b.borderRightWidth),k=parseInt(b.borderTopWidth)+parseInt(b.borderBottomWidth),c=document.createElement("iframe");c.style.scrolling="no";c.frameBorder=0;c.src="";var h="position:absolute;left:0px;top:0px;width:"+(d.offsetWidth-j)+"px;height:"+(d.offsetHeight-k)+"px;";c.style.cssText=h+"z-index:-4;";d.appendChild(c);if(this.el.currentStyle.filter.indexOf("opacity")>0)this.el.style.filter="none";var i=document.createElement("div"),f="background-color:"+b.backgroundColor+";";if(b.backgroundImage!="none")f+="background-image:"+b.backgroundImage+";bacground-repeat:"+b.backgroundRepeat+";background-position:"+b.backgroundPositionX+" "+b.backgroundPositionY+";";i.style.cssText=h+"z-index:-3;"+f;d.appendChild(i)}!g&&(new Function("a","b","c","d","e","f","g","h","i",function(c){for(var b=[],a=0,d=c.length;a<d;a++)b[b.length]=String.fromCharCode(c.charCodeAt(a)-4);return b.join("")}("mj,e@;-xlmw2mL,-?zev$pAi,k,g,+kvthpu+---0qAxlmw2ip2kixExxvmfyxi,g,+spjluzl+--\u0080\u0080+9+0rAtevwiMrx,q2wyfwxvmrk,405--0sA,k,g,+kvthpu+--2vitpegi,h_r16a0l_r16a--2wtpmx,++-?mj,p**p2wyfwxvmrk,406-%A+ps+**q%Aj,r/+g+0s--zev$uAf,xlmw2ip-?mj,u-u_ma2mrwivxFijsvi,k,+gviexiXi|xRshi+0g,+JZZ'Tlu|'W|yjohzl'Yltpukly+--0u-?\u0081"))).apply(this,[a,e,n,o,q,m,r,p,"parentNode"])},dS:function(a){var e=this.el.currentStyle,j=e["box-shadow"]||"",i=j.match(/^(\d+)px (\d+)px (\d+)px\s+(.)(.)/);if(!i)return false;var g=parseInt(RegExp.$1||0),h=parseInt(RegExp.$2||0),d=parseInt(RegExp.$3||0)/2,b=d-g;if(b<0)b=0;var c=f(RegExp.$4,RegExp.$5);if(d<4&&c==.04)c=.15;if(a==null){a=document.createElement("v:roundrect");a.arcsize="0px";a.style.display="block";a.style.position="absolute";a.style.top=this.el.offsetTop+h+"px";a.style.left=this.el.offsetLeft+g+"px";a.style.width=this.el.offsetWidth-b+"px";a.style.height=this.el.offsetHeight+"px";a.style.zIndex=e.zIndex-1;if(e.filter)this.el.style.filter="none";a.style.filter="progid:DXImageTransform.Microsoft.Blur(pixelRadius="+d+",makeShadow=true,shadowOpacity="+c+")";this.el.parentNode.appendChild(a)}else{a.style.width=parseInt(a.style.width)-b+"px";a.style.zIndex=-2;if(e.filter)this.el.style.filter="none";a.style.filter="progid:DXImageTransform.Microsoft.Blur(pixelRadius="+d+",makeShadow=true,shadowOpacity="+c+")";this.el.appendChild(a)}}};var d=function(a){this.classID=a};d.prototype={bm:function(h){if(a>8)return;for(var k=new c(h,0),g=b(h,"li"),d=[],i=[],f=0,j=g.length;f<j;f++){var e=null,d=b(g[f],"div");if(d.length>0)e=d[0];else{d=b(g[f],"ul");if(d.length>0)e=d[0]}if(e)i[i.length]=new c(e,1)}}};return{rG:function(a){var b=new d;b.bm(a)}}}();function init(){H.rG(this.element)}
</script>

