$(document).ready(function(){$("ul.sf-menu").superfish();$("div.sideNav").corner("sc:#AECACE 15px;");$("div.sideNav div.jquery-corner:last-child div").css("background","#dbeaed")});(function(a){a.fn.superfish=function(i){var e=a.fn.superfish,j=e.c,k=a(['<span class="',j.arrowClass,'"> &#187;</span>'].join("")),h=function(){var c=a(this),l=g(c);clearTimeout(l.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},f=function(){var l=a(this),m=g(l),c=e.op;clearTimeout(m.sfTimer);m.sfTimer=setTimeout(function(){c.retainPath=(a.inArray(l[0],c.$path)>-1);l.hideSuperfishUl();if(c.$path.length&&l.parents(["li.",c.hoverClass].join("")).length<1){h.call(c.$path)}},c.delay)},g=function(c){var l=c.parents(["ul.",j.menuClass,":first"].join(""))[0];e.op=e.o[l.serial];return l},d=function(c){c.addClass(j.anchorClass).append(k.clone())};return this.each(function(){var l=this.serial=e.o.length;var c=a.extend({},e.defaults,i);c.$path=a("li."+c.pathClass,this).slice(0,c.pathLevels).each(function(){a(this).addClass([c.hoverClass,j.bcClass].join(" ")).filter("li:has(ul)").removeClass(c.pathClass)});e.o[l]=e.op=c;a("li:has(ul)",this)[(a.fn.hoverIntent&&!c.disableHI)?"hoverIntent":"hover"](h,f).each(function(){if(c.autoArrows){d(a(">a:first-child",this))}}).not("."+j.bcClass).hideSuperfishUl();var m=a("a",this);m.each(function(n){var o=m.eq(n).parents("li");m.eq(n).focus(function(){h.call(o)}).blur(function(){f.call(o)})});c.onInit.call(this)}).each(function(){var c=[j.menuClass];if(e.op.dropShadows&&!(a.browser.msie&&a.browser.version<7)){c.push(j.shadowClass)}a(this).addClass(c.join(" "))})};var b=a.fn.superfish;b.o=[];b.op={};b.IE7fix=function(){var c=b.op;if(a.browser.msie&&a.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(b.c.shadowClass+"-off")}};b.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};b.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:0,animation:{opacity:"show"},speed:"fast",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var c=b.op,e=(c.retainPath===true)?c.$path:"";c.retainPath=false;var d=a(["li.",c.hoverClass].join(""),this).add(this).not(e).removeClass(c.hoverClass).find(">ul").hide().css("visibility","hidden");c.onHide.call(d);return this},showSuperfishUl:function(){var c=b.op,e=b.c.shadowClass+"-off",d=this.addClass(c.hoverClass).find(">ul:hidden").css("visibility","visible");b.IE7fix.call(d);c.onBeforeShow.call(d);d.animate(c.animation,c.speed,function(){b.IE7fix.call(d);c.onShow.call(d)});return this}})})(jQuery);(function(a){a.fn.hoverIntent=function(m,n){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,n?{over:m,out:n}:m);var j,k,h,i;var b=function(f){j=f.pageX;k=f.pageY};var e=function(f,g){g.hoverIntent_t=clearTimeout(g.hoverIntent_t);if((Math.abs(h-j)+Math.abs(i-k))<l.sensitivity){a(g).unbind("mousemove",b);g.hoverIntent_s=1;return l.over.apply(g,[f])}else{h=j;i=k;g.hoverIntent_t=setTimeout(function(){e(f,g)},l.interval)}};var c=function(f,g){g.hoverIntent_t=clearTimeout(g.hoverIntent_t);g.hoverIntent_s=0;return l.out.apply(g,[f])};var d=function(o){var q=(o.type=="mouseover"?o.fromElement:o.toElement)||o.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(o){q=this}}if(q==this){return false}var g=jQuery.extend({},o);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(o.type=="mouseover"){h=g.pageX;i=g.pageY;a(f).bind("mousemove",b);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){e(g,f)},l.interval)}}else{a(f).unbind("mousemove",b);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.timeout)}}};return this.mouseover(d).mouseout(d)}})(jQuery);
/*
* jQuery corner plugin: simple corner rounding
* Examples and documentation at: http://jquery.malsup.com/corner/
* version 2.11 (15-JUN-2010)
* Requires jQuery v1.3.2 or later
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
* Authors: Dave Methvin and Mike Alsup
*/
(function(e){var b=document.createElement("div").style,i=b.MozBorderRadius!==undefined,g=b.WebkitBorderRadius!==undefined,c=b.borderRadius!==undefined||b.BorderRadius!==undefined,l=document.documentMode||0,d=e.browser.msie&&((e.browser.version<8&&!l)||l<8),h=e.browser.msie&&(function(){var n=document.createElement("div");try{n.style.setExpression("width","0+0");n.style.removeExpression("width")}catch(m){return false}return true})();e.support=e.support||{};e.support.borderRadius=i||g||c;function f(m,n){return parseInt(e.css(m,n))||0}function k(m){var m=parseInt(m).toString(16);return(m.length<2)?"0"+m:m}function j(m){while(m){var n=e.css(m,"backgroundColor"),o;if(n&&n!="transparent"&&n!="rgba(0, 0, 0, 0)"){if(n.indexOf("rgb")>=0){o=n.match(/\d+/g);return"#"+k(o[0])+k(o[1])+k(o[2])}return n}if(m.nodeName.toLowerCase()=="html"){break}m=m.parentNode}return"#ffffff"}function a(m,n,o){switch(m){case"round":return Math.round(o*(1-Math.cos(Math.asin(n/o))));case"cool":return Math.round(o*(1+Math.cos(Math.asin(n/o))));case"sharp":return Math.round(o*(1-Math.cos(Math.acos(n/o))));case"bite":return Math.round(o*(Math.cos(Math.asin((o-n-1)/o))));case"slide":return Math.round(o*(Math.atan2(n,o/n)));case"jut":return Math.round(o*(Math.atan2(o,(o-n-1))));case"curl":return Math.round(o*(Math.atan(n)));case"tear":return Math.round(o*(Math.cos(n)));case"wicked":return Math.round(o*(Math.tan(n)));case"long":return Math.round(o*(Math.sqrt(n)));case"sculpt":return Math.round(o*(Math.log((o-n-1),o)));case"dogfold":case"dog":return(n&1)?(n+1):o;case"dog2":return(n&2)?(n+1):o;case"dog3":return(n&3)?(n+1):o;case"fray":return(n%2)*o;case"notch":return o;case"bevelfold":case"bevel":return n+1}}e.fn.corner=function(o){if(this.length==0){if(!e.isReady&&this.selector){var m=this.selector,n=this.context;e(function(){e(m,n).corner(o)})}return this}return this.each(function(p){var r=e(this),B=[r.attr(e.fn.corner.defaults.metaAttr)||"",o||""].join(" ").toLowerCase(),J=/keep/.test(B),Q=((B.match(/cc:(#[0-9a-f]+)/)||[])[1]),O=((B.match(/sc:(#[0-9a-f]+)/)||[])[1]),I=parseInt((B.match(/(\d+)px/)||[])[1])||10,G=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/,v=((B.match(G)||["round"])[0]),M=/dogfold|bevelfold/.test(B),q={T:0,B:1},C={TL:/top|tl|left/.test(B),TR:/top|tr|right/.test(B),BL:/bottom|bl|left/.test(B),BR:/bottom|br|right/.test(B)},H,s,L,A,u,E,x,K,z,y,F,D,N,t;if(!C.TL&&!C.TR&&!C.BL&&!C.BR){C={TL:1,TR:1,BL:1,BR:1}}if(e.fn.corner.defaults.useNative&&v=="round"&&(c||i||g)&&!Q&&!O){if(C.TL){r.css(c?"border-top-left-radius":i?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",I+"px")}if(C.TR){r.css(c?"border-top-right-radius":i?"-moz-border-radius-topright":"-webkit-border-top-right-radius",I+"px")}if(C.BL){r.css(c?"border-bottom-left-radius":i?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",I+"px")}if(C.BR){r.css(c?"border-bottom-right-radius":i?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",I+"px")}return}H=document.createElement("div");e(H).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:O||"transparent",borderStyle:"solid"});s={T:parseInt(e.css(this,"paddingTop"))||0,R:parseInt(e.css(this,"paddingRight"))||0,B:parseInt(e.css(this,"paddingBottom"))||0,L:parseInt(e.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!J){this.style.border="none"}H.style.borderColor=Q||j(this.parentNode);L=e(this).outerHeight();for(A in q){u=q[A];if((u&&(C.BL||C.BR))||(!u&&(C.TL||C.TR))){H.style.borderStyle="none "+(C[A+"R"]?"solid":"none")+" none "+(C[A+"L"]?"solid":"none");E=document.createElement("div");e(E).addClass("jquery-corner");x=E.style;u?this.appendChild(E):this.insertBefore(E,this.firstChild);if(u&&L!="auto"){if(e.css(this,"position")=="static"){this.style.position="relative"}x.position="absolute";x.bottom=x.left=x.padding=x.margin="0";if(h){x.setExpression("width","this.parentNode.offsetWidth")}else{x.width="100%"}}else{if(!u&&e.browser.msie){if(e.css(this,"position")=="static"){this.style.position="relative"}x.position="absolute";x.top=x.left=x.right=x.padding=x.margin="0";if(h){K=f(this,"borderLeftWidth")+f(this,"borderRightWidth");x.setExpression("width","this.parentNode.offsetWidth - "+K+'+ "px"')}else{x.width="100%"}}else{x.position="relative";x.margin=!u?"-"+s.T+"px -"+s.R+"px "+(s.T-I)+"px -"+s.L+"px":(s.B-I)+"px -"+s.R+"px -"+s.B+"px -"+s.L+"px"}}for(z=0;z<I;z++){y=Math.max(0,a(v,z,I));F=H.cloneNode(false);F.style.borderWidth="0 "+(C[A+"R"]?y:0)+"px 0 "+(C[A+"L"]?y:0)+"px";u?E.appendChild(F):E.insertBefore(F,E.firstChild)}if(M&&e.support.boxModel){if(u&&d){continue}for(D in C){if(!C[D]){continue}if(u&&(D=="TL"||D=="TR")){continue}if(!u&&(D=="BL"||D=="BR")){continue}N={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:H.style.borderColor};t=e("<div/>").css(N).css({width:I+"px",height:"1px"});switch(D){case"TL":t.css({bottom:0,left:0});break;case"TR":t.css({bottom:0,right:0});break;case"BL":t.css({top:0,left:0});break;case"BR":t.css({top:0,right:0});break}E.appendChild(t[0]);var P=e("<div/>").css(N).css({top:0,bottom:0,width:"1px",height:I+"px"});switch(D){case"TL":P.css({left:I});break;case"TR":P.css({right:I});break;case"BL":P.css({left:I});break;case"BR":P.css({right:I});break}E.appendChild(P[0])}}}}})};e.fn.uncorner=function(){if(c||i||g){this.css(c?"border-radius":i?"-moz-border-radius":"-webkit-border-radius",0)}e("div.jquery-corner",this).remove();return this};e.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);
