﻿(function(a){var d="Lite-1.0";a.fn.cycle=function(e){return this.each(function(){e=e||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var f=a(this);var g=e.slideExpr?a(e.slideExpr,this):f.children();var j=g.get();if(j.length<2){if(window.console&&window.console.log){window.console.log("terminating; too few slides: "+j.length)}return}var l=a.extend({},a.fn.cycle.defaults,e||{},a.metadata?f.metadata():a.meta?f.data():{});l.before=l.before?[l.before]:[];l.after=l.after?[l.after]:[];l.after.unshift(function(){l.busy=0});var h=this.className;l.width=parseInt((h.match(/w:(\d+)/)||[])[1])||l.width;l.height=parseInt((h.match(/h:(\d+)/)||[])[1])||l.height;l.timeout=parseInt((h.match(/t:(\d+)/)||[])[1])||l.timeout;if(f.css("position")=="static"){f.css("position","relative")}if(l.width){f.width(l.width)}if(l.height&&l.height!="auto"){f.height(l.height)}var k=0;g.css({position:"absolute",top:0,right:0}).hide().each(function(m){a(this).css("z-index",j.length-m)});a(j[k]).css("opacity",1).show();if(a.browser.msie){j[k].style.removeAttribute("filter")}if(l.fit&&l.width){g.width(l.width)}if(l.fit&&l.height&&l.height!="auto"){g.height(l.height)}if(l.pause){f.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}a.fn.cycle.transitions.fade(f,g,l);g.each(function(){var m=a(this);this.cycleH=(l.fit&&l.height)?l.height:m.height();this.cycleW=(l.fit&&l.width)?l.width:m.width()});g.not(":eq("+k+")").css({opacity:0});if(l.cssFirst){a(g[k]).css(l.cssFirst)}if(l.timeout){if(l.speed.constructor==String){l.speed={slow:600,fast:200}[l.speed]||400}if(!l.sync){l.speed=l.speed/2}while((l.timeout-l.speed)<250){l.timeout+=l.speed}}l.speedIn=l.speed;l.speedOut=l.speed;l.slideCount=j.length;l.currSlide=k;l.nextSlide=1;var i=g[k];if(l.before.length){l.before[0].apply(i,[i,i,l,true])}if(l.after.length>1){l.after[1].apply(i,[i,i,l,true])}if(l.click&&!l.next){l.next=l.click}if(l.next){a(l.next).bind("click",function(){return b(j,l,l.rev?-1:1)})}if(l.prev){a(l.prev).bind("click",function(){return b(j,l,l.rev?1:-1)})}if(l.timeout){this.cycleTimeout=setTimeout(function(){c(j,l,0,!l.rev)},l.timeout+(l.delay||0))}})};function c(g,k,i,h){if(k.busy){return}var l=g[0].parentNode,f=g[k.currSlide],j=g[k.nextSlide];if(l.cycleTimeout===0&&!i){return}if(i||!l.cyclePause){if(k.before.length){a.each(k.before,function(n,p){p.apply(j,[f,j,k,h])})}var e=function(){if(a.browser.msie){this.style.removeAttribute("filter")}a.each(k.after,function(n,p){p.apply(j,[f,j,k,h])})};if(k.nextSlide!=k.currSlide){k.busy=1;a.fn.cycle.custom(f,j,k,e)}var m=(k.nextSlide+1)==g.length;k.nextSlide=m?0:k.nextSlide+1;k.currSlide=m?g.length-1:k.nextSlide-1}if(k.timeout){l.cycleTimeout=setTimeout(function(){c(g,k,0,!k.rev)},k.timeout)}}function b(e,f,i){var g=e[0].parentNode,h=g.cycleTimeout;if(h){clearTimeout(h);g.cycleTimeout=0}f.nextSlide=f.currSlide+i;if(f.nextSlide<0){f.nextSlide=e.length-1}else{if(f.nextSlide>=e.length){f.nextSlide=0}}c(e,f,1,i>=0);return false}a.fn.cycle.custom=function(h,j,k,g){var e=a(h),f=a(j);f.css({opacity:0});var i=function(){f.animate({opacity:1},k.speedIn,k.easeIn,g)};e.animate({opacity:0},k.speedOut,k.easeOut,function(){e.css({display:"none"});if(!k.sync){i()}});if(k.sync){i()}};a.fn.cycle.transitions={fade:function(e,f,g){f.not(":eq(0)").css("opacity",0);g.before.push(function(){a(this).show()})}};a.fn.cycle.ver=function(){return d};a.fn.cycle.defaults={timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);Cufon.replace("div > h1, h2",{hover:true,fontFamily:"Century Gothic"});$(document).ready(function(){$(function(){$(".slideshow1").cycle({speed:1000,timeout:7000})});$(function(){if($("body").hasClass("homepage")){$("#mainNavLinks li#pageid3139 ul:first").addClass("alwaysShow")}});$("ul.alwaysShow").hover(function(){$(this).stop("this","this").animate({height:"140"},500);$("ul.alwaysShow li#pageid3151 > ul > li").css("display","block")},function(){$(this).stop("this","this").animate({height:"30"},300)});
/*
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.12 (23-MAY-2011)
 * 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(a){var j=document.createElement("div").style,g=j.MozBorderRadius!==undefined,l=j.WebkitBorderRadius!==undefined,i=j.borderRadius!==undefined||j.BorderRadius!==undefined,f=document.documentMode||0,h=a.browser.msie&&((a.browser.version<8&&!f)||f<8),b=a.browser.msie&&(function(){var m=document.createElement("div");try{m.style.setExpression("width","0+0");m.style.removeExpression("width")}catch(n){return false}return true})();a.support=a.support||{};a.support.borderRadius=g||l||i;function k(m,n){return parseInt(a.css(m,n))||0}function e(m){m=parseInt(m).toString(16);return(m.length<2)?"0"+m:m}function d(m){while(m){var o=a.css(m,"backgroundColor"),n;if(o&&o!="transparent"&&o!="rgba(0, 0, 0, 0)"){if(o.indexOf("rgb")>=0){n=o.match(/\d+/g);return"#"+e(n[0])+e(n[1])+e(n[2])}return o}if(m.nodeName.toLowerCase()=="html"){break}m=m.parentNode}return"#ffffff"}function c(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 o-n;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;case"steep":return n/2+1;case"invsteep":return(o-n)/2+1}}a.fn.corner=function(n){if(this.length==0){if(!a.isReady&&this.selector){var o=this.selector,m=this.context;a(function(){a(o,m).corner(n)})}return this}return this.each(function(G){var q=a(this),J=[q.attr(a.fn.corner.defaults.metaAttr)||"",n||""].join(" ").toLowerCase(),I=/keep/.test(J),v=((J.match(/cc:(#[0-9a-f]+)/)||[])[1]),N=((J.match(/sc:(#[0-9a-f]+)/)||[])[1]),Q=parseInt((J.match(/(\d+)px/)||[])[1])||10,M=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog|invsteep|steep/,E=((J.match(M)||["round"])[0]),D=/dogfold|bevelfold/.test(J),C={T:0,B:1},K={TL:/top|tl|left/.test(J),TR:/top|tr|right/.test(J),BL:/bottom|bl|left/.test(J),BR:/bottom|br|right/.test(J)},O,L,y,H,s,z,A,t,F,P,B,u,x,p;if(!K.TL&&!K.TR&&!K.BL&&!K.BR){K={TL:1,TR:1,BL:1,BR:1}}if(a.fn.corner.defaults.useNative&&E=="round"&&(i||g||l)&&!v&&!N){if(K.TL){q.css(i?"border-top-left-radius":g?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",Q+"px")}if(K.TR){q.css(i?"border-top-right-radius":g?"-moz-border-radius-topright":"-webkit-border-top-right-radius",Q+"px")}if(K.BL){q.css(i?"border-bottom-left-radius":g?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",Q+"px")}if(K.BR){q.css(i?"border-bottom-right-radius":g?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",Q+"px")}return}O=document.createElement("div");a(O).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:N||"transparent",borderStyle:"solid"});L={T:parseInt(a.css(this,"paddingTop"))||0,R:parseInt(a.css(this,"paddingRight"))||0,B:parseInt(a.css(this,"paddingBottom"))||0,L:parseInt(a.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!I){this.style.border="none"}O.style.borderColor=v||d(this.parentNode);y=a(this).outerHeight();for(H in C){s=C[H];if((s&&(K.BL||K.BR))||(!s&&(K.TL||K.TR))){O.style.borderStyle="none "+(K[H+"R"]?"solid":"none")+" none "+(K[H+"L"]?"solid":"none");z=document.createElement("div");a(z).addClass("jquery-corner");A=z.style;s?this.appendChild(z):this.insertBefore(z,this.firstChild);if(s&&y!="auto"){if(a.css(this,"position")=="static"){this.style.position="relative"}A.position="absolute";A.bottom=A.left=A.padding=A.margin="0";if(b){A.setExpression("width","this.parentNode.offsetWidth")}else{A.width="100%"}}else{if(!s&&a.browser.msie){if(a.css(this,"position")=="static"){this.style.position="relative"}A.position="absolute";A.top=A.left=A.right=A.padding=A.margin="0";if(b){t=k(this,"borderLeftWidth")+k(this,"borderRightWidth");A.setExpression("width","this.parentNode.offsetWidth - "+t+'+ "px"')}else{A.width="100%"}}else{A.position="relative";A.margin=!s?"-"+L.T+"px -"+L.R+"px "+(L.T-Q)+"px -"+L.L+"px":(L.B-Q)+"px -"+L.R+"px -"+L.B+"px -"+L.L+"px"}}for(F=0;F<Q;F++){P=Math.max(0,c(E,F,Q));B=O.cloneNode(false);B.style.borderWidth="0 "+(K[H+"R"]?P:0)+"px 0 "+(K[H+"L"]?P:0)+"px";s?z.appendChild(B):z.insertBefore(B,z.firstChild)}if(D&&a.support.boxModel){if(s&&h){continue}for(u in K){if(!K[u]){continue}if(s&&(u=="TL"||u=="TR")){continue}if(!s&&(u=="BL"||u=="BR")){continue}x={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:O.style.borderColor};p=a("<div/>").css(x).css({width:Q+"px",height:"1px"});switch(u){case"TL":p.css({bottom:0,left:0});break;case"TR":p.css({bottom:0,right:0});break;case"BL":p.css({top:0,left:0});break;case"BR":p.css({top:0,right:0});break}z.appendChild(p[0]);var r=a("<div/>").css(x).css({top:0,bottom:0,width:"1px",height:Q+"px"});switch(u){case"TL":r.css({left:Q});break;case"TR":r.css({right:Q});break;case"BL":r.css({left:Q});break;case"BR":r.css({right:Q});break}z.appendChild(r[0])}}}}})};a.fn.uncorner=function(){if(i||g||l){this.css(i?"border-radius":g?"-moz-border-radius":"-webkit-border-radius",0)}a("div.jquery-corner",this).remove();return this};a.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);$("#subNavDownLinks li a").corner()});
