﻿(function(c){c.fn.hoverIntent=function(n,j){var h={sensitivity:7,interval:100,timeout:0};h=c.extend(h,j?{over:n,out:j}:n);var l,q,o,f,k=function(b){l=b.pageX;q=b.pageY},a=function(b,e){e.hoverIntent_t=clearTimeout(e.hoverIntent_t);if(Math.abs(o-l)+Math.abs(f-q)<h.sensitivity){c(e).unbind("mousemove",k);e.hoverIntent_s=1;return h.over.apply(e,[b])}else{o=l;f=q;e.hoverIntent_t=setTimeout(function(){a(b,e)},h.interval)}},d=function(b){for(var e=(b.type=="mouseover"?b.fromElement:b.toElement)||b.relatedTarget;e&&
e!=this;)try{e=e.parentNode}catch(m){e=this}if(e==this)return false;var g=jQuery.extend({},b),p=this;if(p.hoverIntent_t)p.hoverIntent_t=clearTimeout(p.hoverIntent_t);if(b.type=="mouseover"){o=g.pageX;f=g.pageY;c(p).bind("mousemove",k);if(p.hoverIntent_s!=1)p.hoverIntent_t=setTimeout(function(){a(g,p)},h.interval)}else{c(p).unbind("mousemove",k);if(p.hoverIntent_s==1)p.hoverIntent_t=setTimeout(function(){p.hoverIntent_t=clearTimeout(p.hoverIntent_t);p.hoverIntent_s=0;h.out.apply(p,[g])},h.timeout)}};
return this.mouseover(d).mouseout(d)}})(jQuery);
(function(c){c.fn.superfish=function(j){var h=c.fn.superfish,l=h.c,q=c(['<span class="',l.arrowClass,'"> &#187;</span>'].join("")),o=function(){var a=c(this),d=k(a);clearTimeout(d.sfTimer);a.showSuperfishUl().siblings().hideSuperfishUl()},f=function(){var a=c(this),d=k(a),b=h.op;clearTimeout(d.sfTimer);d.sfTimer=setTimeout(function(){b.retainPath=c.inArray(a[0],b.$path)>-1;a.hideSuperfishUl();b.$path.length&&a.parents(["li.",b.hoverClass].join("")).length<1&&o.call(b.$path)},b.delay)},k=function(a){a=
a.parents(["ul.",l.menuClass,":first"].join(""))[0];h.op=h.o[a.serial];return a};return this.each(function(){var a=this.serial=h.o.length,d=c.extend({},h.defaults,j);d.$path=c("li."+d.pathClass,this).slice(0,d.pathLevels).each(function(){c(this).addClass([d.hoverClass,l.bcClass].join(" ")).filter("li:has(ul)").removeClass(d.pathClass)});h.o[a]=h.op=d;c("li:has(ul)",this)[c.fn.hoverIntent&&!d.disableHI?"hoverIntent":"hover"](o,f).each(function(){d.autoArrows&&c(">a:first-child",this).addClass(l.anchorClass).append(q.clone())}).not("."+
l.bcClass).hideSuperfishUl();var b=c("a",this);b.each(function(e){var m=b.eq(e).parents("li");b.eq(e).focus(function(){o.call(m)}).blur(function(){f.call(m)})});d.onInit.call(this)}).each(function(){var a=[l.menuClass];h.op.dropShadows&&!(c.browser.msie&&c.browser.version<7)&&a.push(l.shadowClass);c(this).addClass(a.join(" "))})};var n=c.fn.superfish;n.o=[];n.op={};n.IE7fix=function(){var j=n.op;c.browser.msie&&c.browser.version>6&&j.dropShadows&&j.animation.opacity!=undefined&&this.toggleClass(n.c.shadowClass+
"-off")};n.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};n.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};c.fn.extend({hideSuperfishUl:function(){var j=n.op,h=j.retainPath===true?j.$path:"";j.retainPath=
false;h=c(["li.",j.hoverClass].join(""),this).add(this).not(h).removeClass(j.hoverClass).find(">ul").hide().css("visibility","hidden");j.onHide.call(h);return this},showSuperfishUl:function(){var j=n.op,h=this.addClass(j.hoverClass).find(">ul:hidden").css("visibility","visible");n.IE7fix.call(h);j.onBeforeShow.call(h);h.animate(j.animation,j.speed,function(){n.IE7fix.call(h);j.onShow.call(h)});return this}})})(jQuery);
(function(c){c.fn.marquee=function(n){function j(o,f,k){var a=k.behavior,d=k.width,b=k.dir,e=0;return e=a=="alternate"?o==1?f[k.widthAxis]-d*2:d:a=="slide"?o==-1?b==-1?f[k.widthAxis]:d:b==-1?f[k.widthAxis]-d*2:0:o==-1?f[k.widthAxis]:0}function h(){for(var o=l.length,f=null,k=null,a={},d=[],b=false;o--;){f=l[o];k=c(f);a=k.data("marqueeState");if(k.data("paused")!==true){f[a.axis]+=a.scrollamount*a.dir;b=a.dir==-1?f[a.axis]<=j(a.dir*-1,f,a):f[a.axis]>=j(a.dir*-1,f,a);if(a.behavior=="scroll"&&a.last==
f[a.axis]||a.behavior=="alternate"&&b&&a.last!=-1||a.behavior=="slide"&&b&&a.last!=-1){if(a.behavior=="alternate")a.dir*=-1;a.last=-1;k.trigger("stop");a.loops--;if(a.loops===0){f[a.axis]=a.behavior!="slide"?j(a.dir,f,a):j(a.dir*-1,f,a);k.trigger("end")}else{d.push(f);k.trigger("start");f[a.axis]=j(a.dir,f,a)}}else d.push(f);a.last=f[a.axis];k.data("marqueeState",a)}else d.push(f)}l=d;l.length&&setTimeout(h,25)}var l=[],q=this.length;this.each(function(o){var f=c(this),k=f.attr("width")||f.width(),
a=f.attr("height")||f.height(),d=f.after("<div "+(n?'class="'+n+'" ':"")+'style="display: block-inline; width: '+k+"px; height: "+a+'px; overflow: hidden;"><div style="float: left;">'+f.html()+"</div></div>").next(),b=d.get(0),e=(f.attr("direction")||"left").toLowerCase(),m={dir:/down|right/.test(e)?-1:1,axis:/left|right/.test(e)?"scrollLeft":"scrollTop",widthAxis:/left|right/.test(e)?"scrollWidth":"scrollHeight",last:-1,loops:f.attr("loop")||-1,scrollamount:f.attr("scrollamount")||this.scrollAmount||
2,behavior:(f.attr("behavior")||"scroll").toLowerCase(),width:/left|right/.test(e)?k:a};if(f.attr("loop")==-1&&m.behavior=="slide")m.loops=1;f.remove();/left|right/.test(e)?d.find("> div").css("padding","0 "+k+"px"):d.find("> div").css("padding",a+"px 0");d.bind("stop",function(){d.data("paused",true)}).bind("pause",function(){d.data("paused",true)}).bind("start",function(){d.data("paused",false)}).bind("unpause",function(){d.data("paused",false)}).data("marqueeState",m);l.push(b);b[m.axis]=j(m.dir,
b,m);d.trigger("start");o+1==q&&h()});return c(l)}})(jQuery);
(function(c){function n(d){d=parseInt(d).toString(16);return d.length<2?"0"+d:d}function j(d){for(;d;){var b=c.css(d,"backgroundColor");if(b&&b!="transparent"&&b!="rgba(0, 0, 0, 0)"){if(b.indexOf("rgb")>=0){d=b.match(/\d+/g);return"#"+n(d[0])+n(d[1])+n(d[2])}return b}d=d.parentNode}return"#ffffff"}function h(d,b,e){switch(d){case "round":return Math.round(e*(1-Math.cos(Math.asin(b/e))));case "cool":return Math.round(e*(1+Math.cos(Math.asin(b/e))));case "sharp":return Math.round(e*(1-Math.cos(Math.acos(b/
e))));case "bite":return Math.round(e*Math.cos(Math.asin((e-b-1)/e)));case "slide":return Math.round(e*Math.atan2(b,e/b));case "jut":return Math.round(e*Math.atan2(e,e-b-1));case "curl":return Math.round(e*Math.atan(b));case "tear":return Math.round(e*Math.cos(b));case "wicked":return Math.round(e*Math.tan(b));case "long":return Math.round(e*Math.sqrt(b));case "sculpt":return Math.round(e*Math.log(e-b-1,e));case "dogfold":case "dog":return b&1?b+1:e;case "dog2":return b&2?b+1:e;case "dog3":return b&
3?b+1:e;case "fray":return b%2*e;case "notch":return e;case "bevelfold":case "bevel":return b+1}}var l=document.createElement("div").style,q=l.MozBorderRadius!==undefined,o=l.WebkitBorderRadius!==undefined,f=l.borderRadius!==undefined||l.BorderRadius!==undefined;l=document.documentMode||0;var k=c.browser.msie&&(c.browser.version<8&&!l||l<8),a=c.browser.msie&&function(){var d=document.createElement("div");try{d.style.setExpression("width","0+0");d.style.removeExpression("width")}catch(b){return false}return true}();
c.fn.corner=function(d){if(this.length==0){if(!c.isReady&&this.selector){var b=this.selector,e=this.context;c(function(){c(b,e).corner(d)})}return this}return this.each(function(){var m=c(this),g=[m.attr(c.fn.corner.defaults.metaAttr)||"",d||""].join(" ").toLowerCase(),p=/keep/.test(g),s=(g.match(/cc:(#[0-9a-f]+)/)||[])[1],t=(g.match(/sc:(#[0-9a-f]+)/)||[])[1],r=parseInt((g.match(/(\d+)px/)||[])[1])||10,z=(g.match(/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/)||
["round"])[0],B=/dogfold|bevelfold/.test(g),A={T:0,B:1};g={TL:/top|tl|left/.test(g),TR:/top|tr|right/.test(g),BL:/bottom|bl|left/.test(g),BR:/bottom|br|right/.test(g)};if(!g.TL&&!g.TR&&!g.BL&&!g.BR)g={TL:1,TR:1,BL:1,BR:1};if(c.fn.corner.defaults.useNative&&z=="round"&&(f||q||o)&&!s&&!t){if(g.TL)m.css(f?"border-top-left-radius":q?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",r+"px");if(g.TR)m.css(f?"border-top-right-radius":q?"-moz-border-radius-topright":"-webkit-border-top-right-radius",
r+"px");if(g.BL)m.css(f?"border-bottom-left-radius":q?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",r+"px");if(g.BR)m.css(f?"border-bottom-right-radius":q?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",r+"px")}else{m=document.createElement("div");c(m).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:t||"transparent",borderStyle:"solid"});t={T:parseInt(c.css(this,"paddingTop"))||0,R:parseInt(c.css(this,"paddingRight"))||
0,B:parseInt(c.css(this,"paddingBottom"))||0,L:parseInt(c.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!p)this.style.border="none";m.style.borderColor=s||j(this.parentNode);p=c(this).outerHeight();for(var x in A)if((s=A[x])&&(g.BL||g.BR)||!s&&(g.TL||g.TR)){m.style.borderStyle="none "+(g[x+"R"]?"solid":"none")+" none "+(g[x+"L"]?"solid":"none");var v=document.createElement("div");c(v).addClass("jquery-corner");var i=v.style;s?this.appendChild(v):this.insertBefore(v,
this.firstChild);if(s&&p!="auto"){if(c.css(this,"position")=="static")this.style.position="relative";i.position="absolute";i.bottom=i.left=i.padding=i.margin="0";if(a)i.setExpression("width","this.parentNode.offsetWidth");else i.width="100%"}else if(!s&&c.browser.msie){if(c.css(this,"position")=="static")this.style.position="relative";i.position="absolute";i.top=i.left=i.right=i.padding=i.margin="0";if(a){var u=(parseInt(c.css(this,"borderLeftWidth"))||0)+(parseInt(c.css(this,"borderRightWidth"))||
0);i.setExpression("width","this.parentNode.offsetWidth - "+u+'+ "px"')}else i.width="100%"}else{i.position="relative";i.margin=!s?"-"+t.T+"px -"+t.R+"px "+(t.T-r)+"px -"+t.L+"px":t.B-r+"px -"+t.R+"px -"+t.B+"px -"+t.L+"px"}for(i=0;i<r;i++){u=Math.max(0,h(z,i,r));var y=m.cloneNode(false);y.style.borderWidth="0 "+(g[x+"R"]?u:0)+"px 0 "+(g[x+"L"]?u:0)+"px";s?v.appendChild(y):v.insertBefore(y,v.firstChild)}if(B&&c.support.boxModel)if(!(s&&k))for(var w in g)if(g[w])if(!(s&&(w=="TL"||w=="TR")))if(!(!s&&
(w=="BL"||w=="BR"))){i={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:m.style.borderColor};u=c("<div/>").css(i).css({width:r+"px",height:"1px"});switch(w){case "TL":u.css({bottom:0,left:0});break;case "TR":u.css({bottom:0,right:0});break;case "BL":u.css({top:0,left:0});break;case "BR":u.css({top:0,right:0});break}v.appendChild(u[0]);i=c("<div/>").css(i).css({top:0,bottom:0,width:"1px",height:r+"px"});switch(w){case "TL":i.css({left:r});break;case "TR":i.css({right:r});
break;case "BL":i.css({left:r});break;case "BR":i.css({right:r});break}v.appendChild(i[0])}}}})};c.fn.uncorner=function(){if(f||q||o)this.css(f?"border-radius":q?"-moz-border-radius":"-webkit-border-radius",0);c("div.jquery-corner",this).remove();return this};c.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);
