// ColorBox v1.3.16 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2011 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(a,b,c){function ba(b){if(!T){O=b,Z(a.extend(J,a.data(O,e))),x=a(O),P=0,J.rel!=="nofollow"&&(x=a("."+V).filter(function(){var b=a.data(this,e).rel||this.rel;return b===J.rel}),P=x.index(O),P===-1&&(x=x.add(O),P=x.length-1));if(!R){R=S=!0,q.show();if(J.returnFocus)try{O.blur(),a(O).one(k,function(){try{this.focus()}catch(a){}})}catch(c){}p.css({opacity:+J.opacity,cursor:J.overlayClose?"pointer":"auto"}).show(),J.w=X(J.initialWidth,"x"),J.h=X(J.initialHeight,"y"),U.position(0),n&&y.bind("resize."+o+" scroll."+o,function(){p.css({width:y.width(),height:y.height(),top:y.scrollTop(),left:y.scrollLeft()})}).trigger("resize."+o),$(g,J.onOpen),I.add(C).hide(),H.html(J.close).show()}U.load(!0)}}function _(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;J.slideshow&&x[1]&&(d=function(){E.text(J.slideshowStop).unbind(c).bind(i,function(){if(P<x.length-1||J.loop)a=setTimeout(U.next,J.slideshowSpeed)}).bind(h,function(){clearTimeout(a)}).one(c+" "+j,e),q.removeClass(b+"off").addClass(b+"on"),a=setTimeout(U.next,J.slideshowSpeed)},e=function(){clearTimeout(a),E.text(J.slideshowStart).unbind([i,h,j,c].join(" ")).one(c,d),q.removeClass(b+"on").addClass(b+"off")},J.slideshowAuto?d():e())}function $(b,c){c&&c.call(O),a.event.trigger(b)}function Z(b){for(var c in b)a.isFunction(b[c])&&c.substring(0,2)!=="on"&&(b[c]=b[c].call(O));b.rel=b.rel||O.rel||"nofollow",b.href=a.trim(b.href||a(O).attr("href")),b.title=b.title||O.title}function Y(a){return J.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(a)}function X(a,b){b=b==="x"?y.width():y.height();return typeof a=="string"?Math.round(/%/.test(a)?b/100*parseInt(a,10):parseInt(a,10)):a}function W(c,d){var e=b.createElement("div");e.id=c?f+c:!1,e.style.cssText=d||!1;return a(e)}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0},e="colorbox",f="cbox",g=f+"_open",h=f+"_load",i=f+"_complete",j=f+"_cleanup",k=f+"_closed",l=f+"_purge",m=a.browser.msie&&!a.support.opacity,n=m&&a.browser.version<7,o=f+"_IE6",p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J={},K,L,M,N,O,P,Q,R,S,T=!1,U,V=f+"Element";U=a.fn[e]=a[e]=function(b,c){var f=this,g;if(!f[0]&&f.selector)return f;b=b||{},c&&(b.onComplete=c);if(!f[0]||f.selector===undefined)f=a("<a/>"),b.open=!0;f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b)),a(this).addClass(V)}),g=b.open,a.isFunction(g)&&(g=g.call(f)),g&&ba(f[0]);return f},U.init=function(){y=a(c),q=W().attr({id:e,"class":m?f+(n?"IE6":"IE"):""}),p=W("Overlay",n?"position:absolute":"").hide(),r=W("Wrapper"),s=W("Content").append(z=W("LoadedContent","width:0; height:0; overflow:hidden"),B=W("LoadingOverlay").add(W("LoadingGraphic")),C=W("Title"),D=W("Current"),F=W("Next"),G=W("Previous"),E=W("Slideshow").bind(g,_),H=W("Close")),r.append(W().append(W("TopLeft"),t=W("TopCenter"),W("TopRight")),W(!1,"clear:left").append(u=W("MiddleLeft"),s,v=W("MiddleRight")),W(!1,"clear:left").append(W("BottomLeft"),w=W("BottomCenter"),W("BottomRight"))).children().children().css({"float":"left"}),A=W(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),a("body").prepend(p,q.append(r,A)),s.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover"),K=t.height()+w.height()+s.outerHeight(!0)-s.height(),L=u.width()+v.width()+s.outerWidth(!0)-s.width(),M=z.outerHeight(!0),N=z.outerWidth(!0),q.css({"padding-bottom":K,"padding-right":L}).hide(),F.click(function(){U.next()}),G.click(function(){U.prev()}),H.click(function(){U.close()}),I=F.add(G).add(D).add(E),s.children().removeClass("hover"),a("."+V).live("click",function(a){a.button!==0&&typeof a.button!="undefined"||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),ba(this))}),p.click(function(){J.overlayClose&&U.close()}),a(b).bind("keydown",function(a){R&&J.escKey&&a.keyCode===27&&(a.preventDefault(),U.close()),R&&J.arrowKey&&!S&&x[1]&&(a.keyCode===37&&(P||J.loop)?(a.preventDefault(),G.click()):a.keyCode===39&&(P<x.length-1||J.loop)&&(a.preventDefault(),F.click()))})},U.remove=function(){q.add(p).remove(),a("."+V).die("click").removeData(e).removeClass(V)},U.position=function(a,c){function g(a){t[0].style.width=w[0].style.width=s[0].style.width=a.style.width,B[0].style.height=B[1].style.height=s[0].style.height=u[0].style.height=v[0].style.height=a.style.height}var d,e=Math.max(b.documentElement.clientHeight-J.h-M-K,0)/2+y.scrollTop(),f=Math.max(y.width()-J.w-N-L,0)/2+y.scrollLeft();d=q.width()===J.w+N&&q.height()===J.h+M?0:a,r[0].style.width=r[0].style.height="9999px",q.dequeue().animate({width:J.w+N,height:J.h+M,top:e,left:f},{duration:d,complete:function(){g(this),S=!1,r[0].style.width=J.w+N+L+"px",r[0].style.height=J.h+M+K+"px",c&&c()},step:function(){g(this)}})},U.resize=function(a){if(R){a=a||{},a.width&&(J.w=X(a.width,"x")-N-L),a.innerWidth&&(J.w=X(a.innerWidth,"x")),z.css({width:J.w}),a.height&&(J.h=X(a.height,"y")-M-K),a.innerHeight&&(J.h=X(a.innerHeight,"y"));if(!a.innerHeight&&!a.height){var b=z.wrapInner("<div style='overflow:auto'></div>").children();J.h=b.height(),b.replaceWith(b.children())}z.css({height:J.h}),U.position(J.transition==="none"?0:J.speed)}},U.prep=function(b){function h(b){U.position(b,function(){var b,d,g,h,j=x.length,k,n;!R||(n=function(){B.hide(),$(i,J.onComplete)},m&&Q&&z.fadeIn(100),C.html(J.title).add(z).show(),j>1?(typeof J.current=="string"&&D.html(J.current.replace(/\{current\}/,P+1).replace(/\{total\}/,j)).show(),F[J.loop||P<j-1?"show":"hide"]().html(J.next),G[J.loop||P?"show":"hide"]().html(J.previous),b=P?x[P-1]:x[j-1],g=P<j-1?x[P+1]:x[0],J.slideshow&&E.show(),J.preloading&&(h=a.data(g,e).href||g.href,d=a.data(b,e).href||b.href,h=a.isFunction(h)?h.call(g):h,d=a.isFunction(d)?d.call(b):d,Y(h)&&(a("<img/>")[0].src=h),Y(d)&&(a("<img/>")[0].src=d))):I.hide(),J.iframe?(k=a("<iframe frameborder=0/>").addClass(f+"Iframe")[0],J.fastIframe?n():a(k).load(n),k.name=f+ +(new Date),k.src=J.href,J.scrolling||(k.scrolling="no"),m&&(k.allowTransparency="true"),a(k).appendTo(z).one(l,function(){k.src="//about:blank"})):n(),J.transition==="fade"?q.fadeTo(c,1,function(){q[0].style.filter=""}):q[0].style.filter="",y.bind("resize."+f,function(){U.position(0)}))})}function g(){J.h=J.h||z.height(),J.h=J.mh&&J.mh<J.h?J.mh:J.h;return J.h}function d(){J.w=J.w||z.width(),J.w=J.mw&&J.mw<J.w?J.mw:J.w;return J.w}if(!!R){var c=J.transition==="none"?0:J.speed;y.unbind("resize."+f),z.remove(),z=W("LoadedContent").html(b),z.hide().appendTo(A.show()).css({width:d(),overflow:J.scrolling?"auto":"hidden"}).css({height:g()}).prependTo(s),A.hide(),a(Q).css({"float":"none"}),n&&a("select").not(q.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(j,function(){this.style.visibility="inherit"}),J.transition==="fade"?q.fadeTo(c,0,function(){h(0)}):h(c)}},U.load=function(b){var c,d,g=U.prep;S=!0,Q=!1,O=x[P],b||Z(a.extend(J,a.data(O,e))),$(l),$(h,J.onLoad),J.h=J.height?X(J.height,"y")-M-K:J.innerHeight&&X(J.innerHeight,"y"),J.w=J.width?X(J.width,"x")-N-L:J.innerWidth&&X(J.innerWidth,"x"),J.mw=J.w,J.mh=J.h,J.maxWidth&&(J.mw=X(J.maxWidth,"x")-N-L,J.mw=J.w&&J.w<J.mw?J.w:J.mw),J.maxHeight&&(J.mh=X(J.maxHeight,"y")-M-K,J.mh=J.h&&J.h<J.mh?J.h:J.mh),c=J.href,B.show(),J.inline?(W().hide().insertBefore(a(c)[0]).one(l,function(){a(this).replaceWith(z.children())}),g(a(c))):J.iframe?g(" "):J.html?g(J.html):Y(c)?(a(Q=new Image).addClass(f+"Photo").error(function(){J.title=!1,g(W("Error").text("This image could not be loaded"))}).load(function(){var a;Q.onload=null,J.scalePhotos&&(d=function(){Q.height-=Q.height*a,Q.width-=Q.width*a},J.mw&&Q.width>J.mw&&(a=(Q.width-J.mw)/Q.width,d()),J.mh&&Q.height>J.mh&&(a=(Q.height-J.mh)/Q.height,d())),J.h&&(Q.style.marginTop=Math.max(J.h-Q.height,0)/2+"px"),x[1]&&(P<x.length-1||J.loop)&&(Q.style.cursor="pointer",Q.onclick=function(){U.next()}),m&&(Q.style.msInterpolationMode="bicubic"),setTimeout(function(){g(Q)},1)}),setTimeout(function(){Q.src=c},1)):c&&A.load(c,function(b,c,d){g(c==="error"?W("Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},U.next=function(){S||(P=P<x.length-1?P+1:0,U.load())},U.prev=function(){S||(P=P?P-1:x.length-1,U.load())},U.close=function(){R&&!T&&(T=!0,R=!1,$(j,J.onCleanup),y.unbind("."+f+" ."+o),p.fadeTo(200,0),q.stop().fadeTo(300,0,function(){q.add(p).css({opacity:1,cursor:"auto"}).hide(),$(l),z.remove(),setTimeout(function(){T=!1,$(k,J.onClosed)},1)}))},U.element=function(){return a(O)},U.settings=d,a(U.init)})(jQuery,document,this);

