﻿(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("h1 div",{hover:true,fontFamily:"Trajan Pro"});Cufon.replace("h2",{hover:true,fontFamily:"Trajan Pro"});Cufon.replace(".widgetCTA span.widgetCTAHeaders",{hover:true,fontFamily:"Trajan Pro"});$(document).ready(function(){$(".widgetCTA").each(function(){var a=$(this).find(".widgetCTAimg").css("background-image").replace(/"/g,"");var b=a.slice(4,(a.length-1));$(this).find(".widgetCTAimg").css("background-image","");$(this).find(".widgetCTAimg").append("<img src="+b+" />");var d=-(($(this).find(".widgetCTAimg img").height()-70)/2);var c=-(($(this).find(".widgetCTAimg img").width()-200)/2);$(this).find(".widgetCTAimg img").css("top",d);$(this).find(".widgetCTAimg img").css("left",c)});$(".widgetCTA a").hover(function(){$(this).find(".widgetCTAimg").animate({height:"97px"},200);var a=$(this).find(".widgetCTAimg img").height();var b=$(this).find(".widgetCTAimg img").width();var c=(a-=(a*0.28));var d=(b-=(b*0.28));$(this).find(".widgetCTAimg img").animate({height:c,width:d,top:"0",left:"0"},200)},function(){$(this).find(".widgetCTAimg").animate({height:"70px"},200);var b=-((191-70)/2);var a=-((285-200)/2);$(this).find(".widgetCTAimg img").animate({height:"191",width:"285",top:b,left:a},200)})});(function(b){b.iframe=function(d){this.obj=d;var a=document.getElementById("sb-overlay");this.height=d.height?parseInt(d.height,10):a.offsetHeight;this.width=d.width?parseInt(d.width,10):a.offsetWidth};b.iframe.prototype={append:function(a,h,g){this.id=h;var f='<iframe id="'+h+'" name="'+h+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"';if(b.client.isIE){f+=' allowtransparency="true"';if(b.client.isIE6){f+=" src=\"javascript:false;document.write('');\""}}f+="></iframe>";a.innerHTML=f},remove:function(){var a=document.getElementById(this.id);if(a){b.lib.remove(a);if(b.client.isGecko){delete window.frames[this.id]}}},onLoad:function(){var a=b.client.isIE?document.getElementById(this.id).contentWindow:window.frames[this.id];a.location.href=this.obj.content}}})(Shadowbox);
