var arrowimages,jqueryslidemenu,scrolltotop;jQuery.noConflict()(function(n){n(document).ready(function(){n(function(){n("#main-slider").anythingSlider({startStopped:!1,hashTags:!1,toggleArrows:!1,buildArrows:!1,enablePlay:!0,autoPlayLocked:!1,resumeDelay:1e4,easing:"swing",delay:4500,animationTime:600,onSlideComplete:function(){}})})})});jQuery.noConflict()(function(){jQuery(document).ready(function(n){n(window).load(function(){n("#slider").nivoSlider()})})});jQuery.noConflict()(function(n){n(document).ready(function(){n("#Blueprint").anchorScroll();n("#Web").anchorScroll();n("#Development").anchorScroll();n("#SEO").anchorScroll();n("#Hosting").anchorScroll();n("#shop").anchorScroll();n("#ASPNetMVC").anchorScroll();n("#ASPnetWebForms").anchorScroll();n("#Silverlight").anchorScroll();n("#WordPress").anchorScroll()})});jQuery.noConflict()(function(){jQuery(document).ready(function(n){n(".tab-content").hide();n("ul.tabs li:first").addClass("active").show();n(".tab-content:first").show();n("ul.tabs li").click(function(){n("ul.tabs li").removeClass("active");n(this).addClass("active");n(".tab-content").hide();var t=n(this).find("a").attr("href");return n(t).fadeIn(),!1})})});jQuery.noConflict()(function(n){n(document).ready(function(){n("#typograpy-test").cycle({fx:"scrollDown",prev:"#prev",next:"#next",easing:"bounceout",delay:-2e3})})});jQuery.noConflict()(function(n){n(document).ready(function(){n("#testimonials").cycle({fx:"scrollDown",speedIn:800,speedOut:800,delay:7e3})})});jQuery.noConflict()(function(n){n(document).ready(function(){n("#details").cycle({fx:"fade",prev:"#prev",next:"#next",speedIn:800,speedOut:800,delay:7e3})})});jQuery.noConflict()(function(n){n(document).ready(function(){n("a[rel^='prettyPhoto']").prettyPhoto({opacity:.8,default_width:500,default_height:344,theme:"light_rounded",hideflash:!1,modal:!1})})});jQuery.noConflict()(function(n){n(document).ready(function(){n("#social-1").simpletooltip();n("#social-2").simpletooltip();n("#social-3").simpletooltip();n("#social-4").simpletooltip();n("#social-5").simpletooltip();n("#social-6").simpletooltip();n("#social-7").simpletooltip();n("#social-8").simpletooltip();n("#social-9").simpletooltip();n("#social-10").simpletooltip();n("#social-11").simpletooltip();n("#social-12").simpletooltip();n("#social-13").simpletooltip();n("#social-14").simpletooltip();n("#social-15").simpletooltip();n("#social-16").simpletooltip();n("#social-17").simpletooltip();n("#social-18").simpletooltip();n("#social-19").simpletooltip();n("#social-20").simpletooltip();n("#social-21").simpletooltip();n("#social-22").simpletooltip();n("#social-23").simpletooltip();n("#social-24").simpletooltip();n("#color-1").simpletooltip();n("#color-2").simpletooltip();n("#color-3").simpletooltip();n("#color-4").simpletooltip();n("#color-5").simpletooltip();n("#color-6").simpletooltip();n("#color-7").simpletooltip();n("#color-8").simpletooltip()})});jQuery.noConflict()(function(n){n(document).ready(function(){n(".tweet").tweet({username:"stronico",join_text:null,avatar_size:null,count:1,auto_join_text_default:"we said,",auto_join_text_ed:"we",auto_join_text_ing:"we were",auto_join_text_reply:"we replied to",auto_join_text_url:"we were checking out",loading_text:"loading tweets..."})})});jQuery.noConflict()(function(n){n(document).ready(function(){n(".portfolio-img").each(function(){n(this).hover(function(){n(this).stop().animate({opacity:.5},600)},function(){n(this).stop().animate({opacity:1},400)})})})});jQuery.noConflict()(function(n){n(document).ready(function(){n("form#contact-form").submit(function(){var t,i;return n("form#contact-form .simple-error").remove(),t=!1,n(".requiredField").each(function(){var r,i;jQuery.trim(n(this).val())==""?(i=n(this).prev("label").text(),n(this).parent().append('<div class="simple-error">You forgot to enter your '+i+"<\/div>"),n(this).addClass("inputError"),t=!0):n(this).hasClass("email")&&(r=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/,r.test(jQuery.trim(n(this).val()))||(i=n(this).prev("label").text(),n(this).parent().append('<div class="simple-error">You entered an invalid '+i+"<\/div>"),n(this).addClass("inputError"),t=!0))}),t||(n("form#contact-form input.submit").fadeOut("normal",function(){n(this).parent().append("")}),i=n(this).serialize(),n.post(n(this).attr("action"),i,function(){n("form#contact-form").slideUp("fast",function(){n(this).before('<p class="simple-success">Your email was successfully sent. We will contact you as soon as possible.<\/p>')})})),!1})})});arrowimages={down:["",""],right:["",""]};jqueryslidemenu={animateduration:{over:200,out:200},buildmenu:function(n){jQuery(document).ready(function(t){t(" #main_navigation a").removeAttr("title");var i=t("#"+n+">ul"),r=i.find("ul").parent();r.each(function(){var u=t(this),r=t(this).find("ul:eq(0)"),i,n;this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:r.outerWidth(),subulh:r.outerHeight()};this.istopheader=u.parents("ul").length==1?!0:!1;r.css({top:this.istopheader?this._dimensions.h+"px":0});i=t(this).children("ul:eq(0)");this._offsets={left:t(this).offset().left,top:t(this).offset().top};n=this.istopheader?0:this._dimensions.w;n=this._offsets.left+n+this._dimensions.subulw>t(window).width()?(this.istopheader?-this._dimensions.subulw+this._dimensions.w:-this._dimensions.w)+12:n;i.queue().length<=1&&n==0&&i.css({left:n+"px",width:this._dimensions.subulw+"px"}).removeClass("menu_flip");n!=0&&this.istopheader?i.css({left:n+"px",width:this._dimensions.subulw+"px"}).addClass("menu_flip"):i.css({left:n+"px",width:this._dimensions.subulw+"px"}).removeClass("menu_flip");u.hover(function(){var i=t(this).children("ul:eq(0)"),n;this._offsets={left:t(this).offset().left,top:t(this).offset().top};n=this.istopheader?0:this._dimensions.w;n=this._offsets.left+n+this._dimensions.subulw>t(window).width()?(this.istopheader?-this._dimensions.subulw+this._dimensions.w:-this._dimensions.w)+12:n;i.queue().length<=1&&n==0&&i.css({left:n+"px",width:this._dimensions.subulw+"px"}).removeClass("menu_flip").slideDown(jqueryslidemenu.animateduration.over);n!=0&&this.istopheader?i.css({left:n+"px",width:this._dimensions.subulw+"px"}).addClass("menu_flip").slideDown(jqueryslidemenu.animateduration.over):i.css({left:n+"px",width:this._dimensions.subulw+"px"}).removeClass("menu_flip").slideDown(jqueryslidemenu.animateduration.over)},function(){var n=t(this).children("ul:eq(0)");n.slideUp(jqueryslidemenu.animateduration.out)})});i.find("ul").css({display:"none",visibility:"visible"})})}};jqueryslidemenu.buildmenu("main_navigation",arrowimages),function(n){n.anythingSlider=function(t,i){var r=this;r.$el=n(t).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /><\/div>');r.$el.data("AnythingSlider",r);r.init=function(){r.options=n.extend({},n.anythingSlider.defaults,i);n.isFunction(r.options.onBeforeInitialize)&&r.$el.bind("before_initialize",r.options.onBeforeInitialize);r.$el.trigger("before_initialize",r);r.$wrapper=r.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+r.options.theme);r.$window=r.$el.closest("div.anythingWindow");r.$controls=n('<div class="anythingControls"><\/div>').appendTo(r.options.appendControlsTo!==null&&n(r.options.appendControlsTo).length?n(r.options.appendControlsTo):r.$wrapper);r.win=window;r.$win=n(r.win);r.$nav=n('<ul class="thumbNav" />').appendTo(r.$controls);r.timer=null;r.flag=!1;r.playing=!1;r.hovered=!1;r.panelSize=[];r.currentPage=r.options.startPanel;r.adjustLimit=r.options.infiniteSlides?0:1;r.options.playRtl&&r.$wrapper.addClass("rtl");r.options.easing!=="swing"&&r.$el.css("margin-left","100px");r.original=[r.options.autoPlay,r.options.buildNavigation,r.options.buildArrows];r.updateSlider();r.$lastPage=r.$currentPage;r.runTimes=n("div.anythingSlider").index(r.$wrapper)+1;r.regex=new RegExp("panel"+r.runTimes+"-(\\d+)","i");n.isFunction(n.easing[r.options.easing])||(r.options.easing="swing");r.options.theme==="default"||n("link[href*="+r.options.theme+"]").length||n("head").append('<link rel="stylesheet" href="'+r.options.themeDirectory.replace(/\{themeName\}/g,r.options.theme)+'" type="text/css" />');r.options.pauseOnHover&&r.$wrapper.hover(function(){r.playing&&(r.$el.trigger("slideshow_paused",r),r.clearTimer(!0))},function(){r.playing&&(r.$el.trigger("slideshow_unpaused",r),r.startStop(r.playing,!0))});var t,u=r.options.hashTags?r.gotoHash()||r.options.startPanel:r.options.startPanel;r.setCurrentPage(u,!1);r.slideControls(!1);r.$wrapper.bind("mouseenter mouseleave",function(n){r.hovered=n.type==="mouseenter"?!0:!1;r.slideControls(r.hovered,!1)});r.options.enableKeyboard&&n(document).keyup(function(n){if(r.$wrapper.is(".activeSlider")&&!n.target.tagName.match("TEXTAREA|INPUT|SELECT"))switch(n.which){case 39:r.goForward();break;case 37:r.goBack()}});t="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");n.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(i,u){n.isFunction(r.options[u])&&r.$el.bind(t[i],r.options[u])});n.isFunction(r.options.onSlideComplete)&&r.$el.bind("slide_complete",function(){setTimeout(function(){r.options.onSlideComplete(r)},0)});r.$el.trigger("initialized",r)};r.updateSlider=function(){r.$el.find("li.cloned").remove();r.$nav.empty();r.$items=r.$el.find("> li");r.pages=r.$items.length;r.options.resizeContents&&(r.options.width&&r.$wrapper.add(r.$items).css("width",r.options.width),r.options.height&&r.$wrapper.add(r.$items).css("height",r.options.height));r.pages===1?(r.options.autoPlay=!1,r.options.buildNavigation=!1,r.options.buildArrows=!1,r.$controls.hide(),r.$nav.hide(),r.$forward&&r.$forward.add(r.$back).hide()):(r.options.autoPlay=r.original[0],r.options.buildNavigation=r.original[1],r.options.buildArrows=r.original[2],r.$controls.show(),r.$nav.show(),r.$forward&&r.$forward.add(r.$back).show());r.buildNavigation();r.options.autoPlay&&(r.playing=!r.options.startStopped,r.buildAutoPlay());r.options.buildArrows&&r.buildNextBackButtons();r.$el.prepend(r.options.infiniteSlides?r.$items.filter(":last").clone().addClass("cloned").removeAttr("id"):n('<li class="cloned" />'));r.$el.append(r.options.infiniteSlides?r.$items.filter(":first").clone().addClass("cloned").removeAttr("id"):n('<li class="cloned" />'));r.$el.find("li.cloned").each(function(){n(this).html(n(this).html().replace(/<a/gi,"<span").replace(/\/a>/gi,"/span>"));n(this).find("[id]").removeAttr("id")});r.$items=r.$el.find("> li").addClass("panel");r.setDimensions();r.options.resizeContents||r.$win.load(function(){r.setDimensions()});r.currentPage>r.pages&&(r.currentPage=r.pages,r.setCurrentPage(r.pages,!1));r.$nav.find("a").eq(r.currentPage-1).addClass("cur");r.$controls.show();r.hasEmb=r.$items.find("embed[src*=youtube]").length;r.hasSwfo=typeof swfobject!="undefined"&&swfobject.hasOwnProperty("embedSWF")&&n.isFunction(swfobject.embedSWF)?!0:!1;r.hasEmb&&r.hasSwfo&&r.$items.find("embed[src*=youtube]").each(function(t){var i=n(this).parent()[0].tagName==="OBJECT"?n(this).parent():n(this);i.wrap('<div id="ytvideo'+t+'"><\/div>');swfobject.embedSWF(n(this).attr("src")+"&enablejsapi=1&version=3&playerapiid=ytvideo"+t,"ytvideo"+t,i.attr("width"),i.attr("height"),"10",null,null,{allowScriptAccess:"always",wmode:r.options.addWmodeToObject,allowfullscreen:!0},{"class":i.attr("class"),style:i.attr("style")},function(){t>=r.hasEmb-1&&r.$el.trigger("swf_completed",r)})});r.$items.find("a").unbind("focus").bind("focus",function(t){r.$items.find(".focusedLink").removeClass("focusedLink");n(this).addClass("focusedLink");var i=n(this).closest(".panel");i.is(".activePage")||(r.gotoPage(r.$items.index(i)),t.preventDefault())})};r.buildNavigation=function(){var i,u,t;r.options.buildNavigation&&r.pages>1&&r.$items.filter(":not(.cloned)").each(function(f){var e=f+1;u=(e===1?"first":"")+(e===r.pages?"last":"");t=n('<a href="#"><\/a>').addClass("panel"+e).wrap('<li class="'+u+'" />');r.$nav.append(t.parent());n.isFunction(r.options.navigationFormatter)?(i=r.options.navigationFormatter(e,n(this)),t.html(i),parseInt(t.css("text-indent"),10)<0&&t.addClass(r.options.tooltipClass).attr("title",i)):t.text(e);t.bind(r.options.clickControls,function(n){!r.flag&&r.options.enableNavigation&&(r.flag=!0,setTimeout(function(){r.flag=!1},100),r.gotoPage(e),r.options.hashTags&&r.setHash(e));n.preventDefault()})})};r.buildNextBackButtons=function(){r.$forward||(r.$forward=n('<span class="arrow forward"><a href="#">'+r.options.forwardText+"<\/a><\/span>"),r.$back=n('<span class="arrow back"><a href="#">'+r.options.backText+"<\/a><\/span>"),r.$back.bind(r.options.clickArrows,function(n){r.goBack();n.preventDefault()}),r.$forward.bind(r.options.clickArrows,function(n){r.goForward();n.preventDefault()}),r.$back.add(r.$forward).find("a").bind("focusin focusout",function(){n(this).toggleClass("hover")}),r.$wrapper.prepend(r.$forward).prepend(r.$back),r.$arrowWidth=r.$forward.width())};r.buildAutoPlay=function(){r.$startStop||(r.$startStop=n("<a href='#' class='start-stop'><\/a>").html(r.playing?r.options.stopText:r.options.startText),r.$controls.prepend(r.$startStop),r.$startStop.bind(r.options.clickSlideshow,function(n){r.options.enablePlay&&(r.startStop(!r.playing),r.playing&&(r.options.playRtl?r.goBack(!0):r.goForward(!0)));n.preventDefault()}).bind("focusin focusout",function(){n(this).toggleClass("hover")}),r.startStop(r.playing))};r.setDimensions=function(){var t,u,i,f,o,e=parseInt(r.$el.css("margin-left"),10),s=r.$window.width(),h=r.$win.width();r.$items.each(function(c){i=n(this).children("*");r.options.resizeContents?(t=parseInt(r.options.width,10)||s,u=parseInt(r.options.height,10)||r.$window.height(),n(this).css({width:t,height:u}),i.length===1&&(i.css({width:"100%",height:"100%"}),i[0].tagName==="OBJECT"&&i.find("embed").andSelf().attr({width:"100%",height:"100%"}))):(t=n(this).width(),o=t>=h?!0:!1,i.length===1&&o&&(f=i.width()>=h?s:i.width(),n(this).css("width",f),i.css("max-width",f),t=f),t=o?r.options.width||s:t,n(this).css("width",t),u=n(this).outerHeight(),n(this).css("height",u));r.panelSize[c]=[t,u,e];e+=t});r.$el.css("width",e<r.options.maxOverallWidth?e:r.options.maxOverallWidth)};r.gotoPage=function(n,t,i){r.pages!==1&&((r.$lastPage=r.$currentPage,typeof n!="number"&&(n=r.options.startPage,r.setCurrentPage(r.options.startPage)),r.hasEmb&&r.checkVideo(r.playing))||(n>r.pages+1-r.adjustLimit&&(n=!r.options.infiniteSlides&&!r.options.stopAtEnd?1:r.pages),n<r.adjustLimit&&(n=!r.options.infiniteSlides&&!r.options.stopAtEnd?r.pages:1),r.currentPage=n>r.pages?r.pages:n<1?1:r.currentPage,r.$currentPage=r.$items.eq(r.currentPage-1),r.exactPage=n,r.$el.trigger("slide_init",r),r.slideControls(!0,!1),t!==!0&&(t=!1),(!t||r.options.stopAtEnd&&n===r.pages)&&r.startStop(!1),r.$el.trigger("slide_begin",r),r.options.resizeContents||r.$wrapper.filter(":not(:animated)").animate({width:r.panelSize[n][0],height:r.panelSize[n][1]},{queue:!1,duration:r.options.animationTime,easing:r.options.easing}),r.$window.filter(":not(:animated)").animate({scrollLeft:r.panelSize[n][2]},{queue:!1,duration:r.options.animationTime,easing:r.options.easing,complete:function(){r.endAnimation(n,i)}})))};r.endAnimation=function(t,i){if(t===0?(r.$window.scrollLeft(r.panelSize[r.pages][2]),t=r.pages):t>r.pages&&(r.$window.scrollLeft(r.panelSize[1][2]),t=1),r.exactPage=t,r.setCurrentPage(t,!1),r.$items.removeClass("activePage").eq(t).addClass("activePage"),r.hovered||r.slideControls(!1),r.hasEmb){var u=r.$currentPage.find("object[id*=ytvideo], embed[id*=ytvideo]");u.length&&n.isFunction(u[0].getPlayerState)&&u[0].getPlayerState()>0&&u[0].getPlayerState()!==5&&u[0].playVideo()}r.$el.trigger("slide_complete",r);typeof i=="function"&&i(r);r.options.autoPlayLocked&&!r.playing&&setTimeout(function(){r.startStop(!0)},r.options.resumeDelay-r.options.delay)};r.setCurrentPage=function(t,i){t>r.pages+1-r.adjustLimit&&(t=r.pages-r.adjustLimit);t<r.adjustLimit&&(t=1);r.options.buildNavigation&&(r.$nav.find(".cur").removeClass("cur"),r.$nav.find("a").eq(t-1).addClass("cur"));!r.options.infiniteSlides&&r.options.stopAtEnd&&(r.$wrapper.find("span.forward")[t===r.pages?"addClass":"removeClass"]("disabled"),r.$wrapper.find("span.back")[t===1?"addClass":"removeClass"]("disabled"),t===r.pages&&r.playing&&r.startStop());i||(r.$wrapper.css({width:r.panelSize[t][0],height:r.panelSize[t][1]}),r.$wrapper.scrollLeft(0),r.$window.scrollLeft(r.panelSize[t][2]));r.currentPage=t;r.$currentPage=r.$items.eq(t).addClass("activePage");r.$wrapper.is(".activeSlider")||(n(".activeSlider").removeClass("activeSlider"),r.$wrapper.addClass("activeSlider"))};r.goForward=function(n){n!==!0&&(n=!1,r.startStop(!1));r.gotoPage(r.currentPage+1,n)};r.goBack=function(n){n!==!0&&(n=!1,r.startStop(!1));r.gotoPage(r.currentPage-1,n)};r.gotoHash=function(){var n=r.win.location.hash.match(r.regex);return n===null?"":parseInt(n[1],10)};r.setHash=function(n){var i="panel"+r.runTimes+"-",t=r.win.location.hash;typeof t!="undefined"&&(r.win.location.hash=t.indexOf(i)>0?t.replace(r.regex,i+n):t+"&"+i+n)};r.slideControls=function(n){var f=n?"slideDown":"slideUp",t=n?0:r.options.animationTime,e=n?r.options.animationTime:0,i=n?1:0,u=n?0:1;r.options.toggleControls&&r.$controls.stop(!0,!0).delay(t)[f](r.options.animationTime/2).delay(e);r.options.buildArrows&&r.options.toggleArrows&&(!r.hovered&&r.playing&&(u=1,i=0),r.$forward.stop(!0,!0).delay(t).animate({right:u*r.$arrowWidth,opacity:i},r.options.animationTime/2),r.$back.stop(!0,!0).delay(t).animate({left:u*r.$arrowWidth,opacity:i},r.options.animationTime/2))};r.clearTimer=function(n){r.timer&&(r.win.clearInterval(r.timer),n||r.$el.trigger("slideshow_stop",r))};r.startStop=function(n,t){n!==!0&&(n=!1);n&&!t&&r.$el.trigger("slideshow_start",r);r.playing=n;r.options.autoPlay&&(r.$startStop.toggleClass("playing",n).html(n?r.options.stopText:r.options.startText),parseInt(r.$startStop.css("text-indent"),10)<0&&r.$startStop.addClass(r.options.tooltipClass).attr("title",n?"Stop":"Start"));n?(r.clearTimer(!0),r.timer=r.win.setInterval(function(){r.hasEmb&&r.checkVideo(n)||(r.options.playRtl?r.goBack(!0):r.goForward(!0))},r.options.delay)):r.clearTimer()};r.checkVideo=function(t){var i,u,f=!1;return r.$items.find("object[id*=ytvideo], embed[id*=ytvideo]").each(function(){i=n(this);i.length&&n.isFunction(i[0].getPlayerState)&&(u=i[0].getPlayerState(),t&&(u===1||u>2)&&r.$items.index(i.closest("li.panel"))===r.currentPage&&r.options.resumeOnVideoEnd?f=!0:u>0&&i[0].pauseVideo())}),f};r.init()};n.anythingSlider.defaults={width:null,height:null,resizeContents:!0,tooltipClass:"tooltip",theme:"default",themeDirectory:"css/theme-{themeName}.css",startPanel:1,hashTags:!0,infiniteSlides:!0,enableKeyboard:!0,buildArrows:!0,toggleArrows:!1,buildNavigation:!0,enableNavigation:!0,toggleControls:!1,appendControlsTo:null,navigationFormatter:null,forwardText:"&raquo;",backText:"&laquo;",enablePlay:!0,autoPlay:!0,autoPlayLocked:!1,startStopped:!1,pauseOnHover:!0,resumeOnVideoEnd:!0,stopAtEnd:!1,playRtl:!1,startText:"Start",stopText:"Stop",delay:3e3,resumeDelay:15e3,animationTime:600,easing:"swing",clickArrows:"click",clickControls:"click focusin",clickSlideshow:"click",addWmodeToObject:"opaque",maxOverallWidth:32766};n.fn.anythingSlider=function(t,i){return this.each(function(){var u,r=n(this).data("AnythingSlider");(typeof t).match("object|undefined")?r?r.updateSlider():new n.anythingSlider(this,t):/\d/.test(t)&&!isNaN(t)&&r&&(u=typeof t=="number"?t:parseInt(n.trim(t),10),u>=1&&u<=r.pages&&r.gotoPage(u,!1,i))})}}(jQuery),function(n){function i(i){n.fn.cycle.debug&&t(i)}function t(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function h(i,u,f){function s(i,u,f){if(!i&&u===!0){var o=n(f).data("cycle.opts");if(!o)return t("options not found, can not resume"),!1;f.cycleTimeout&&(clearTimeout(f.cycleTimeout),f.cycleTimeout=0);r(o.elements,o,1,!e.rev&&!e.backwards)}}var e,o;if(i.cycleStop==undefined&&(i.cycleStop=0),(u===undefined||u===null)&&(u={}),u.constructor==String){switch(u){case"destroy":case"stop":return(e=n(i).data("cycle.opts"),!e)?!1:(i.cycleStop++,i.cycleTimeout&&clearTimeout(i.cycleTimeout),i.cycleTimeout=0,n(i).removeData("cycle.opts"),u=="destroy"&&c(e),!1);case"toggle":return i.cyclePause=i.cyclePause===1?0:1,s(i.cyclePause,f,i),!1;case"pause":return i.cyclePause=1,!1;case"resume":return i.cyclePause=0,s(!1,f,i),!1;case"prev":case"next":return(e=n(i).data("cycle.opts"),!e)?(t('options not found, "prev/next" ignored'),!1):(n.fn.cycle[u](e),!1);default:u={fx:u}}return u}return u.constructor==Number?(o=u,u=n(i).data("cycle.opts"),!u)?(t("options not found, can not advance slide"),!1):o<0||o>=u.elements.length?(t("invalid slide index: "+o),!1):(u.nextSlide=o,i.cycleTimeout&&(clearTimeout(i.cycleTimeout),i.cycleTimeout=0),typeof f=="string"&&(u.oneTimeFx=f),r(u.elements,u,1,o>=u.currSlide),!1):u}function f(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function c(t){t.next&&n(t.next).unbind(t.prevNextEvent);t.prev&&n(t.prev).unbind(t.prevNextEvent);(t.pager||t.pagerAnchorBuilder)&&n.each(t.pagerAnchors||[],function(){this.unbind().remove()});t.pagerAnchors=null;t.destroy&&t.destroy(t)}function l(i,e,s,h,c){var l=n.extend({},n.fn.cycle.defaults,h||{},n.metadata?i.metadata():n.meta?i.data():{}),ot,nt,p,st,k,d,tt,ft,ht,et,b;if(l.autostop&&(l.countdown=l.autostopCount||s.length),ot=i[0],i.data("cycle.opts",l),l.$cont=i,l.stopCount=ot.cycleStop,l.elements=s,l.before=l.before?[l.before]:[],l.after=l.after?[l.after]:[],l.after.unshift(function(){l.busy=0}),!n.support.opacity&&l.cleartype&&l.after.push(function(){f(this,l)}),l.continuous&&l.after.push(function(){r(s,l,0,!l.rev&&!l.backwards)}),a(l),n.support.opacity||!l.cleartype||l.cleartypeNoBg||o(e),i.css("position")=="static"&&i.css("position","relative"),l.width&&i.width(l.width),l.height&&l.height!="auto"&&i.height(l.height),l.startingSlide?l.startingSlide=parseInt(l.startingSlide):l.backwards&&(l.startingSlide=s.length-1),l.random){for(l.randomMap=[],nt=0;nt<s.length;nt++)l.randomMap.push(nt);l.randomMap.sort(function(){return Math.random()-.5});l.randomIndex=1;l.startingSlide=l.randomMap[1]}else l.startingSlide>=s.length&&(l.startingSlide=0);if(l.currSlide=l.startingSlide||0,p=l.startingSlide,e.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=l.backwards?p?t<=p?s.length+(t-p):p-t:s.length-t:p?t>=p?s.length-(t-p):p-t:s.length-t;n(this).css("z-index",i)}),n(s[p]).css("opacity",1).show(),f(s[p],l),l.fit&&l.width&&e.width(l.width),l.fit&&l.height&&l.height!="auto"&&e.height(l.height),st=l.containerResize&&!i.innerHeight(),st){for(k=0,d=0,tt=0;tt<s.length;tt++){var g=n(s[tt]),it=g[0],rt=g.outerWidth(),ut=g.outerHeight();rt||(rt=it.offsetWidth||it.width||g.attr("width"));ut||(ut=it.offsetHeight||it.height||g.attr("height"));k=rt>k?rt:k;d=ut>d?ut:d}k>0&&d>0&&i.css({width:k+"px",height:d+"px"})}if((l.pause&&i.hover(function(){this.cyclePause++},function(){this.cyclePause--}),v(l)===!1)||(ft=!1,h.requeueAttempts=h.requeueAttempts||0,e.each(function(){var i=n(this);if(this.cycleH=l.fit&&l.height?l.height:i.height()||this.offsetHeight||this.height||i.attr("height")||0,this.cycleW=l.fit&&l.width?l.width:i.width()||this.offsetWidth||this.width||i.attr("width")||0,i.is("img")){var r=n.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,u=n.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,f=n.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,e=this.cycleH==0&&this.cycleW==0&&!this.complete;if(r||u||f||e){if(c.s&&l.requeueOnImageNotLoaded&&++h.requeueAttempts<100)return t(h.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(c.s,c.c).cycle(h)},l.requeueTimeout),ft=!0,!1;t("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),ft))return!1;if(l.cssBefore=l.cssBefore||{},l.animIn=l.animIn||{},l.animOut=l.animOut||{},e.not(":eq("+p+")").css(l.cssBefore),l.cssFirst&&n(e[p]).css(l.cssFirst),l.timeout)for(l.timeout=parseInt(l.timeout),l.speed.constructor==String&&(l.speed=n.fx.speeds[l.speed]||parseInt(l.speed)),l.sync||(l.speed=l.speed/2),ht=l.fx=="shuffle"?500:250;l.timeout-l.speed<ht;)l.timeout+=l.speed;if(l.easing&&(l.easeIn=l.easeOut=l.easing),l.speedIn||(l.speedIn=l.speed),l.speedOut||(l.speedOut=l.speed),l.slideCount=s.length,l.currSlide=l.lastSlide=p,l.random?(++l.randomIndex==s.length&&(l.randomIndex=0),l.nextSlide=l.randomMap[l.randomIndex]):l.nextSlide=l.backwards?l.startingSlide==0?s.length-1:l.startingSlide-1:l.startingSlide>=s.length-1?0:l.startingSlide+1,!l.multiFx)if(et=n.fn.cycle.transitions[l.fx],n.isFunction(et))et(i,e,l);else if(l.fx!="custom"&&!l.multiFx)return t("unknown transition: "+l.fx,"; slideshow terminating"),!1;return b=e[p],l.before.length&&l.before[0].apply(b,[b,b,l,!0]),l.after.length>1&&l.after[1].apply(b,[b,b,l,!0]),l.next&&n(l.next).bind(l.prevNextEvent,function(){return u(l,l.rev?-1:1)}),l.prev&&n(l.prev).bind(l.prevNextEvent,function(){return u(l,l.rev?1:-1)}),(l.pager||l.pagerAnchorBuilder)&&w(s,l),y(l,s),l}function a(t){t.original={before:[],after:[]};t.original.cssBefore=n.extend({},t.cssBefore);t.original.cssAfter=n.extend({},t.cssAfter);t.original.animIn=n.extend({},t.animIn);t.original.animOut=n.extend({},t.animOut);n.each(t.before,function(){t.original.before.push(this)});n.each(t.after,function(){t.original.after.push(this)})}function v(r){var u,f,e=n.fn.cycle.transitions,o,s,h;if(r.fx.indexOf(",")>0){for(r.multiFx=!0,r.fxs=r.fx.replace(/\s*/g,"").split(","),u=0;u<r.fxs.length;u++)o=r.fxs[u],f=e[o],f&&e.hasOwnProperty(o)&&n.isFunction(f)||(t("discarding unknown transition: ",o),r.fxs.splice(u,1),u--);if(!r.fxs.length)return t("No valid transitions named; slideshow terminating."),!1}else if(r.fx=="all"){r.multiFx=!0;r.fxs=[];for(p in e)f=e[p],e.hasOwnProperty(p)&&n.isFunction(f)&&r.fxs.push(p)}if(r.multiFx&&r.randomizeEffects){for(s=Math.floor(Math.random()*20)+30,u=0;u<s;u++)h=Math.floor(Math.random()*r.fxs.length),r.fxs.push(r.fxs.splice(h,1)[0]);i("randomized fx sequence: ",r.fxs)}return!0}function y(t,i){t.addSlide=function(r,u){var f=n(r),e=f[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](e),t.els&&t.els[u?"unshift":"push"](e),t.slideCount=i.length,f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||o(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&$slides.height(t.height),e.cycleH=t.fit&&t.height?t.height:f.height(),e.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,e,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function r(t,u,f,o){var y,a,p,c,v;if(f&&u.busy&&u.manualTrump&&(i("manualTrump in go(), stopping active transition"),n(t).stop(!0,!0),u.busy=!1),u.busy){i("transition active, ignoring new tx request");return}var l=u.$cont[0],h=t[u.currSlide],s=t[u.nextSlide];if(l.cycleStop==u.stopCount&&(l.cycleTimeout!==0||f)){if(!f&&!l.cyclePause&&!u.bounce&&(u.autostop&&--u.countdown<=0||u.nowrap&&!u.random&&u.nextSlide<u.currSlide)){u.end&&u.end(u);return}y=!1;(f||!l.cyclePause)&&u.nextSlide!=u.currSlide&&(y=!0,a=u.fx,h.cycleH=h.cycleH||n(h).height(),h.cycleW=h.cycleW||n(h).width(),s.cycleH=s.cycleH||n(s).height(),s.cycleW=s.cycleW||n(s).width(),u.multiFx&&((u.lastFx==undefined||++u.lastFx>=u.fxs.length)&&(u.lastFx=0),a=u.fxs[u.lastFx],u.currFx=a),u.oneTimeFx&&(a=u.oneTimeFx,u.oneTimeFx=null),n.fn.cycle.resetState(u,a),u.before.length&&n.each(u.before,function(n,t){l.cycleStop==u.stopCount&&t.apply(s,[h,s,u,o])}),p=function(){n.each(u.after,function(n,t){l.cycleStop==u.stopCount&&t.apply(s,[h,s,u,o])})},i("tx firing; currSlide: "+u.currSlide+"; nextSlide: "+u.nextSlide),u.busy=1,u.fxFn?u.fxFn(h,s,u,p,o,f&&u.fastOnEvent):n.isFunction(n.fn.cycle[u.fx])?n.fn.cycle[u.fx](h,s,u,p,o,f&&u.fastOnEvent):n.fn.cycle.custom(h,s,u,p,o,f&&u.fastOnEvent));(y||u.nextSlide==u.currSlide)&&(u.lastSlide=u.currSlide,u.random?(u.currSlide=u.nextSlide,++u.randomIndex==t.length&&(u.randomIndex=0),u.nextSlide=u.randomMap[u.randomIndex],u.nextSlide==u.currSlide&&(u.nextSlide=u.currSlide==u.slideCount-1?0:u.currSlide+1)):u.backwards?(c=u.nextSlide-1<0,c&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=1,u.currSlide=0):(u.nextSlide=c?t.length-1:u.nextSlide-1,u.currSlide=c?0:u.nextSlide+1)):(c=u.nextSlide+1==t.length,c&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=t.length-2,u.currSlide=t.length-1):(u.nextSlide=c?0:u.nextSlide+1,u.currSlide=c?t.length-1:u.nextSlide-1)));y&&u.pager&&u.updateActivePagerLink(u.pager,u.currSlide,u.activePagerClass);v=0;u.timeout&&!u.continuous?v=e(t[u.currSlide],t[u.nextSlide],u,o):u.continuous&&l.cyclePause&&(v=10);v>0&&(l.cycleTimeout=setTimeout(function(){r(t,u,0,!u.rev&&!u.backwards)},v))}}function e(n,t,r,u){if(r.timeoutFn){for(var f=r.timeoutFn.call(n,n,t,r,u);f-r.speed<250;)f+=r.speed;if(i("calculated timeout: "+f+"; speed: "+r.speed),f!==!1)return f}return r.timeout}function u(t,i){var u=t.elements,e=t.$cont[0],o=e.cycleTimeout,f;if(o&&(clearTimeout(o),e.cycleTimeout=0),t.random&&i<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=u.length-2:t.randomIndex==-1&&(t.randomIndex=u.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+i,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=u.length-1}else if(t.nextSlide>=u.length){if(t.nowrap)return!1;t.nextSlide=0}return f=t.onPrevNextEvent||t.prevNextClick,n.isFunction(f)&&f(i>0,t.nextSlide,u[t.nextSlide]),r(u,t,1,i>=0),!1}function w(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)});i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function o(t){function r(n){return n=parseInt(n).toString(16),n.length<2?"0"+n:n}function u(t){for(var i,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(i=n.css(t,"background-color"),i.indexOf("rgb")>=0)return u=i.match(/\d+/g),"#"+r(u[0])+r(u[1])+r(u[2]);if(i&&i!="transparent")return i}return"#ffffff"}i("applying clearType background-color hack");t.each(function(){n(this).css("background-color",u(this))})}var s="2.88";n.support==undefined&&(n.support={opacity:!n.browser.msie});n.fn.cycle=function(u,f){var o={s:this.selector,c:this.context};return this.length===0&&u!="stop"?!n.isReady&&o.s?(t("DOM not ready, queuing slideshow"),n(function(){n(o.s,o.c).cycle(u,f)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var c=h(this,u,f),s,a;if(c!==!1){c.updateActivePagerLink=c.updateActivePagerLink||n.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var y=n(this),p=c.slideExpr?n(c.slideExpr,this):y.children(),v=p.get();if(v.length<2){t("terminating; too few slides: "+v.length);return}(s=l(y,p,v,c,o),s!==!1)&&(a=s.continuous?10:e(v[s.currSlide],v[s.nextSlide],s,!s.rev),a&&(a+=s.delay||0,a<10&&(a=10),i("first timeout: "+a),this.cycleTimeout=setTimeout(function(){r(v,s,0,!s.rev&&!c.backwards)},a)))}})};n.fn.cycle.resetState=function(t,i){i=i||t.fx;t.before=[];t.after=[];t.cssBefore=n.extend({},t.original.cssBefore);t.cssAfter=n.extend({},t.original.cssAfter);t.animIn=n.extend({},t.original.animIn);t.animOut=n.extend({},t.original.animOut);t.fxFn=null;n.each(t.original.before,function(){t.before.push(this)});n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)};n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).children().removeClass(r).eq(i).addClass(r)})};n.fn.cycle.next=function(n){u(n,n.rev?-1:1)};n.fn.cycle.prev=function(n){u(n,n.rev?1:-1)};n.fn.cycle.createPagerAnchor=function(t,u,f,e,o){var h,s,c;(n.isFunction(o.pagerAnchorBuilder)?(h=o.pagerAnchorBuilder(t,u),i("pagerAnchorBuilder("+t+", el) returned: "+h)):h='<a href="#">'+(t+1)+"<\/a>",h)&&(s=n(h),s.parents("body").length===0&&(c=[],f.length>1?(f.each(function(){var t=s.clone(!0);n(this).append(t);c.push(t[0])}),s=n(c)):s.appendTo(f)),o.pagerAnchors=o.pagerAnchors||[],o.pagerAnchors.push(s),s.bind(o.pagerEvent,function(i){var u,f,s;i.preventDefault();o.nextSlide=t;u=o.$cont[0];f=u.cycleTimeout;f&&(clearTimeout(f),u.cycleTimeout=0);s=o.onPagerEvent||o.pagerClick;n.isFunction(s)&&s(o.nextSlide,e[o.nextSlide]);r(e,o,1,o.currSlide<t)}),/^click/.test(o.pagerEvent)||o.allowPagerClickBubble||s.bind("click.cycle",function(){return!1}),o.pauseOnPagerHover&&s.hover(function(){o.$cont[0].cyclePause++},function(){o.$cont[0].cyclePause--}))};n.fn.cycle.hopsFromLast=function(n,t){var i=n.lastSlide,r=n.currSlide;return t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r};n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide();r.cssBefore.opacity=1;r.cssBefore.display="block";u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW);f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH);r.cssAfter=r.cssAfter||{};r.cssAfter.display="none";n(t).css("zIndex",r.slideCount+(e===!0?1:0));n(i).css("zIndex",r.slideCount+(e===!0?0:1))};n.fn.cycle.custom=function(t,i,r,u,f,e){var h=n(t),c=n(i),l=r.speedIn,o=r.speedOut,a=r.easeIn,v=r.easeOut,s;c.css(r.cssBefore);e&&(l=typeof e=="number"?o=e:o=1,a=v=null);s=function(){c.animate(r.animIn,l,a,u)};h.animate(r.animOut,o,v,function(){r.cssAfter&&h.css(r.cssAfter);r.sync||s()});r.sync&&s()};n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0);r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.cssBefore.opacity=0});r.animIn={opacity:1};r.animOut={opacity:0};r.cssBefore={top:0,left:0}}};n.fn.cycle.ver=function(){return s};n.fn.cycle.defaults={fx:"fade",timeout:4e3,timeoutFn:null,continuous:0,speed:1e3,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:!1,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:!0,requeueOnImageNotLoaded:!0,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:!1}}(jQuery),function(n){n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show();n(t).hide();u()}};n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore={top:u,left:0};r.cssFirst={top:0};r.animIn={top:0};r.animOut={top:-u}};n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst={top:0};r.cssBefore={top:-u,left:0};r.animIn={top:0};r.animOut={top:u}};n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst={left:0};r.cssBefore={left:u,top:0};r.animIn={left:0};r.animOut={left:0-u}};n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst={left:0};r.cssBefore={left:-u,top:0};r.animIn={left:0};r.animOut={left:u}};n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width();r.before.push(function(t,i,r,u){n.fn.cycle.commonReset(t,i,r);r.cssBefore.left=u?i.cycleW-1:1-i.cycleW;r.animOut.left=u?-t.cycleW:t.cycleW});r.cssFirst={left:0};r.cssBefore={top:0};r.animIn={left:0};r.animOut={top:0}};n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden");r.before.push(function(t,i,r,u){n.fn.cycle.commonReset(t,i,r);r.cssBefore.top=u?1-i.cycleH:i.cycleH-1;r.animOut.top=u?t.cycleH:-t.cycleH});r.cssFirst={top:0};r.cssBefore={left:0};r.animIn={top:0};r.animOut={left:0}};n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW});r.cssBefore={left:0,top:0,width:0};r.animIn={width:"show"};r.animOut={width:0}};n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH});r.cssBefore={left:0,top:0,height:0};r.animIn={height:"show"};r.animOut={height:0}};n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e=f?n(t):n(i),o;n(i).css(r.cssBefore);o=r.slideCount;e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var l=n.fn.cycle.hopsFromLast(r,f),i,h,c,s=0;s<l;s++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,h=r.els.length;i<h;i++)n(r.els[i]).css("z-index",h-i+o);else c=n(t).css("z-index"),e.css("z-index",parseInt(c)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide();u&&u()})})};r.cssBefore={display:"block",opacity:1,top:0,left:0}};n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=i.cycleH;r.animIn.height=i.cycleH});r.cssFirst={top:0};r.cssBefore={left:0,height:0};r.animIn={top:0};r.animOut={height:0}};n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssFirst={top:0};r.cssBefore={left:0,top:0,height:0};r.animOut={height:0}};n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=i.cycleW;r.animIn.width=i.cycleW});r.cssBefore={top:0,width:0};r.animIn={left:0};r.animOut={width:0}};n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});r.cssBefore={top:0,left:0,width:0};r.animIn={left:0};r.animOut={width:0}};n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0);r.cssBefore.top=i.cycleH/2;r.cssBefore.left=i.cycleW/2;r.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH};r.animOut={width:0,height:0,top:t.cycleH/2,left:t.cycleW/2}});r.cssFirst={top:0,left:0};r.cssBefore={width:0,height:0}};n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1);r.cssBefore.left=i.cycleW/2;r.cssBefore.top=i.cycleH/2;r.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH}});r.cssBefore={width:0,height:0};r.animOut={opacity:0}};n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});r.cssBefore={left:u,top:0};r.animIn={left:0};r.animOut={left:u}};n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore={top:u,left:0};r.animIn={top:0};r.animOut={top:u}};n.fn.cycle.transitions.blindZ=function(t,i,r){var u=t.css("overflow","hidden").height(),f=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore={top:u,left:f};r.animIn={top:0,left:0};r.animOut={top:u,left:f}};n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=this.cycleW/2;r.animIn={left:0,width:this.cycleW};r.animOut={left:0}});r.cssBefore={width:0,top:0}};n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=this.cycleH/2;r.animIn={top:0,height:this.cycleH};r.animOut={top:0}});r.cssBefore={height:0,left:0}};n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0);r.cssBefore.left=i.cycleW/2;r.animIn={left:0,width:this.cycleW};r.animOut={left:t.cycleW/2,width:0}});r.cssBefore={top:0,width:0}};n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0);r.cssBefore.top=i.cycleH/2;r.animIn={top:0,height:i.cycleH};r.animOut={top:t.cycleH/2,height:0}});r.cssBefore={left:0,height:0}};n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);u=="right"?r.cssBefore.left=-f:u=="up"?r.cssBefore.top=e:u=="down"?r.cssBefore.top=-e:r.cssBefore.left=f});r.animIn={left:0,top:0};r.animOut={opacity:1};r.cssBefore={top:0,left:0}};n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);u=="right"?r.animOut.left=f:u=="up"?r.animOut.top=-e:u=="down"?r.animOut.top=e:r.animOut.left=-f});r.animIn={left:0,top:0};r.animOut={opacity:1};r.cssBefore={top:0,left:0}};n.fn.cycle.transitions.toss=function(t,i,r){var u=t.css("overflow","visible").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);r.animOut.left||r.animOut.top?r.animOut.opacity=0:r.animOut={left:u*2,top:-f/2,opacity:0}});r.cssBefore={left:0,top:0};r.animIn={left:0}};n.fn.cycle.transitions.wipe=function(t,i,r){var u=t.css("overflow","hidden").width(),f=t.height(),e,s,h;r.cssBefore=r.cssBefore||{};r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+f+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+u+"px "+f+"px "+u+"px)":/t2b/.test(r.clip)?e="rect(0px "+u+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+f+"px "+u+"px "+f+"px 0px)":/zoom/.test(r.clip)&&(s=parseInt(f/2),h=parseInt(u/2),e="rect("+s+"px "+h+"px "+s+"px "+h+"px)"));r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),c=parseInt(o[0]),l=parseInt(o[1]),a=parseInt(o[2]),v=parseInt(o[3]);r.before.push(function(t,i,r){var s,h,e,o;t!=i&&(s=n(t),h=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13)-1,function y(){var n=c?c-parseInt(e*(c/o)):0,t=v?v-parseInt(e*(v/o)):0,i=a<f?a+parseInt(e*((f-a)/o||1)):f,r=l<u?l+parseInt(e*((u-l)/o||1)):u;h.css({clip:"rect("+n+"px "+r+"px "+i+"px "+t+"px)"});e++<=o?setTimeout(y,13):s.css("display","none")}())});r.cssBefore={display:"block",opacity:1,top:0,left:0};r.animIn={left:0};r.animOut={left:0}}}(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}});jQuery.extend(jQuery.easing,{easeIn:function(n,t,i,r,u){return jQuery.easing.easeInQuad(n,t,i,r,u)},easeOut:function(n,t,i,r,u){return jQuery.easing.easeOutQuad(n,t,i,r,u)},easeInOut:function(n,t,i,r,u){return jQuery.easing.easeInOutQuad(n,t,i,r,u)},expoin:function(n,t,i,r,u){return jQuery.easing.easeInExpo(n,t,i,r,u)},expoout:function(n,t,i,r,u){return jQuery.easing.easeOutExpo(n,t,i,r,u)},expoinout:function(n,t,i,r,u){return jQuery.easing.easeInOutExpo(n,t,i,r,u)},bouncein:function(n,t,i,r,u){return jQuery.easing.easeInBounce(n,t,i,r,u)},bounceout:function(n,t,i,r,u){return jQuery.easing.easeOutBounce(n,t,i,r,u)},bounceinout:function(n,t,i,r,u){return jQuery.easing.easeInOutBounce(n,t,i,r,u)},elasin:function(n,t,i,r,u){return jQuery.easing.easeInElastic(n,t,i,r,u)},elasout:function(n,t,i,r,u){return jQuery.easing.easeOutElastic(n,t,i,r,u)},elasinout:function(n,t,i,r,u){return jQuery.easing.easeInOutElastic(n,t,i,r,u)},backin:function(n,t,i,r,u){return jQuery.easing.easeInBack(n,t,i,r,u)},backout:function(n,t,i,r,u){return jQuery.easing.easeOutBack(n,t,i,r,u)},backinout:function(n,t,i,r,u){return jQuery.easing.easeInOutBack(n,t,i,r,u)}}),function(n){function t(n,t){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r="[\\?&]"+n+"=([^&#]*)",u=new RegExp(r),i=u.exec(t);return i==null?"":i[1]}n.prettyPhoto={version:"3.1"};n.fn.prettyPhoto=function(i){function y(){n(".pp_loaderIcon").hide();$ppt.fadeTo(settings.animation_speed,1);projectedTop=scroll_pos.scrollTop+(f/2-r.containerHeight/2);projectedTop<0&&(projectedTop=0);$pp_pic_holder.find(".pp_content").animate({height:r.contentHeight,width:r.contentWidth},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:e/2-r.containerWidth/2,width:r.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(r.height).width(r.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);isSet&&p(pp_images[set_position])=="image"?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide();r.resized?n("a.pp_expand,a.pp_contract").show():n("a.pp_expand").hide();!settings.autoplay_slideshow||h||a||n.prettyPhoto.startSlideshow();settings.changepicturecallback();a=!0});rt()}function k(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){n(".pp_loaderIcon").show();t()})}function tt(t){t>1?n(".pp_nav").show():n(".pp_nav").hide()}function u(n,t){if(resized=!1,d(n,t),imageWidth=n,imageHeight=t,(s>e||o>f)&&doresize&&settings.allow_resize&&!l){for(resized=!0,fitting=!1;!fitting;)s>e?(imageWidth=e-200,imageHeight=t/n*imageWidth):o>f?(imageHeight=f-200,imageWidth=n/t*imageHeight):fitting=!0,o=imageHeight,s=imageWidth;d(imageWidth,imageHeight);(s>e||o>f)&&u(s,o)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(o),containerWidth:Math.floor(s)+settings.horizontal_padding*2,contentHeight:Math.floor(v),contentWidth:Math.floor(b),resized:resized}}function d(t,i){t=parseFloat(t);i=parseFloat(i);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(t);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(n("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;n.browser.msie&&n.browser.version==7&&(detailsHeight+=8);$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(t);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(n("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();v=i+detailsHeight;b=t;o=v+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();s=t}function p(n){return n.match(/youtube\.com\/watch/i)?"youtube":n.match(/vimeo\.com/i)?"vimeo":n.match(/\b.mov\b/i)?"quicktime":n.match(/\b.swf\b/i)?"flash":n.match(/\biframe=true\b/i)?"iframe":n.match(/\bajax=true\b/i)?"ajax":n.match(/\bcustom=true\b/i)?"custom":n.substr(0,1)=="#"?"inline":"image"}function w(){if(doresize&&typeof $pp_pic_holder!="undefined"){if(scroll_pos=g(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=f/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>f)return;$pp_pic_holder.css({top:projectedTop,left:e/2+scroll_pos.scrollLeft-contentwidth/2})}}function g(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function it(){f=n(window).height();e=n(window).width();typeof $pp_overlay!="undefined"&&$pp_overlay.height(n(document).height()).width(e)}function rt(){isSet&&settings.overlay_gallery&&p(pp_images[set_position])=="image"&&settings.ie6_fallback&&!(n.browser.msie&&parseInt(n.browser.version)==6)?(itemWidth=57,navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30,itemsPerPage=Math.floor((r.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,totalPage==0?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,n.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}function nt(){if(n("body").append(settings.markup),$pp_pic_holder=n(".pp_pic_holder"),$ppt=n(".ppt"),$pp_overlay=n("div.pp_overlay"),isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var t=0;t<pp_images.length;t++)pp_images[t].match(/\b(jpg|jpeg|png|gif)\b/gi)?(classname="",img_src=pp_images[t]):(classname="default",img_src=""),toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /><\/a><\/li>";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=n(".pp_pic_holder .pp_gallery");$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){return n.prettyPhoto.changeGalleryPage("next"),n.prettyPhoto.stopSlideshow(),!1});$pp_gallery.find(".pp_arrow_previous").click(function(){return n.prettyPhoto.changeGalleryPage("previous"),n.prettyPhoto.stopSlideshow(),!1});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=57;$pp_gallery_li.each(function(t){n(this).find("a").click(function(){return n.prettyPhoto.changePage(t),n.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play<\/a>'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return n.prettyPhoto.startSlideshow(),!1}));$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:n(document).height(),width:n(window).width()}).bind("click",function(){settings.modal||n.prettyPhoto.close()});n("a.pp_close").bind("click",function(){return n.prettyPhoto.close(),!1});n("a.pp_expand").bind("click",function(){return n(this).hasClass("pp_expand")?(n(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(n(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),k(function(){n.prettyPhoto.open()}),!1});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return n.prettyPhoto.changePage("previous"),n.prettyPhoto.stopSlideshow(),!1});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return n.prettyPhoto.changePage("next"),n.prettyPhoto.stopSlideshow(),!1});w()}i=jQuery.extend({animation_speed:"fast",slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,overlay_gallery:!0,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'<div class="pp_pic_holder">       <div class="ppt">&nbsp;<\/div>       <div class="pp_top">        <div class="pp_left"><\/div>        <div class="pp_middle"><\/div>        <div class="pp_right"><\/div>       <\/div>       <div class="pp_content_container">        <div class="pp_left">        <div class="pp_right">         <div class="pp_content">          <div class="pp_loaderIcon"><\/div>          <div class="pp_fade">           <a href="#" class="pp_expand" title="Expand the image">Expand<\/a>           <div class="pp_hoverContainer">            <a class="pp_next" href="#">next<\/a>            <a class="pp_previous" href="#">previous<\/a>           <\/div>           <div id="pp_full_res"><\/div>           <div class="pp_details">            <div class="pp_nav">             <a href="#" class="pp_arrow_previous">Previous<\/a>             <p class="currentTextHolder">0/0<\/p>             <a href="#" class="pp_arrow_next">Next<\/a>            <\/div>            <p class="pp_description"><\/p>            <a class="pp_close" href="#">Close<\/a>           <\/div>          <\/div>         <\/div>        <\/div>        <\/div>       <\/div>       <div class="pp_bottom">        <div class="pp_left"><\/div>        <div class="pp_middle"><\/div>        <div class="pp_right"><\/div>       <\/div>      <\/div>      <div class="pp_overlay"><\/div>',gallery_markup:'<div class="pp_gallery">         <a href="#" class="pp_arrow_previous">Previous<\/a>         <div>          <ul>           {gallery}          <\/ul>         <\/div>         <a href="#" class="pp_arrow_next">Next<\/a>        <\/div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"><\/embed><\/object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"><\/embed><\/object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"><\/iframe>',inline_markup:'<div class="pp_inline">{content}<\/div>',custom_markup:""},i);var c=this,l=!1,r,a,v,b,o,s,f=n(window).height(),e=n(window).width(),h;return doresize=!0,scroll_pos=g(),n(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){w();it()}),i.keyboard_shortcuts&&n(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if(typeof $pp_pic_holder!="undefined"&&$pp_pic_holder.is(":visible"))switch(t.keyCode){case 37:n.prettyPhoto.changePage("previous");t.preventDefault();break;case 39:n.prettyPhoto.changePage("next");t.preventDefault();break;case 27:settings.modal||n.prettyPhoto.close();t.preventDefault()}}),n.prettyPhoto.initialize=function(){return settings=i,settings.theme=="pp_default"&&(settings.horizontal_padding=16),settings.ie6_fallback&&n.browser.msie&&parseInt(n.browser.version)==6&&(settings.theme="light_square"),theRel=n(this).attr("rel"),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(c,function(t){if(n(t).attr("rel").indexOf(theRel)!=-1)return n(t).attr("href")}):n.makeArray(n(this).attr("href")),pp_titles=isSet?jQuery.map(c,function(t){if(n(t).attr("rel").indexOf(theRel)!=-1)return n(t).find("img").attr("alt")?n(t).find("img").attr("alt"):""}):n.makeArray(n(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(c,function(t){if(n(t).attr("rel").indexOf(theRel)!=-1)return n(t).attr("title")?n(t).attr("title"):""}):n.makeArray(n(this).attr("title")),set_position=jQuery.inArray(n(this).attr("href"),pp_images),nt(this),settings.allow_resize&&n(window).bind("scroll.prettyphoto",function(){w()}),n.prettyPhoto.open(),!1},n.prettyPhoto.open=function(f){return typeof settings=="undefined"&&(settings=i,n.browser.msie&&n.browser.version==6&&(settings.theme="light_square"),pp_images=n.makeArray(arguments[0]),pp_titles=arguments[1]?n.makeArray(arguments[1]):n.makeArray(""),pp_descriptions=arguments[2]?n.makeArray(arguments[2]):n.makeArray(""),isSet=pp_images.length>1?!0:!1,set_position=0,nt(f.target)),n.browser.msie&&n.browser.version==6&&n("select").css("visibility","hidden"),settings.hideflash&&n("object,embed").css("visibility","hidden"),tt(n(pp_images).size()),n(".pp_loaderIcon").show(),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+n(pp_images).size()),$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])),movie_width=parseFloat(t("width",pp_images[set_position]))?t("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(t("height",pp_images[set_position]))?t("height",pp_images[set_position]):settings.default_height.toString(),movie_height.indexOf("%")!=-1&&(movie_height=parseFloat(n(window).height()*parseFloat(movie_height)/100-150),l=!0),movie_width.indexOf("%")!=-1&&(movie_width=parseFloat(n(window).width()*parseFloat(movie_width)/100-150),l=!0),$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;");imgPreloader="";skipInjection=!1;switch(p(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;isSet&&set_position<n(pp_images).size()-1&&(nextImage.src=pp_images[set_position+1]);prevImage=new Image;isSet&&pp_images[set_position-1]&&(prevImage.src=pp_images[set_position-1]);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){r=u(imgPreloader.width,imgPreloader.height);y()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");n.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":r=u(movie_width,movie_height);movie="http://www.youtube.com/embed/"+t("v",pp_images[set_position]);settings.autoplay&&(movie+="?autoplay=1");toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":r=u(movie_width,movie_height);movie_id=pp_images[set_position];var i=movie_id.match(/http:\/\/(www\.)?vimeo.com\/(\d+)/);movie="http://player.vimeo.com/video/"+i[2]+"?title=0&amp;byline=0&amp;portrait=0";settings.autoplay&&(movie+="&autoplay=1;");vimeo_width=r.width+"/embed/?moog_width="+r.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,r.height).replace(/{path}/g,movie);break;case"quicktime":r=u(movie_width,movie_height);r.height+=15;r.contentHeight+=15;r.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":r=u(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":r=u(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1;r=u(movie_width,movie_height);doresize=!0;skipInjection=!0;n.get(pp_images[set_position],function(n){toInject=settings.inline_markup.replace(/{content}/g,n);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;y()});break;case"custom":r=u(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=n(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"><\/div><\/div>').appendTo(n("body")).show();doresize=!1;r=u(n(myClone).width(),n(myClone).height());doresize=!0;n(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,n(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,y())}),!1},n.prettyPhoto.changePage=function(t){currentGalleryPage=0;t=="previous"?(set_position--,set_position<0&&(set_position=n(pp_images).size()-1)):t=="next"?(set_position++,set_position>n(pp_images).size()-1&&(set_position=0)):set_position=t;doresize||(doresize=!0);n(".pp_contract").removeClass("pp_contract").addClass("pp_expand");k(function(){n.prettyPhoto.open()})},n.prettyPhoto.changeGalleryPage=function(n){n=="next"?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0),slide_speed=settings.animation_speed):n=="previous"?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage),slide_speed=settings.animation_speed):(currentGalleryPage=n,slide_speed=0);slide_to=currentGalleryPage*itemsPerPage*itemWidth;itemsToSlide=currentGalleryPage==totalPage?pp_images.length-totalPage*itemsPerPage:itemsPerPage;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},n.prettyPhoto.startSlideshow=function(){typeof h=="undefined"?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return n.prettyPhoto.stopSlideshow(),!1}),h=setInterval(n.prettyPhoto.startSlideshow,settings.slideshow)):n.prettyPhoto.changePage("next")},n.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return n.prettyPhoto.startSlideshow(),!1});clearInterval(h);h=undefined},n.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(n.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),n("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){n(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){n.browser.msie&&n.browser.version==6&&n("select").css("visibility","visible");settings.hideflash&&n("object,embed").css("visibility","visible");n(this).remove();n(window).unbind("scroll.prettyphoto");settings.callback();doresize=!0;a=!1;delete settings}))},this.unbind("click.prettyphoto").bind("click.prettyphoto",n.prettyPhoto.initialize)}}(jQuery),function(n){n.fn.tweet=function(t){function r(n){return Date.parse(n.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}function u(n){var r=arguments.length>1?arguments[1]:new Date,t=parseInt((r.getTime()-n)/1e3,10),i="";return i=t<60?t+" seconds ago":t<120?"a minute ago":t<2700?parseInt(t/60,10).toString()+" minutes ago":t<7200?"an hour ago":t<86400?""+parseInt(t/3600,10).toString()+" hours ago":t<172800?"a day ago":parseInt(t/86400,10).toString()+" days ago","about "+i}function f(){var n="https:"==document.location.protocol?"https:":"http:",t=i.fetch===null?i.count:i.fetch,r;return i.list?n+"//"+i.twitter_api_url+"/1/"+i.username[0]+"/lists/"+i.list+"/statuses.json?per_page="+t+"&callback=?":i.favorites?n+"//"+i.twitter_api_url+"/favorites/"+i.username[0]+".json?count="+i.count+"&callback=?":i.query===null&&i.username.length==1?n+"//"+i.twitter_api_url+"/1/statuses/user_timeline.json?screen_name="+i.username[0]+"&count="+t+(i.retweets?"&include_rts=1":"")+"&callback=?":(r=i.query||"from:"+i.username.join(" OR from:"),n+"//"+i.twitter_search_url+"/search.json?&q="+encodeURIComponent(r)+"&rpp="+t+"&callback=?")}var i=n.extend({username:null,list:null,favorites:!1,query:null,avatar_size:null,count:1,fetch:null,retweets:!0,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:"i said,",auto_join_text_ed:"i",auto_join_text_ing:"i am",auto_join_text_reply:"i replied to",auto_join_text_url:"i was looking at",loading_text:null,refresh_interval:null,twitter_url:"twitter.com",twitter_api_url:"api.twitter.com",twitter_search_url:"search.twitter.com",template:"{avatar}{text}{join}{time}",comparator:function(n,t){return t.tweet_time-n.tweet_time},filter:function(){return!0}},t);return n.fn.extend({linkUrl:function(){var t=[],i=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi;return this.each(function(){t.push(this.replace(i,function(n){var t=/^[a-z]+:/i.test(n)?n:"http://"+n;return'<a href="'+t+'">'+n+"<\/a>"}))}),n(t)},linkUser:function(){var t=[],r=/[\@]+(\w+)/gi;return this.each(function(){t.push(this.replace(r,'@<a href="http://'+i.twitter_url+'/$1">$1<\/a>'))}),n(t)},linkHash:function(){var t=[],r=/(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi,u=i.username&&i.username.length==1?"&from="+i.username.join("%2BOR%2B"):"";return this.each(function(){t.push(this.replace(r,' <a href="http://'+i.twitter_search_url+"/search?q=&tag=$1&lang=all"+u+'">#$1<\/a>'))}),n(t)},capAwesome:function(){var t=[];return this.each(function(){t.push(this.replace(/\b(awesome)\b/gi,'<span class="awesome">$1<\/span>'))}),n(t)},capEpic:function(){var t=[];return this.each(function(){t.push(this.replace(/\b(epic)\b/gi,'<span class="epic">$1<\/span>'))}),n(t)},makeHeart:function(){var t=[];return this.each(function(){t.push(this.replace(/(&lt;)+[3]/gi,"<tt class='heart'>&#x2665;<\/tt>"))}),n(t)}}),this.each(function(t,e){var o=n('<ul class="tweet_list">').appendTo(e),c='<p class="tweet_intro">'+i.intro_text+"<\/p>",l='<p class="tweet_outro">'+i.outro_text+"<\/p>",s=n('<p class="loading">'+i.loading_text+"<\/p>"),h;i.username&&typeof i.username=="string"&&(i.username=[i.username]);h=function(n){var t,r,u;if(typeof i.template=="string"){t=i.template;for(r in n)u=n[r],t=t.replace(new RegExp("{"+r+"}","g"),u===null?"":u);return t}return i.template(n)};i.loading_text&&n(e).append(s);n(e).bind("load",function(){n.getJSON(f(),function(t){i.loading_text&&s.remove();i.intro_text&&o.before(c);o.empty();var f=n.map(t.results||t,function(t){var h=i.join_text;i.join_text=="auto"&&(h=t.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)?i.auto_join_text_reply:t.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)?i.auto_join_text_url:t.text.match(/^((\w+ed)|just) .*/im)?i.auto_join_text_ed:t.text.match(/^(\w*ing) .*/i)?i.auto_join_text_ing:i.auto_join_text_default);var f=t.from_user||t.user.screen_name,b=t.source,o="http://"+i.twitter_url+"/"+f,e=i.avatar_size,c=t.profile_image_url||t.user.profile_image_url,l="http://"+i.twitter_url+"/"+f+"/status/"+t.id_str,s=typeof t.retweeted_status!="undefined",a=s?t.retweeted_status.user.screen_name:null,v=r(t.created_at),y=u(v),p=s?"RT @"+a+" "+t.retweeted_status.text:t.text,w=n([p]).linkUrl().linkUser().linkHash()[0],k='<a class="tweet_user" href="'+o+'">'+f+"<\/a>",d=i.join_text?'<span class="tweet_join"> '+h+" <\/span>":" ",g=e?'<a class="tweet_avatar" href="'+o+'"><img src="'+c+'" height="'+e+'" width="'+e+'" alt="'+f+'\'s avatar" title="'+f+'\'s avatar" border="0"/><\/a>':"",nt='<span class="tweet_text">'+n([w]).makeHeart().capAwesome().capEpic()[0]+"<\/span>",tt='<span class="tweet_time"><a href="'+l+'" title="view tweet on twitter">'+y+"<\/a><\/span>";return{item:t,screen_name:f,user_url:o,avatar_size:e,avatar_url:c,source:b,tweet_url:l,tweet_time:v,tweet_relative_time:y,tweet_raw_text:p,tweet_text:w,retweet:s,retweeted_screen_name:a,user:k,join:d,avatar:g,time:tt,text:nt}});f=n.grep(f,i.filter).slice(0,i.count);o.append(n.map(f.sort(i.comparator),function(n){return"<li>"+h(n)+"<\/li>"}).join("")).children("li:first").addClass("tweet_first").end().children("li:odd").addClass("tweet_even").end().children("li:even").addClass("tweet_odd");i.outro_text&&o.after(l);n(e).trigger("loaded").trigger(f.length===0?"empty":"full");i.refresh_interval&&window.setTimeout(function(){n(e).trigger("load")},1e3*i.refresh_interval)})}).trigger("load")})}}(jQuery);scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1e3,fadeduration:[500,100]},controlHTML:"",controlattrs:{offsetx:0,offsety:0},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var n=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);n=typeof n=="string"&&jQuery("#"+n).length==1?jQuery("#"+n).offset().top:0;this.$body.animate({scrollTop:n},this.setting.scrollduration)},keepfixed:function(){var n=jQuery(window),t=n.scrollLeft()+n.width()-this.$control.width()-this.controlattrs.offsetx,i=n.scrollTop()+n.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:t+"px",top:i+"px"})},togglecontrol:function(){var n=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed();this.state.shouldvisible=n>=this.setting.startline?!0:!1;this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):this.state.shouldvisible==!1&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function(n){var t=scrolltotop,i=document.all;t.cssfixedsupport=!i||i&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest;t.$body=window.opera?document.compatMode=="CSS1Compat"?n("html"):n("body"):n("html,body");t.$control=n('<div id="topcontrol">'+t.controlHTML+"<\/div>").css({position:t.cssfixedsupport?"fixed":"absolute",bottom:t.controlattrs.offsety,right:t.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Scroll Back to Top"}).click(function(){return t.scrollup(),!1}).appendTo("body");document.all&&!window.XMLHttpRequest&&t.$control.text()!=""&&t.$control.css({width:t.$control.width()});t.togglecontrol();n('a[href="'+t.anchorkeyword+'"]').click(function(){return t.scrollup(),!1});n(window).bind("scroll resize",function(){t.togglecontrol()})})}};scrolltotop.init(),function(n){n.fn.simpletooltip=function(){return this.each(function(){var t=n(this).attr("title");n(this).attr("title","");t!=undefined&&(n(this).hover(function(i){var u=i.pageX+12,f=i.pageY+12,r;n(this).attr("title","");n("body").append("<div id='simpleTooltip' style='position: absolute; z-index: 100; display: none;'>"+t+"<\/div>");r=n.browser.msie?n("#simpleTooltip").outerWidth(!0):n("#simpleTooltip").width();n("#simpleTooltip").width(r);n("#simpleTooltip").css("left",u).css("top",f).fadeIn("medium")},function(){n("#simpleTooltip").remove();n(this).attr("title",t)}),n(this).mousemove(function(t){var i=t.pageX+12,r=t.pageY+12,u=n("#simpleTooltip").outerWidth(!0),f=n("#simpleTooltip").outerHeight(!0);i+u>n(window).scrollLeft()+n(window).width()&&(i=t.pageX-u);n(window).height()+n(window).scrollTop()<r+f&&(r=t.pageY-f);n("#simpleTooltip").css("left",i).css("top",r).fadeIn("medium")}))})}}(jQuery),function(n){var t=function(t,i){var r=n.extend({},n.fn.nivoSlider.defaults,i),f={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:!1,paused:!1,stop:!1},u=n(t),e,v,o,a,s,l;if(u.data("nivo:vars",f),u.css("position","relative"),u.addClass("nivoSlider"),e=u.children(),e.each(function(){var t=n(this),e="",i,r;t.is("img")||(t.is("a")&&(t.addClass("nivo-imageLink"),e=t),t=t.find("img:first"));i=t.width();i==0&&(i=t.attr("width"));r=t.height();r==0&&(r=t.attr("height"));i>u.width()&&u.width(i);r>u.height()&&u.height(r);e!=""&&e.css("display","none");t.css("display","none");f.totalSlides++}),r.startSlide>0&&(r.startSlide>=f.totalSlides&&(r.startSlide=f.totalSlides-1),f.currentSlide=r.startSlide),f.currentImage=n(e[f.currentSlide]).is("img")?n(e[f.currentSlide]):n(e[f.currentSlide]).find("img:first"),n(e[f.currentSlide]).is("a")&&n(e[f.currentSlide]).css("display","block"),u.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat'),u.append(n('<div class="nivo-caption"><p><\/p><\/div>').css({display:"none",opacity:r.captionOpacity})),v=function(t){var r=n(".nivo-caption",u),i;f.currentImage.attr("title")!=""?(i=f.currentImage.attr("title"),i.substr(0,1)=="#"&&(i=n(i).html()),r.css("display")=="block"?r.find("p").fadeOut(t.animSpeed,function(){n(this).html(i);n(this).fadeIn(t.animSpeed)}):r.find("p").html(i),r.fadeIn(t.animSpeed)):r.fadeOut(t.animSpeed)},v(r),o=0,!r.manualAdvance&&e.length>1&&(o=setInterval(function(){h(u,e,r,!1)},r.pauseTime)),r.directionNav&&(u.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+r.prevText+'<\/a><a class="nivo-nextNav">'+r.nextText+"<\/a><\/div>"),r.directionNavHide&&(n(".nivo-directionNav",u).hide(),u.hover(function(){n(".nivo-directionNav",u).show()},function(){n(".nivo-directionNav",u).hide()})),n("a.nivo-prevNav",u).live("click",function(){if(f.running)return!1;clearInterval(o);o="";f.currentSlide-=2;h(u,e,r,"prev")}),n("a.nivo-nextNav",u).live("click",function(){if(f.running)return!1;clearInterval(o);o="";h(u,e,r,"next")})),r.controlNav){for(a=n('<div class="nivo-controlNav"><\/div>'),u.append(a),s=0;s<e.length;s++)r.controlNavThumbs?(l=e.eq(s),l.is("img")||(l=l.find("img:first")),r.controlNavThumbsFromRel?a.append('<a class="nivo-control" rel="'+s+'"><img src="'+l.attr("rel")+'" alt="" /><\/a>'):a.append('<a class="nivo-control" rel="'+s+'"><img src="'+l.attr("src").replace(r.controlNavThumbsSearch,r.controlNavThumbsReplace)+'" alt="" /><\/a>')):a.append('<a class="nivo-control" rel="'+s+'">'+(s+1)+"<\/a>");n(".nivo-controlNav a:eq("+f.currentSlide+")",u).addClass("active");n(".nivo-controlNav a",u).live("click",function(){if(f.running||n(this).hasClass("active"))return!1;clearInterval(o);o="";u.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat');f.currentSlide=n(this).attr("rel")-1;h(u,e,r,"control")})}r.keyboardNav&&n(window).keypress(function(n){if(n.keyCode=="37"){if(f.running)return!1;clearInterval(o);o="";f.currentSlide-=2;h(u,e,r,"prev")}if(n.keyCode=="39"){if(f.running)return!1;clearInterval(o);o="";h(u,e,r,"next")}});r.pauseOnHover&&u.hover(function(){f.paused=!0;clearInterval(o);o=""},function(){f.paused=!1;o!=""||r.manualAdvance||(o=setInterval(function(){h(u,e,r,!1)},r.pauseTime))});u.bind("nivo:animFinished",function(){f.running=!1;n(e).each(function(){n(this).is("a")&&n(this).css("display","none")});n(e[f.currentSlide]).is("a")&&n(e[f.currentSlide]).css("display","block");o!=""||f.paused||r.manualAdvance||(o=setInterval(function(){h(u,e,r,!1)},r.pauseTime));r.afterChange.call(this)});var c=function(t,i,r){for(var u,f=0;f<i.slices;f++)u=Math.round(t.width()/i.slices),f==i.slices-1?t.append(n('<div class="nivo-slice"><\/div>').css({left:u*f+"px",width:t.width()-u*f+"px",height:"0px",opacity:"0",background:'url("'+r.currentImage.attr("src")+'") no-repeat -'+(u+f*u-u)+"px 0%"})):t.append(n('<div class="nivo-slice"><\/div>').css({left:u*f+"px",width:u+"px",height:"0px",opacity:"0",background:'url("'+r.currentImage.attr("src")+'") no-repeat -'+(u+f*u-u)+"px 0%"}))},y=function(t,i,r){for(var u=Math.round(t.width()/i.boxCols),f=Math.round(t.height()/i.boxRows),e,o=0;o<i.boxRows;o++)for(e=0;e<i.boxCols;e++)e==i.boxCols-1?t.append(n('<div class="nivo-box"><\/div>').css({opacity:0,left:u*e+"px",top:f*o+"px",width:t.width()-u*e+"px",height:f+"px",background:'url("'+r.currentImage.attr("src")+'") no-repeat -'+(u+e*u-u)+"px -"+(f+o*f-f)+"px"})):t.append(n('<div class="nivo-box"><\/div>').css({opacity:0,left:u*e+"px",top:f*o+"px",width:u+"px",height:f+"px",background:'url("'+r.currentImage.attr("src")+'") no-repeat -'+(u+e*u-u)+"px -"+(f+o*f-f)+"px"}))},h=function(t,i,r,u){var f=t.data("nivo:vars"),l,e,o,s,a,g,p,nt;if(f&&f.currentSlide==f.totalSlides-1&&r.lastSlide.call(this),(!f||f.stop)&&!u)return!1;if(r.beforeChange.call(this),u?(u=="prev"&&t.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat'),u=="next"&&t.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat')):t.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat'),f.currentSlide++,f.currentSlide==f.totalSlides&&(f.currentSlide=0,r.slideshowEnd.call(this)),f.currentSlide<0&&(f.currentSlide=f.totalSlides-1),f.currentImage=n(i[f.currentSlide]).is("img")?n(i[f.currentSlide]):n(i[f.currentSlide]).find("img:first"),r.controlNav&&(n(".nivo-controlNav a",t).removeClass("active"),n(".nivo-controlNav a:eq("+f.currentSlide+")",t).addClass("active")),v(r),n(".nivo-slice",t).remove(),n(".nivo-box",t).remove(),r.effect=="random"&&(l=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"],f.randAnim=l[Math.floor(Math.random()*(l.length+1))],f.randAnim==undefined&&(f.randAnim="fade")),r.effect.indexOf(",")!=-1&&(l=r.effect.split(","),f.randAnim=l[Math.floor(Math.random()*l.length)],f.randAnim==undefined&&(f.randAnim="fade")),f.running=!0,r.effect=="sliceDown"||r.effect=="sliceDownRight"||f.randAnim=="sliceDownRight"||r.effect=="sliceDownLeft"||f.randAnim=="sliceDownLeft"){c(t,r,f);var e=0,o=0,h=n(".nivo-slice",t);(r.effect=="sliceDownLeft"||f.randAnim=="sliceDownLeft")&&(h=n(".nivo-slice",t)._reverse());h.each(function(){var i=n(this);i.css({top:"0px"});o==r.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+e):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed)},100+e);e+=50;o++})}else if(r.effect=="sliceUp"||r.effect=="sliceUpRight"||f.randAnim=="sliceUpRight"||r.effect=="sliceUpLeft"||f.randAnim=="sliceUpLeft"){c(t,r,f);var e=0,o=0,h=n(".nivo-slice",t);(r.effect=="sliceUpLeft"||f.randAnim=="sliceUpLeft")&&(h=n(".nivo-slice",t)._reverse());h.each(function(){var i=n(this);i.css({bottom:"0px"});o==r.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+e):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed)},100+e);e+=50;o++})}else if(r.effect=="sliceUpDown"||r.effect=="sliceUpDownRight"||f.randAnim=="sliceUpDown"||r.effect=="sliceUpDownLeft"||f.randAnim=="sliceUpDownLeft"){c(t,r,f);var e=0,o=0,it=0,h=n(".nivo-slice",t);(r.effect=="sliceUpDownLeft"||f.randAnim=="sliceUpDownLeft")&&(h=n(".nivo-slice",t)._reverse());h.each(function(){var i=n(this);o==0?(i.css("top","0px"),o++):(i.css("bottom","0px"),o=0);it==r.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+e):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed)},100+e);e+=50;it++})}else if(r.effect=="fold"||f.randAnim=="fold")c(t,r,f),e=0,o=0,n(".nivo-slice",t).each(function(){var i=n(this),u=i.width();i.css({top:"0px",height:"100%",width:"0px"});o==r.slices-1?setTimeout(function(){i.animate({width:u,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+e):setTimeout(function(){i.animate({width:u,opacity:"1.0"},r.animSpeed)},100+e);e+=50;o++});else if(r.effect=="fade"||f.randAnim=="fade")c(t,r,f),s=n(".nivo-slice:first",t),s.css({height:"100%",width:t.width()+"px"}),s.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")});else if(r.effect=="slideInRight"||f.randAnim=="slideInRight")c(t,r,f),s=n(".nivo-slice:first",t),s.css({height:"100%",width:"0px",opacity:"1"}),s.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")});else if(r.effect=="slideInLeft"||f.randAnim=="slideInLeft")c(t,r,f),s=n(".nivo-slice:first",t),s.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"}),s.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){s.css({left:"0px",right:""});t.trigger("nivo:animFinished")});else if(r.effect=="boxRandom"||f.randAnim=="boxRandom"){y(t,r,f);var tt=r.boxCols*r.boxRows,o=0,e=0,a=w(n(".nivo-box",t));a.each(function(){var i=n(this);o==tt-1?setTimeout(function(){i.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+e):setTimeout(function(){i.animate({opacity:"1"},r.animSpeed)},100+e);e+=20;o++})}else if(r.effect=="boxRain"||f.randAnim=="boxRain"||r.effect=="boxRainReverse"||f.randAnim=="boxRainReverse"||r.effect=="boxRainGrow"||f.randAnim=="boxRainGrow"||r.effect=="boxRainGrowReverse"||f.randAnim=="boxRainGrowReverse"){y(t,r,f);var tt=r.boxCols*r.boxRows,o=0,e=0,b=0,k=0,d=[];for(d[b]=[],a=n(".nivo-box",t),(r.effect=="boxRainReverse"||f.randAnim=="boxRainReverse"||r.effect=="boxRainGrowReverse"||f.randAnim=="boxRainGrowReverse")&&(a=n(".nivo-box",t)._reverse()),a.each(function(){d[b][k]=n(this);k++;k==r.boxCols&&(b++,k=0,d[b]=[])}),g=0;g<r.boxCols*2;g++){for(p=g,nt=0;nt<r.boxRows;nt++)p>=0&&p<r.boxCols&&(function(i,u,e,o,s){var h=n(d[i][u]),c=h.width(),l=h.height();(r.effect=="boxRainGrow"||f.randAnim=="boxRainGrow"||r.effect=="boxRainGrowReverse"||f.randAnim=="boxRainGrowReverse")&&h.width(0).height(0);o==s-1?setTimeout(function(){h.animate({opacity:"1",width:c,height:l},r.animSpeed/1.3,"",function(){t.trigger("nivo:animFinished")})},100+e):setTimeout(function(){h.animate({opacity:"1",width:c,height:l},r.animSpeed/1.3)},100+e)}(nt,p,e,o,tt),o++),p--;e+=100}}},w=function(n){for(var i,r,t=n.length;t;i=parseInt(Math.random()*t),r=n[--t],n[t]=n[i],n[i]=r);return n},p=function(n){this.console&&typeof console.log!="undefined"&&console.log(n)};return this.stop=function(){n(t).data("nivo:vars").stop||(n(t).data("nivo:vars").stop=!0,p("Stop Slider"))},this.start=function(){n(t).data("nivo:vars").stop&&(n(t).data("nivo:vars").stop=!1,p("Start Slider"))},r.afterLoad.call(this),this};n.fn.nivoSlider=function(i){return this.each(function(){var r=n(this),u;if(r.data("nivoslider"))return r.data("nivoslider");u=new t(this,i);r.data("nivoslider",u)})};n.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,controlNavThumbs:!1,controlNavThumbsFromRel:!1,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:!0,pauseOnHover:!0,manualAdvance:!1,captionOpacity:.8,prevText:"Prev",nextText:"Next",beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};n.fn._reverse=[].reverse}(jQuery),function(n){n.fn.anchorScroll=function(t){var t=n.extend({speed:2e3,fx:"jswing"},t);return n(this).each(function(){var i=this;n(i).click(function(r){var e=window.location.href,u=n(i).attr("href"),f=n(u).offset().top;return n("html,body").animate({scrollTop:f},t.speed,t.fx),r.preventDefault(),!1})})}}(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}})