/*
 * jQuery Nivo Slider v2.4
 * http://nivo.dev7studios.com
 *
 * Copyright 2011, Gilbert Pellegrom
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 */

(function(a){var A=function(s,v){var f=a.extend({},a.fn.nivoSlider.defaults,v),g={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:false,paused:false,stop:false},e=a(s);e.data("nivo:vars",g);e.css("position","relative");e.addClass("nivoSlider");var j=e.children();j.each(function(){var b=a(this),h="";if(!b.is("img")){if(b.is("a")){b.addClass("nivo-imageLink");h=b}b=b.find("img:first")}var c=b.width();if(c==0)c=b.attr("width");var o=b.height();if(o==0)o=b.attr("height");c>e.width()&&
e.width(c);o>e.height()&&e.height(o);h!=""&&h.css("display","none");b.css("display","none");g.totalSlides++});if(f.startSlide>0){if(f.startSlide>=g.totalSlides)f.startSlide=g.totalSlides-1;g.currentSlide=f.startSlide}g.currentImage=a(j[g.currentSlide]).is("img")?a(j[g.currentSlide]):a(j[g.currentSlide]).find("img:first");a(j[g.currentSlide]).is("a")&&a(j[g.currentSlide]).css("display","block");e.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat');for(var k=0;k<f.slices;k++){var p=
Math.round(e.width()/f.slices);k==f.slices-1?e.append(a('<div class="nivo-slice"></div>').css({left:p*k+"px",width:e.width()-p*k+"px"})):e.append(a('<div class="nivo-slice"></div>').css({left:p*k+"px",width:p+"px"}))}e.append(a('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:f.captionOpacity}));if(g.currentImage.attr("title")!=""){k=g.currentImage.attr("title");if(k.substr(0,1)=="#")k=a(k).html();a(".nivo-caption p",e).html(k);a(".nivo-caption",e).fadeIn(f.animSpeed)}var l=
0;if(!f.manualAdvance&&j.length>1)l=setInterval(function(){r(e,j,f,false)},f.pauseTime);if(f.directionNav){e.append('<div class="nivo-directionNav"><a class="nivo-prevNav">Prev</a><a class="nivo-nextNav">Next</a></div>');if(f.directionNavHide){a(".nivo-directionNav",e).hide();e.hover(function(){a(".nivo-directionNav",e).show()},function(){a(".nivo-directionNav",e).hide()})}a("a.nivo-prevNav",e).live("click",function(){if(g.running)return false;clearInterval(l);l="";g.currentSlide-=2;r(e,j,f,"prev")});
a("a.nivo-nextNav",e).live("click",function(){if(g.running)return false;clearInterval(l);l="";r(e,j,f,"next")})}if(f.controlNav){p=a('<div class="nivo-controlNav"></div>');e.append(p);for(k=0;k<j.length;k++)if(f.controlNavThumbs){var t=j.eq(k);t.is("img")||(t=t.find("img:first"));f.controlNavThumbsFromRel?p.append('<a class="nivo-control" rel="'+k+'"><img src="'+t.attr("rel")+'" alt="" /></a>'):p.append('<a class="nivo-control" rel="'+k+'"><img src="'+t.attr("src").replace(f.controlNavThumbsSearch,
f.controlNavThumbsReplace)+'" alt="" /></a>')}else p.append('<a class="nivo-control" rel="'+k+'">'+(k+1)+"</a>");a(".nivo-controlNav a:eq("+g.currentSlide+")",e).addClass("active");a(".nivo-controlNav a",e).live("click",function(){if(g.running)return false;if(a(this).hasClass("active"))return false;clearInterval(l);l="";e.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat');g.currentSlide=a(this).attr("rel")-1;r(e,j,f,"control")})}f.keyboardNav&&a(window).keypress(function(b){if(b.keyCode==
"37"){if(g.running)return false;clearInterval(l);l="";g.currentSlide-=2;r(e,j,f,"prev")}if(b.keyCode=="39"){if(g.running)return false;clearInterval(l);l="";r(e,j,f,"next")}});f.pauseOnHover&&e.hover(function(){g.paused=true;clearInterval(l);l=""},function(){g.paused=false;if(l==""&&!f.manualAdvance)l=setInterval(function(){r(e,j,f,false)},f.pauseTime)});e.bind("nivo:animFinished",function(){g.running=false;a(j).each(function(){a(this).is("a")&&a(this).css("display","none")});a(j[g.currentSlide]).is("a")&&
a(j[g.currentSlide]).css("display","block");if(l==""&&!g.paused&&!f.manualAdvance)l=setInterval(function(){r(e,j,f,false)},f.pauseTime);f.afterChange.call(this)});var w=function(b,h){var c=0;a(".nivo-slice",b).each(function(){var o=a(this),d=Math.round(b.width()/h.slices);c==h.slices-1?o.css("width",b.width()-d*c+"px"):o.css("width",d+"px");c++})},r=function(b,h,c,o){var d=b.data("nivo:vars");d&&d.currentSlide==d.totalSlides-1&&c.lastSlide.call(this);if((!d||d.stop)&&!o)return false;c.beforeChange.call(this);
if(o){o=="prev"&&b.css("background",'url("'+d.currentImage.attr("src")+'") no-repeat');o=="next"&&b.css("background",'url("'+d.currentImage.attr("src")+'") no-repeat')}else b.css("background",'url("'+d.currentImage.attr("src")+'") no-repeat');d.currentSlide++;if(d.currentSlide==d.totalSlides){d.currentSlide=0;c.slideshowEnd.call(this)}if(d.currentSlide<0)d.currentSlide=d.totalSlides-1;d.currentImage=a(h[d.currentSlide]).is("img")?a(h[d.currentSlide]):a(h[d.currentSlide]).find("img:first");if(c.controlNav){a(".nivo-controlNav a",
b).removeClass("active");a(".nivo-controlNav a:eq("+d.currentSlide+")",b).addClass("active")}if(d.currentImage.attr("title")!=""){var u=d.currentImage.attr("title");if(u.substr(0,1)=="#")u=a(u).html();a(".nivo-caption",b).css("display")=="block"?a(".nivo-caption p",b).fadeOut(c.animSpeed,function(){a(this).html(u);a(this).fadeIn(c.animSpeed)}):a(".nivo-caption p",b).html(u);a(".nivo-caption",b).fadeIn(c.animSpeed)}else a(".nivo-caption",b).fadeOut(c.animSpeed);var m=0;a(".nivo-slice",b).each(function(){var i=
Math.round(b.width()/c.slices);a(this).css({height:"0px",opacity:"0",background:'url("'+d.currentImage.attr("src")+'") no-repeat -'+(i+m*i-i)+"px 0%"});m++});if(c.effect=="random"){h=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","slideInRight","slideInLeft"];d.randAnim=h[Math.floor(Math.random()*(h.length+1))];if(d.randAnim==undefined)d.randAnim="fade"}if(c.effect.indexOf(",")!=-1){h=c.effect.split(",");d.randAnim=h[Math.floor(Math.random()*
h.length)];if(d.randAnim==undefined)d.randAnim="fade"}d.running=true;if(c.effect=="sliceDown"||c.effect=="sliceDownRight"||d.randAnim=="sliceDownRight"||c.effect=="sliceDownLeft"||d.randAnim=="sliceDownLeft"){var n=0;m=0;w(b,c);h=a(".nivo-slice",b);if(c.effect=="sliceDownLeft"||d.randAnim=="sliceDownLeft")h=a(".nivo-slice",b)._reverse();h.each(function(){var i=a(this);i.css({top:"0px"});m==c.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed,"",function(){b.trigger("nivo:animFinished")})},
100+n):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed)},100+n);n+=50;m++})}else if(c.effect=="sliceUp"||c.effect=="sliceUpRight"||d.randAnim=="sliceUpRight"||c.effect=="sliceUpLeft"||d.randAnim=="sliceUpLeft"){m=n=0;w(b,c);h=a(".nivo-slice",b);if(c.effect=="sliceUpLeft"||d.randAnim=="sliceUpLeft")h=a(".nivo-slice",b)._reverse();h.each(function(){var i=a(this);i.css({bottom:"0px"});m==c.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed,"",
function(){b.trigger("nivo:animFinished")})},100+n):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed)},100+n);n+=50;m++})}else if(c.effect=="sliceUpDown"||c.effect=="sliceUpDownRight"||d.randAnim=="sliceUpDown"||c.effect=="sliceUpDownLeft"||d.randAnim=="sliceUpDownLeft"){var x=m=n=0;w(b,c);h=a(".nivo-slice",b);if(c.effect=="sliceUpDownLeft"||d.randAnim=="sliceUpDownLeft")h=a(".nivo-slice",b)._reverse();h.each(function(){var i=a(this);if(m==0){i.css("top","0px");m++}else{i.css("bottom",
"0px");m=0}x==c.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed,"",function(){b.trigger("nivo:animFinished")})},100+n):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed)},100+n);n+=50;x++})}else if(c.effect=="fold"||d.randAnim=="fold"){m=n=0;w(b,c);a(".nivo-slice",b).each(function(){var i=a(this),y=i.width();i.css({top:"0px",height:"100%",width:"0px"});m==c.slices-1?setTimeout(function(){i.animate({width:y,opacity:"1.0"},c.animSpeed,"",function(){b.trigger("nivo:animFinished")})},
100+n):setTimeout(function(){i.animate({width:y,opacity:"1.0"},c.animSpeed)},100+n);n+=50;m++})}else if(c.effect=="fade"||d.randAnim=="fade"){var q=a(".nivo-slice:first",b);q.css({height:"100%",width:b.width()+"px"});q.animate({opacity:"1.0"},c.animSpeed*2,"",function(){b.trigger("nivo:animFinished")})}else if(c.effect=="slideInRight"||d.randAnim=="slideInRight"){q=a(".nivo-slice:first",b);q.css({height:"100%",width:"0px",opacity:"1"});q.animate({width:b.width()+"px"},c.animSpeed*2,"",function(){b.trigger("nivo:animFinished")})}else if(c.effect==
"slideInLeft"||d.randAnim=="slideInLeft"){q=a(".nivo-slice:first",b);q.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"});q.animate({width:b.width()+"px"},c.animSpeed*2,"",function(){q.css({left:"0px",right:""});b.trigger("nivo:animFinished")})}},z=function(b){this.console&&typeof console.log!="undefined"&&console.log(b)};this.stop=function(){if(!a(s).data("nivo:vars").stop){a(s).data("nivo:vars").stop=true;z("Stop Slider")}};this.start=function(){if(a(s).data("nivo:vars").stop){a(s).data("nivo:vars").stop=
false;z("Start Slider")}};f.afterLoad.call(this)};a.fn.nivoSlider=function(s){return this.each(function(){var v=a(this);if(!v.data("nivoslider")){var f=new A(this,s);v.data("nivoslider",f)}})};a.fn.nivoSlider.defaults={effect:"random",slices:15,animSpeed:500,pauseTime:3E3,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:true,pauseOnHover:true,manualAdvance:false,
captionOpacity:0.8,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};a.fn._reverse=[].reverse})(jQuery);

/*!
 * jCarousel - Riding carousels with jQuery
 *   http://sorgalla.com/jcarousel/
 *
 * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Built on top of the jQuery library
 *   http://jquery.com
 *
 * Inspired by the "Carousel Component" by Bill Scott
 *   http://billwscott.com/carousel/
 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(9($){k 21={13:D,16:D,2P:1,2f:1,q:8,1j:3,R:8,2a:\'3z\',3b:\'3O\',1J:0,B:8,1D:8,2h:8,3d:8,35:8,38:8,39:8,36:8,37:8,33:8,2s:\'<1S></1S>\',2n:\'<1S></1S>\',24:\'2Y\',25:\'2Y\',1A:8,1H:8,2B:8},2i=D;$(1y).1z(\'3k.z\',9(){2i=U});$.z=9(e,o){4.5=$.1l({},21,o||{});4.T=D;4.1U=D;4.E=8;4.M=8;4.r=8;4.11=8;4.Y=8;4.2E=8;4.2F=8;6(!o||o.16===1d){4.5.16=($(e).1q(\'2m\')||$(\'3V\').1q(\'2m\')||\'\').3T()==\'16\'}4.F=!4.5.13?\'29\':\'30\';4.G=!4.5.13?(4.5.16?\'1Z\':\'1Y\'):\'2w\';k 1o=\'\',18=e.P.18(\' \');1k(k i=0;i<18.O;i++){6(18[i].2y(\'z-1o\')!=-1){$(e).1G(18[i]);1o=18[i];1w}}6(e.2o.2u()==\'3S\'||e.2o.2u()==\'3Q\'){4.r=$(e);4.E=4.r.1h();6(4.E.1E(\'z-M\')){6(!4.E.1h().1E(\'z-E\')){4.E=4.E.B(\'<1g></1g>\')}4.E=4.E.1h()}N 6(!4.E.1E(\'z-E\')){4.E=4.r.B(\'<1g></1g>\').1h()}}N{4.E=$(e);4.r=4.E.3J(\'3H,3L\').3M(0)}6(1o!==\'\'&&4.E.1h()[0].P.2y(\'z-1o\')==-1){4.E.B(\'<1g 4b=" \'+1o+\'"></1g>\')}4.M=4.r.1h();6(!4.M.O||!4.M.1E(\'z-M\')){4.M=4.r.B(\'<1g></1g>\').1h()}4.11=$(\'.2c\',4.E);6(4.11.q()===0&&4.5.2s!==8){4.11=4.M.1F(4.5.2s).1s()}4.11.V(4.P(\'2c\'));4.Y=$(\'.27\',4.E);6(4.Y.q()===0&&4.5.2n!==8){4.Y=4.M.1F(4.5.2n).1s()}4.Y.V(4.P(\'27\'));4.M.V(4.P(\'z-M\')).t({2N:\'2L\',2k:\'2l\'});4.r.V(4.P(\'z-r\')).t({2N:\'2L\',2k:\'2l\',2w:0,15:0,3W:0}).t((4.5.16?\'1Z\':\'1Y\'),0);4.E.V(4.P(\'z-E\')).t({2k:\'2l\'});6(!4.5.13&&4.5.16){4.E.V(\'z-3t-16\').1q(\'2m\',\'16\')}k 1v=4.5.R!==8?1K.2v(4.19()/4.5.R):8;k 1f=4.r.2X(\'1f\');k h=4;6(1f.q()>0){k F=0,j=4.5.2f;1f.1i(9(){h.1N(4,j++);F+=h.X(4,1v)});4.r.t(4.F,(F+3w)+\'W\');6(!o||o.q===1d){4.5.q=1f.q()}}4.E.t(\'1X\',\'1W\');4.11.t(\'1X\',\'1W\');4.Y.t(\'1X\',\'1W\');4.2b=9(){h.1s()};4.26=9(){h.2A()};4.2g=9(){h.2O()};6(4.5.1D!==8){4.5.1D(4,\'3j\')}6(!2i&&$.34.3c){4.1p(D,D);$(1y).1z(\'3k.z\',9(){h.1T()})}N{4.1T()}};k $y=$.z;$y.1L=$y.31={z:\'0.2.7\'};$y.1L.1l=$y.1l=$.1l;$y.1L.1l({1T:9(){4.u=8;4.C=8;4.14=8;4.1e=8;4.1n=D;4.1r=8;4.L=8;4.12=D;6(4.T){A}4.r.t(4.G,4.I(4.5.2f)+\'W\');k p=4.I(4.5.2P,U);4.14=4.1e=8;4.1x(p,D);$(1y).28(\'2G.z\',4.2g).1z(\'2G.z\',4.2g)},2J:9(){4.r.2Q();4.r.t(4.G,\'3v\');4.r.t(4.F,\'3u\');6(4.5.1D!==8){4.5.1D(4,\'2J\')}4.1T()},2O:9(){6(4.L!==8&&4.12){4.r.t(4.G,$y.K(4.r.t(4.G))+4.L)}4.L=8;4.12=D;6(4.5.2h!==8){4.5.2h(4)}6(4.5.R!==8){k h=4;k 1v=1K.2v(4.19()/4.5.R),F=0,G=0;4.r.2X(\'1f\').1i(9(i){F+=h.X(4,1v);6(i+1<h.u){G=F}});4.r.t(4.F,F+\'W\');4.r.t(4.G,-G+\'W\')}4.1j(4.u,D)},3E:9(){4.T=U;4.1p()},3D:9(){4.T=D;4.1p()},q:9(s){6(s!==1d){4.5.q=s;6(!4.T){4.1p()}}A 4.5.q},3r:9(i,1a){6(1a===1d||!1a){1a=i}6(4.5.q!==8&&1a>4.5.q){1a=4.5.q}1k(k j=i;j<=1a;j++){k e=4.J(j);6(!e.O||e.1E(\'z-1m-1O\')){A D}}A U},J:9(i){A $(\'.z-1m-\'+i,4.r)},2q:9(i,s){k e=4.J(i),1b=0,n=$(s);6(e.O===0){k c,j=$y.K(i);e=4.1Q(i);1B(U){c=4.J(--j);6(j<=0||c.O){6(j<=0){4.r.2K(e)}N{c.1F(e)}1w}}}N{1b=4.X(e)}6(n.J(0).2o.2u()==\'3B\'){e.3F(n);e=n}N{e.2Q().3m(s)}4.1N(e.1G(4.P(\'z-1m-1O\')),i);k 1v=4.5.R!==8?1K.2v(4.19()/4.5.R):8;k F=4.X(e,1v)-1b;6(i>0&&i<4.u){4.r.t(4.G,$y.K(4.r.t(4.G))-F+\'W\')}4.r.t(4.F,$y.K(4.r.t(4.F))+F+\'W\');A e},22:9(i){k e=4.J(i);6(!e.O||(i>=4.u&&i<=4.C)){A}k d=4.X(e);6(i<4.u){4.r.t(4.G,$y.K(4.r.t(4.G))+d+\'W\')}e.22();4.r.t(4.F,$y.K(4.r.t(4.F))-d+\'W\')},1s:9(){6(4.L!==8&&!4.12){4.2t(D)}N{4.1j(((4.5.B==\'2r\'||4.5.B==\'C\')&&4.5.q!==8&&4.C==4.5.q)?1:4.u+4.5.1j)}},2A:9(){6(4.L!==8&&4.12){4.2t(U)}N{4.1j(((4.5.B==\'2r\'||4.5.B==\'u\')&&4.5.q!==8&&4.u==1)?4.5.q:4.u-4.5.1j)}},2t:9(b){6(4.T||4.1n||!4.L){A}4.20();k I=$y.K(4.r.t(4.G));I=!b?I-4.L:I+4.L;4.12=!b;4.14=4.u;4.1e=4.C;4.1x(I)},1j:9(i,a){6(4.T||4.1n){A}4.20();4.1x(4.I(i),a)},I:9(i,2H){k I=$y.K(4.r.t(4.G));6(4.T||4.1n){A I}6(4.5.B!=\'17\'){i=i<1?1:(4.5.q&&i>4.5.q?4.5.q:i)}k 1c=4.u>i;k f=4.5.B!=\'17\'&&4.u<=1?1:4.u;k c=1c?4.J(f):4.J(4.C);k j=1c?f:f-1;k e=8,l=0,p=D,d=0,g;1B(1c?--j>=i:++j<i){e=4.J(j);p=!e.O;6(e.O===0){e=4.1Q(j).V(4.P(\'z-1m-1O\'));c[1c?\'2U\':\'1F\'](e);6(4.u!==8&&4.5.B==\'17\'&&4.5.q!==8&&(j<=0||j>4.5.q)){g=4.J(4.2C(j));6(g.O){e=4.2q(j,g.2R(U))}}}c=e;d=4.X(e);6(p){l+=d}6(4.u!==8&&(4.5.B==\'17\'||(j>=1&&(4.5.q===8||j<=4.5.q)))){I=1c?I+d:I-d}}k 19=4.19(),1P=[],R=0,v=0;c=4.J(i-1);j=i;1B(++R){e=4.J(j);p=!e.O;6(e.O===0){e=4.1Q(j).V(4.P(\'z-1m-1O\'));6(c.O===0){4.r.2K(e)}N{c[1c?\'2U\':\'1F\'](e)}6(4.u!==8&&4.5.B==\'17\'&&4.5.q!==8&&(j<=0||j>4.5.q)){g=4.J(4.2C(j));6(g.O){e=4.2q(j,g.2R(U))}}}c=e;d=4.X(e);6(d===0){46 2S 47(\'48: 45 29/30 44 1k 41. 42 43 49 3G 4f 4h. 4g...\')}6(4.5.B!=\'17\'&&4.5.q!==8&&j>4.5.q){1P.4e(e)}N 6(p){l+=d}v+=d;6(v>=19){1w}j++}1k(k x=0;x<1P.O;x++){1P[x].22()}6(l>0){4.r.t(4.F,4.X(4.r)+l+\'W\');6(1c){I-=l;4.r.t(4.G,$y.K(4.r.t(4.G))-l+\'W\')}}k C=i+R-1;6(4.5.B!=\'17\'&&4.5.q&&C>4.5.q){C=4.5.q}6(j>C){R=0;j=C;v=0;1B(++R){e=4.J(j--);6(!e.O){1w}v+=4.X(e);6(v>=19){1w}}}k u=C-R+1;6(4.5.B!=\'17\'&&u<1){u=1}6(4.12&&1c){I+=4.L;4.12=D}4.L=8;6(4.5.B!=\'17\'&&C==4.5.q&&(C-R+1)>=1){k m=$y.15(4.J(C),!4.5.13?\'1I\':\'2z\');6((v-m)>19){4.L=v-19-m}}6(2H&&i===4.5.q&&4.L){I-=4.L;4.12=U}1B(i-->u){I+=4.X(4.J(i))}4.14=4.u;4.1e=4.C;4.u=u;4.C=C;A I},1x:9(p,a){6(4.T||4.1n){A}4.1n=U;k h=4;k 2x=9(){h.1n=D;6(p===0){h.r.t(h.G,0)}6(!h.1U&&(h.5.B==\'17\'||h.5.B==\'2r\'||h.5.B==\'C\'||h.5.q===8||h.C<h.5.q||(h.C==h.5.q&&h.L!==8&&!h.12))){h.3l()}h.1p();h.2D(\'2M\');6(h.5.B==\'17\'&&h.5.q!==8){1k(k i=h.14;i<=h.1e;i++){6(i!==8&&!(i>=h.u&&i<=h.C)&&(i<1||i>h.5.q)){h.22(i)}}}};4.2D(\'3I\');6(!4.5.2a||a===D){4.r.t(4.G,p+\'W\');2x()}N{k o=!4.5.13?(4.5.16?{\'1Z\':p}:{\'1Y\':p}):{\'2w\':p};4.r.1x(o,4.5.2a,4.5.3b,2x)}},3l:9(s){6(s!==1d){4.5.1J=s}6(4.5.1J===0){A 4.3f()}6(4.1r!==8){A}4.1U=D;k h=4;4.1r=1y.3X(9(){h.1s()},4.5.1J*3Y)},3f:9(){4.20();4.1U=U},20:9(){6(4.1r===8){A}1y.3R(4.1r);4.1r=8},1p:9(n,p){6(n==8){n=!4.T&&4.5.q!==0&&((4.5.B&&4.5.B!=\'u\')||4.5.q===8||4.C<4.5.q);6(!4.T&&(!4.5.B||4.5.B==\'u\')&&4.5.q!==8&&4.C>=4.5.q){n=4.L!==8&&!4.12}}6(p==8){p=!4.T&&4.5.q!==0&&((4.5.B&&4.5.B!=\'C\')||4.u>1);6(!4.T&&(!4.5.B||4.5.B==\'C\')&&4.5.q!==8&&4.u==1){p=4.L!==8&&4.12}}k h=4;6(4.11.q()>0){4.11.28(4.5.24+\'.z\',4.2b);6(n){4.11.1z(4.5.24+\'.z\',4.2b)}4.11[n?\'1G\':\'V\'](4.P(\'2c-1V\')).1q(\'1V\',n?D:U);6(4.5.1A!==8&&4.11.1u(\'1M\')!=n){4.11.1i(9(){h.5.1A(h,4,n)}).1u(\'1M\',n)}}N{6(4.5.1A!==8&&4.2E!=n){4.5.1A(h,8,n)}}6(4.Y.q()>0){4.Y.28(4.5.25+\'.z\',4.26);6(p){4.Y.1z(4.5.25+\'.z\',4.26)}4.Y[p?\'1G\':\'V\'](4.P(\'27-1V\')).1q(\'1V\',p?D:U);6(4.5.1H!==8&&4.Y.1u(\'1M\')!=p){4.Y.1i(9(){h.5.1H(h,4,p)}).1u(\'1M\',p)}}N{6(4.5.1H!==8&&4.2F!=p){4.5.1H(h,8,p)}}4.2E=n;4.2F=p},2D:9(Q){k Z=4.14===8?\'3j\':(4.14<4.u?\'1s\':\'2A\');4.S(\'3d\',Q,Z);6(4.14!==4.u){4.S(\'35\',Q,Z,4.u);4.S(\'38\',Q,Z,4.14)}6(4.1e!==4.C){4.S(\'39\',Q,Z,4.C);4.S(\'36\',Q,Z,4.1e)}4.S(\'37\',Q,Z,4.u,4.C,4.14,4.1e);4.S(\'33\',Q,Z,4.14,4.1e,4.u,4.C)},S:9(1t,Q,Z,1C,1a,2T,2W){6(4.5[1t]==8||(2e 4.5[1t]!=\'2I\'&&Q!=\'2M\')){A}k S=2e 4.5[1t]==\'2I\'?4.5[1t][Q]:4.5[1t];6(!$.3K(S)){A}k h=4;6(1C===1d){S(h,Z,Q)}N 6(1a===1d){4.J(1C).1i(9(){S(h,4,1C,Z,Q)})}N{k 2p=9(i){h.J(i).1i(9(){S(h,4,i,Z,Q)})};1k(k i=1C;i<=1a;i++){6(i!==8&&!(i>=2T&&i<=2W)){2p(i)}}}},1Q:9(i){A 4.1N(\'<1f></1f>\',i)},1N:9(e,i){e=$(e);k 18=e.J(0).P.18(\' \');1k(k j=0;j<18.O;j++){6(18[j].2y(\'z-\')!=-1){e.1G(18[j])}}e.V(4.P(\'z-1m\')).V(4.P(\'z-1m-\'+i)).t({\'3i\':(4.5.16?\'1Z\':\'1Y\'),\'r-3x\':\'3e\'}).1q(\'3o\',i);A e},P:9(c){A c+\' \'+c+(!4.5.13?\'-3y\':\'-13\')},X:9(e,d){k H=e.3h!==1d?e[0]:e;k 1b=!4.5.13?(H.1R||$y.K(4.5.2B))+$y.15(H,\'3g\')+$y.15(H,\'1I\'):(H.2Z||$y.K(4.5.2B))+$y.15(H,\'32\')+$y.15(H,\'2z\');6(d==8||1b==d){A 1b}k w=!4.5.13?d-$y.15(H,\'3g\')-$y.15(H,\'1I\'):d-$y.15(H,\'32\')-$y.15(H,\'2z\');$(H).t(4.F,w+\'W\');A 4.X(H)},19:9(){A!4.5.13?4.M[0].1R-$y.K(4.M.t(\'3C\'))-$y.K(4.M.t(\'3A\')):4.M[0].2Z-$y.K(4.M.t(\'3n\'))-$y.K(4.M.t(\'3p\'))},2C:9(i,s){6(s==8){s=4.5.q}A 1K.4d((((i-1)/s)-1K.3N((i-1)/s))*s)+1}});$y.1l({21:9(d){A $.1l(21,d||{})},15:9(e,p){6(!e){A 0}k H=e.3h!==1d?e[0]:e;6(p==\'1I\'&&$.34.3c){k 1b={\'1X\':\'1W\',\'3i\':\'3e\',\'29\':\'1J\'},23,2d;$.3a(H,1b,9(){23=H.1R});1b.1I=0;$.3a(H,1b,9(){2d=H.1R});A 2d-23}A $y.K($.t(H,p))},K:9(v){v=3U(v,10);A 3P(v)?0:v}});$.1L.z=9(o){6(2e o==\'40\'){k 2j=$(4).1u(\'z\'),2V=4c.31.3Z.2p(3q,1);A 2j[o].3s(2j,2V)}N{A 4.1i(9(){$(4).1u(\'z\',2S $y(4,o))})}}})(4a);',62,266,'||||this|options|if||null|function||||||||self|||var||||||size|list||css|first||||jc|jcarousel|return|wrap|last|false|container|wh|lt|el|pos|get|intval|tail|clip|else|length|className|evt|visible|callback|locked|true|addClass|px|dimension|buttonPrev|state||buttonNext|inTail|vertical|prevFirst|margin|rtl|circular|split|clipping|i2|old|back|undefined|prevLast|li|div|parent|each|scroll|for|extend|item|animating|skin|buttons|attr|timer|next|cb|data|di|break|animate|window|bind|buttonNextCallback|while|i1|initCallback|hasClass|after|removeClass|buttonPrevCallback|marginRight|auto|Math|fn|jcarouselstate|format|placeholder|cache|create|offsetWidth|span|setup|autoStopped|disabled|block|display|left|right|pauseAuto|defaults|remove|oWidth|buttonNextEvent|buttonPrevEvent|funcPrev|scrollLt|unbind|width|animation|funcNext|scrollRt|oWidth2|typeof|offset|funcResize|reloadCallback|windowLoaded|instance|position|relative|dir|buttonPrevHTML|nodeName|call|add|both|buttonNextHTML|scrollTail|toUpperCase|ceil|top|scrolled|indexOf|marginBottom|prev|itemFallbackDimension|index|notify|buttonNextState|buttonPrevState|resize|fv|object|reset|prepend|hidden|onAfterAnimation|overflow|reload|start|empty|clone|new|i3|before|args|i4|children|click|offsetHeight|height|prototype|marginTop|itemVisibleOutCallback|browser|itemFirstInCallback|itemLastOutCallback|itemVisibleInCallback|itemFirstOutCallback|itemLastInCallback|swap|easing|safari|itemLoadCallback|none|stopAuto|marginLeft|jquery|float|init|load|startAuto|append|borderTopWidth|jcarouselindex|borderBottomWidth|arguments|has|apply|direction|10px|0px|100|style|horizontal|normal|borderRightWidth|LI|borderLeftWidth|unlock|lock|replaceWith|an|ul|onBeforeAnimation|find|isFunction|ol|eq|floor|swing|isNaN|OL|clearTimeout|UL|toLowerCase|parseInt|html|padding|setTimeout|1000|slice|string|items|This|will|set|No|throw|Error|jCarousel|cause|jQuery|class|Array|round|push|infinite|Aborting|loop'.split('|'),0,{}));


// ///////////////////////////////////////////////////////////
// jQuery Funtions
// ///////////////////////////////////////////////////////////

$(document).ready(function(){
	$("a[rel='imgView']").colorbox();
	$('.vidScroll').jcarousel({ scroll: 1 });
	$('.vidScroll2').jcarousel({ scroll: 1 });
	$('.slider').nivoSlider({effect:'fade', pauseTime: 4000, directionNavHide: false });
});



// ///////////////////////////////////////////////////////////
// New Email Signup Validation
// ///////////////////////////////////////////////////////////

function emailCheck (emailStr) {
	var emailPat=/^(.+)@(.+)$/;
	var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";
	var validChars="\[^\\s" + specialChars + "\]";
	var quotedUser="(\"[^\"]*\")";
	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
	var atom=validChars + '+';
	var word="(" + atom + "|" + quotedUser + ")";
	var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
	var matchArray=emailStr.match(emailPat);

	if (matchArray==null) {
		alert("Email address seems incorrect (check @ and .'s)");
		return false;
	}
	return true;
}


function UPTvalidateform(thisform){
	if ( emailCheck(thisform.email.value) ){	
		return false;
	}

	else {
		return true;
	}
}
