(function(b){b.fn.infinitescroll=function(d,s){function v(){x.debug&&window.console&&console.log.call(console,arguments)}function q(){return x.localMode?b(w.container)[0].scrollHeight&&b(w.container)[0].scrollHeight:b(document).height()}function p(){w.loadingMsg.find("img").hide().parent().find("div").html(x.donetext).animate({opacity:1},2000,function(){b(this).parent().fadeOut("normal")});x.errorCallback()}function a(){if(w.isDone){p();return false}else{var f=u.children().get();if(f.length==0){return b.event.trigger("ajaxError",[{status:404}])}for(;u[0].firstChild;){r.appendChild(u[0].firstChild)}b(x.contentSelector)[0].appendChild(r);w.loadingMsg.fadeOut("normal");if(x.animate){var c=b(window).scrollTop()+b("#infscr-loading").height()+x.extraScrollPx+"px";b("html,body").animate({scrollTop:c},800,function(){w.isDuringAjax=false})}s.call(b(x.contentSelector)[0],f);if(!x.animate){w.isDuringAjax=false}}}b.browser.ie6=b.browser.msie&&b.browser.version<7;var x=b.extend({},b.infinitescroll.defaults,d),w=b.infinitescroll,u,r;s=s||function(){};if(!function(f){for(var c in f){if(c.indexOf&&c.indexOf("Selector")>-1&&b(f[c]).length===0){v("Your "+c+" found no elements.");return false}return true}}(x)){return false}w.container=x.localMode?this:document.documentElement;x.contentSelector=x.contentSelector||this;x.loadMsgSelector=x.loadMsgSelector||x.contentSelector;var e=/(.*?\/\/).*?(\/.*)/,t=b(x.nextSelector).attr("href");if(t){t=function(c){c.match(e)&&c.match(e);if(c.match(/^(.*?)\b2\b(.*?$)/)){c=c.match(/^(.*?)\b2\b(.*?$)/).slice(1)}else{if(c.match(/^(.*?)2(.*?$)/)){if(c.match(/^(.*?page=)2(\/.*|$)/)){return c=c.match(/^(.*?page=)2(\/.*|$)/).slice(1)}v("Trying backup next selector parse technique. Treacherous waters here, matey.");c=c.match(/^(.*?)2(.*?$)/).slice(1)}else{if(c.match(/^(.*?page=)1(\/.*|$)/)){return c=c.match(/^(.*?page=)1(\/.*|$)/).slice(1)}v("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");w.isInvalidPage=true}}return c}(t);if(x.localMode){b(w.container)[0].scrollTop=0}w.pixelsFromNavToBottom=q()+(w.container==document.documentElement?0:b(w.container).offset().top)-b(x.navSelector).offset().top;w.loadingMsg=b('<div id="infscr-loading" style="text-align: center;"><img alt="Loading..." src="'+x.loadingImg+'" /><div>'+x.loadingText+"</div></div>");(new Image).src=x.loadingImg;b(document).ajaxError(function(f,c){v("Page not found. Self-destructing...");if(c.status==404){p();w.isDone=true;b(x.localMode?this:window).unbind("scroll.infscr")}});b(x.localMode?this:window).bind("scroll.infscr",function(){if(!(w.isDuringAjax||w.isInvalidPage||w.isDone)){var c=0+q()-(x.localMode?b(w.container).scrollTop():b(w.container).scrollTop()||b(w.container.ownerDocument.body).scrollTop())-b(x.localMode?w.container:window).height();v("math:",c,w.pixelsFromNavToBottom);c-x.bufferPx<w.pixelsFromNavToBottom&&b(document).trigger("retrieve.infscr")}}).trigger("scroll.infscr");b(document).bind("retrieve.infscr",function(){w.isDuringAjax=true;w.loadingMsg.appendTo(x.loadMsgSelector).show();b(x.navSelector).hide();w.currPage++;v("heading into ajax",t);u=b(x.contentSelector).is("table")?b("<tbody/>"):b("<div/>");r=document.createDocumentFragment();u.load(t.join(w.currPage)+" "+x.itemSelector,null,a)});return this}else{v("Navigation selector not found")}};b.infinitescroll={defaults:{debug:false,preload:false,nextSelector:"div.navigation a:first",loadingImg:"http://www.infinite-scroll.com/loading.gif",loadingText:"<em>Loading the next set of posts...</em>",donetext:"<em>Congratulations, you've reached the end of the internet.</em>",navSelector:"div.navigation",contentSelector:null,loadMsgSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:false,localMode:false,bufferPx:40,errorCallback:function(){}},loadingImg:undefined,loadingMsg:undefined,container:undefined,currPage:1,currDOMChunk:null,isDuringAjax:false,isInvalidPage:false,isDone:false}})(jQuery);(function(a){a.fn.vtip=function(){var b=5,c=5;a(this).find("img").each(function(){if(a(this).attr("alt")!==undefined){a(this).removeAttr("alt")}});a(this).unbind().hover(function(d){this.t=this.title;this.title="";this.top=(d.pageY+c);this.left=(d.pageX+b);a("body").append('<p id="vtip">'+this.t+"</p>");a("p#vtip").css("top",this.top+"px").css("left",this.left+"px").fadeIn("slow")},function(){this.title=this.t;a("p#vtip").fadeOut("slow").remove()}).mousemove(function(d){this.top=(d.pageY+c);this.left=(d.pageX+b);a("p#vtip").css("top",this.top+"px").css("left",this.left+"px")})}}(jQuery));(function(b){var a=function(j,q){var g=b.extend({},b.fn.nivoSlider.defaults,q);var m={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:false,paused:false,stop:false};var d=b(j);d.data("nivo:vars",m);d.css("position","relative");d.addClass("nivoSlider");var e=d.children();e.each(function(){var t=b(this);var s="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");s=t}t=t.find("img:first")}var r=t.width();if(r==0){r=t.attr("width")}var i=t.height();if(i==0){i=t.attr("height")}if(r>d.width()){d.width(r)}if(i>d.height()){d.height(i)}if(s!=""){s.css("display","none")}t.css("display","none");m.totalSlides++});if(g.startSlide>0){if(g.startSlide>=m.totalSlides){g.startSlide=m.totalSlides-1}m.currentSlide=g.startSlide}if(b(e[m.currentSlide]).is("img")){m.currentImage=b(e[m.currentSlide])}else{m.currentImage=b(e[m.currentSlide]).find("img:first")}if(b(e[m.currentSlide]).is("a")){b(e[m.currentSlide]).css("display","block")}d.css("background",'url("'+m.currentImage.attr("src")+'") no-repeat');for(var k=0;k<g.slices;k++){var o=Math.round(d.width()/g.slices);if(k==g.slices-1){d.append(b('<div class="nivo-slice"></div>').css({left:(o*k)+"px",width:(d.width()-(o*k))+"px"}))}else{d.append(b('<div class="nivo-slice"></div>').css({left:(o*k)+"px",width:o+"px"}))}}d.append(b('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:g.captionOpacity}));if(m.currentImage.attr("title")!=""){var n=m.currentImage.attr("title");if(n.substr(0,1)=="#"){n=b(n).html()}b(".nivo-caption p",d).html(n);b(".nivo-caption",d).fadeIn(g.animSpeed)}var c=0;if(!g.manualAdvance&&e.length>1){c=setInterval(function(){p(d,e,g,false)},g.pauseTime)}if(g.directionNav){d.append('<div class="nivo-directionNav"><a class="nivo-prevNav">Prev</a><a class="nivo-nextNav">Next</a></div>');if(g.directionNavHide){b(".nivo-directionNav",d).hide();d.hover(function(){b(".nivo-directionNav",d).show()},function(){b(".nivo-directionNav",d).hide()})}b("a.nivo-prevNav",d).live("click",function(){if(m.running){return false}clearInterval(c);c="";m.currentSlide-=2;p(d,e,g,"prev")});b("a.nivo-nextNav",d).live("click",function(){if(m.running){return false}clearInterval(c);c="";p(d,e,g,"next")})}if(g.controlNav){var l=b('<div class="nivo-controlNav"></div>');d.append(l);for(var k=0;k<e.length;k++){if(g.controlNavThumbs){var f=e.eq(k);if(!f.is("img")){f=f.find("img:first")}if(g.controlNavThumbsFromRel){l.append('<a class="nivo-control" rel="'+k+'"><img src="'+f.attr("rel")+'" alt="" /></a>')}else{l.append('<a class="nivo-control" rel="'+k+'"><img src="'+f.attr("src").replace(g.controlNavThumbsSearch,g.controlNavThumbsReplace)+'" alt="" /></a>')}}else{l.append('<a class="nivo-control" rel="'+k+'">'+(k+1)+"</a>")}}b(".nivo-controlNav a:eq("+m.currentSlide+")",d).addClass("active");b(".nivo-controlNav a",d).live("click",function(){if(m.running){return false}if(b(this).hasClass("active")){return false}clearInterval(c);c="";d.css("background",'url("'+m.currentImage.attr("src")+'") no-repeat');m.currentSlide=b(this).attr("rel")-1;p(d,e,g,"control")})}if(g.keyboardNav){b(window).keypress(function(i){if(i.keyCode=="37"){if(m.running){return false}clearInterval(c);c="";m.currentSlide-=2;p(d,e,g,"prev")}if(i.keyCode=="39"){if(m.running){return false}clearInterval(c);c="";p(d,e,g,"next")}})}if(g.pauseOnHover){d.hover(function(){m.paused=true;clearInterval(c);c=""},function(){m.paused=false;if(c==""&&!g.manualAdvance){c=setInterval(function(){p(d,e,g,false)},g.pauseTime)}})}d.bind("nivo:animFinished",function(){m.running=false;b(e).each(function(){if(b(this).is("a")){b(this).css("display","none")}});if(b(e[m.currentSlide]).is("a")){b(e[m.currentSlide]).css("display","block")}if(c==""&&!m.paused&&!g.manualAdvance){c=setInterval(function(){p(d,e,g,false)},g.pauseTime)}g.afterChange.call(this)});var p=function(r,s,u,x){var y=r.data("nivo:vars");if(y&&(y.currentSlide==y.totalSlides-1)){u.lastSlide.call(this)}if((!y||y.stop)&&!x){return false}u.beforeChange.call(this);if(!x){r.css("background",'url("'+y.currentImage.attr("src")+'") no-repeat')}else{if(x=="prev"){r.css("background",'url("'+y.currentImage.attr("src")+'") no-repeat')}if(x=="next"){r.css("background",'url("'+y.currentImage.attr("src")+'") no-repeat')}}y.currentSlide++;if(y.currentSlide==y.totalSlides){y.currentSlide=0;u.slideshowEnd.call(this)}if(y.currentSlide<0){y.currentSlide=(y.totalSlides-1)}if(b(s[y.currentSlide]).is("img")){y.currentImage=b(s[y.currentSlide])}else{y.currentImage=b(s[y.currentSlide]).find("img:first")}if(u.controlNav){b(".nivo-controlNav a",r).removeClass("active");b(".nivo-controlNav a:eq("+y.currentSlide+")",r).addClass("active")}if(y.currentImage.attr("title")!=""){var z=y.currentImage.attr("title");if(z.substr(0,1)=="#"){z=b(z).html()}if(b(".nivo-caption",r).css("display")=="block"){b(".nivo-caption p",r).fadeOut(u.animSpeed,function(){b(this).html(z);b(this).fadeIn(u.animSpeed)})}else{b(".nivo-caption p",r).html(z)}b(".nivo-caption",r).fadeIn(u.animSpeed)}else{b(".nivo-caption",r).fadeOut(u.animSpeed)}var w=0;b(".nivo-slice",r).each(function(){var i=Math.round(r.width()/u.slices);b(this).css({height:"0px",opacity:"0",background:'url("'+y.currentImage.attr("src")+'") no-repeat -'+((i+(w*i))-i)+"px 0%"});w++});if(u.effect=="random"){var A=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade");y.randAnim=A[Math.floor(Math.random()*(A.length+1))];if(y.randAnim==undefined){y.randAnim="fade"}}if(u.effect.indexOf(",")!=-1){var A=u.effect.split(",");y.randAnim=b.trim(A[Math.floor(Math.random()*A.length)])}y.running=true;if(u.effect=="sliceDown"||u.effect=="sliceDownRight"||y.randAnim=="sliceDownRight"||u.effect=="sliceDownLeft"||y.randAnim=="sliceDownLeft"){var t=0;var w=0;var C=b(".nivo-slice",r);if(u.effect=="sliceDownLeft"||y.randAnim=="sliceDownLeft"){C=b(".nivo-slice",r)._reverse()}C.each(function(){var i=b(this);i.css("top","0px");if(w==u.slices-1){setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},u.animSpeed,"",function(){r.trigger("nivo:animFinished")})},(100+t))}else{setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},u.animSpeed)},(100+t))}t+=50;w++})}else{if(u.effect=="sliceUp"||u.effect=="sliceUpRight"||y.randAnim=="sliceUpRight"||u.effect=="sliceUpLeft"||y.randAnim=="sliceUpLeft"){var t=0;var w=0;var C=b(".nivo-slice",r);if(u.effect=="sliceUpLeft"||y.randAnim=="sliceUpLeft"){C=b(".nivo-slice",r)._reverse()}C.each(function(){var i=b(this);i.css("bottom","0px");if(w==u.slices-1){setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},u.animSpeed,"",function(){r.trigger("nivo:animFinished")})},(100+t))}else{setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},u.animSpeed)},(100+t))}t+=50;w++})}else{if(u.effect=="sliceUpDown"||u.effect=="sliceUpDownRight"||y.randAnim=="sliceUpDown"||u.effect=="sliceUpDownLeft"||y.randAnim=="sliceUpDownLeft"){var t=0;var w=0;var B=0;var C=b(".nivo-slice",r);if(u.effect=="sliceUpDownLeft"||y.randAnim=="sliceUpDownLeft"){C=b(".nivo-slice",r)._reverse()}C.each(function(){var i=b(this);if(w==0){i.css("top","0px");w++}else{i.css("bottom","0px");w=0}if(B==u.slices-1){setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},u.animSpeed,"",function(){r.trigger("nivo:animFinished")})},(100+t))}else{setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},u.animSpeed)},(100+t))}t+=50;B++})}else{if(u.effect=="fold"||y.randAnim=="fold"){var t=0;var w=0;b(".nivo-slice",r).each(function(){var i=b(this);var v=i.width();i.css({top:"0px",height:"100%",width:"0px"});if(w==u.slices-1){setTimeout(function(){i.animate({width:v,opacity:"1.0"},u.animSpeed,"",function(){r.trigger("nivo:animFinished")})},(100+t))}else{setTimeout(function(){i.animate({width:v,opacity:"1.0"},u.animSpeed)},(100+t))}t+=50;w++})}else{if(u.effect=="fade"||y.randAnim=="fade"){var w=0;b(".nivo-slice",r).each(function(){b(this).css("height","100%");if(w==u.slices-1){b(this).animate({opacity:"1.0"},(u.animSpeed*2),"",function(){r.trigger("nivo:animFinished")})}else{b(this).animate({opacity:"1.0"},(u.animSpeed*2))}w++})}}}}}};var h=function(i){if(this.console&&typeof console.log!="undefined"){console.log(i)}};this.stop=function(){if(!b(j).data("nivo:vars").stop){b(j).data("nivo:vars").stop=true;h("Stop Slider")}};this.start=function(){if(b(j).data("nivo:vars").stop){b(j).data("nivo:vars").stop=false;h("Start Slider")}};g.afterLoad.call(this)};b.fn.nivoSlider=function(c){return this.each(function(){var d=b(this);if(d.data("nivoslider")){return}var e=new a(this,c);d.data("nivoslider",e)})};b.fn.nivoSlider.defaults={effect:"random",slices:15,animSpeed:500,pauseTime:3000,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(){}};b.fn._reverse=[].reverse})(jQuery);(function(a){var c=a.event,b;c.special.smartresize={setup:function(){a(this).bind("resize",c.special.smartresize.handler)},teardown:function(){a(this).unbind("resize",c.special.smartresize.handler)},handler:function(f,e){var h=this,i=arguments;f.type="smartresize";b&&clearTimeout(b);b=setTimeout(function(){jQuery.event.handle.apply(h,i)},e==="execAsap"?0:100)}};a.fn.smartresize=function(d){return d?this.bind("smartresize",d):this.trigger("smartresize",["execAsap"])};a.fn.masonry=function(e,d){var f={getBricks:function(i,g,h){var j=h.itemSelector===undefined;g.$bricks=h.appendedContent===undefined?j?i.children():i.find(h.itemSelector):j?h.appendedContent:h.appendedContent.filter(h.itemSelector)},placeBrick:function(p,r,s,q,n){r=Math.min.apply(Math,s);for(var l=r+p.outerHeight(true),o=s.length,j=o,g=q.colCount+1-o;o--;){if(s[o]==r){j=o}}p.applyStyle({left:q.colW*j+q.posLeft,top:r},a.extend(true,{},n.animationOptions));for(o=0;o<g;o++){q.colY[j+o]=l}},setup:function(i,g,h){f.getBricks(i,h,g);if(h.masoned){h.previousData=i.data("masonry")}h.colW=g.columnWidth===undefined?h.masoned?h.previousData.colW:h.$bricks.outerWidth(true):g.columnWidth;h.colCount=Math.floor(i.width()/h.colW);h.colCount=Math.max(h.colCount,1)},arrange:function(k,g,i){var l;if(!i.masoned||g.appendedContent!==undefined){i.$bricks.css("position","absolute")}if(i.masoned){i.posTop=i.previousData.posTop;i.posLeft=i.previousData.posLeft}else{k.css("position","relative");var j=a(document.createElement("div"));k.prepend(j);i.posTop=Math.round(j.position().top);i.posLeft=Math.round(j.position().left);j.remove()}if(i.masoned&&g.appendedContent!==undefined){i.colY=i.previousData.colY;for(l=i.previousData.colCount;l<i.colCount;l++){i.colY[l]=i.posTop}}else{i.colY=[];for(l=i.colCount;l--;){i.colY.push(i.posTop)}}a.fn.applyStyle=i.masoned&&g.animate?a.fn.animate:a.fn.css;g.singleMode?i.$bricks.each(function(){var h=a(this);f.placeBrick(h,i.colCount,i.colY,i,g)}):i.$bricks.each(function(){var o=a(this),q=Math.ceil(o.outerWidth(true)/i.colW);q=Math.min(q,i.colCount);if(q===1){f.placeBrick(o,i.colCount,i.colY,i,g)}else{var n=i.colCount+1-q,h=[];for(l=0;l<n;l++){var r=i.colY.slice(l,l+q);h[l]=Math.max.apply(Math,r)}f.placeBrick(o,n,h,i,g)}});i.wallH=Math.max.apply(Math,i.colY);k.applyStyle({height:i.wallH-i.posTop},a.extend(true,[],g.animationOptions));i.masoned||setTimeout(function(){k.addClass("masoned")},1);d.call(i.$bricks);k.data("masonry",i)},resize:function(i,g,h){h.masoned=!!i.data("masonry");var j=i.data("masonry").colCount;f.setup(i,g,h);h.colCount!=j&&f.arrange(i,g,h)}};return this.each(function(){var k=a(this),g={};g.masoned=!!k.data("masonry");var i=g.masoned?k.data("masonry").options:{},l=a.extend({},a.fn.masonry.defaults,i,e),j=i.resizeable;g.options=l.saveOptions?l:i;d=d||function(){};f.getBricks(k,g,l);if(!g.$bricks.length){return this}f.setup(k,l,g);f.arrange(k,l,g);!j&&l.resizeable&&a(window).bind("smartresize.masonry",function(){f.resize(k,l,g)});j&&!l.resizeable&&a(window).unbind("smartresize.masonry")})};a.fn.masonry.defaults={singleMode:false,columnWidth:undefined,itemSelector:undefined,appendedContent:undefined,saveOptions:true,resizeable:true,animate:false,animationOptions:{}}})(jQuery);(function(a){a.widget("cure.simpleSlideshow",{options:{randomizeStart:false,autoPlay:true,transitionTime:500,displayTime:3000},_create:function(){var b=this;a(this.element).each(function(){b.options.slides=a(this).children();b.options.length=b.options.slides.size();b.options.currentIndex=0;if(b.options.length>1){if(b.options.randomizeStart){b.options.currentIndex=Math.floor(Math.random()*b.options.length)}b.options.slides.css({position:"absolute",display:"none",opacity:0,"z-index":0});var c=b.options.slides.get(b.options.currentIndex);a(c).css({opacity:1,display:"block",filter:"","z-index":1});if(b.options.autoPlay){b._start()}}})},_start:function(){var b=this;window.setInterval(function(){if(b.options.currentIndex==b.options.length-1){b.setIndex(0)}else{b.setIndex(b.options.currentIndex+1)}},this.options.displayTime)},onIndexChanged:function(d,e){var c=this;c.dispatchChangeEvent();b();f();function f(){a(c.options.slides[d]).css({"z-index":1,display:"block"}).stop().animate({opacity:1},c.options.transitionTime,"swing",function(){a(this).css("filter","")})}function b(){a(c.options.slides[e]).css("z-index",0);window.setTimeout(function(){a(c.options.slides[e]).stop().animate({opacity:0},c.options.transitionTime,"swing",function(){a(this).css({display:"none"})})},c.options.transitionTime*0.2)}},next:function(){this.setIndex(this.options.currentIndex+1)},previous:function(){this.setIndex(this.options.currentIndex-1)},numSlides:function(){return this.options.length},setIndex:function(b){if(b>=0&&b<this.options.length&&b!=this.options.currentIndex){var c=this.options.currentIndex;this.options.currentIndex=b;this.onIndexChanged(this.options.currentIndex,c)}},dispatchChangeEvent:function(){a(this.element).trigger("indexChanged",this.options.currentIndex)}})})(jQuery);SDD=(function(c){var a=2000;var b=8000;var d=1500;var e=1000;return{createSlider:function(f,h){var i={displayTime:b,transitionTime:a};var g=c(f);if(!h){h={}}h=c.extend(h,i);c(g).simpleSlideshow(h);return g},createProjectControls:function(p,i){var m=0;var o=p.simpleSlideshow("numSlides");var h=c(p).children(".video");var f=-1;if(h){f=c(p).children().index(h[0])}var l=c("<ul id='slideshow-controls' class='clearfix'></ul>");var g=c("<li><a class='info-link' href=''>Info</a></li>");var n=c("<li id='slideshow-pagination'><a class='previous' href=''>&lt; </a><span class='position'></span><a class='next' href=''> &gt;</a></li>");var k="";c(h).each(function(){var r=c(this).children("h2");var q="";if(r.size()>0){q=c(r[0]).text()}k+="<li><a class='button vtip video-link' href='' title='"+q+"'>"+q+"</a></li>"});var j=c(k);l.append(g);if(o>1){l.append(n)}if(h.size()>0){l.append(j)}c(i).append(l);c(l).find("a").bind("click",function(q){q.preventDefault();if(c(this).hasClass("info-link")){p.simpleSlideshow("setIndex",0)}else{if(c(this).hasClass("previous")){p.simpleSlideshow("previous")}else{if(c(this).hasClass("next")){p.simpleSlideshow("next")}else{if(c(this).hasClass("video-link")){var r=c(j).find("a").index(this);p.simpleSlideshow("setIndex",(f+r))}}}}});c(p).bind("indexChanged",function(r,q){m=q;c(n).children("span.position").html((m+1)+"/"+o);c(l).find("a").removeClass("selected");if(m===0){c(g).find("a").addClass("selected")}else{if(m>=f){c(j[m-f]).find("a").addClass("selected")}}});p.simpleSlideshow("dispatchChangeEvent");return l},createTileRollovers:function(f){c(f).unbind().hover(function(){var h=c(this).attr("title");c(this).data("t",h);c(this).attr("title","");var g=c('<p style="display:none;">'+h+"</p>");c(this).closest(".tile").children(".rollover").append(g);g.fadeIn()},function(){c(this).closest(".tile").find(".rollover p").fadeOut("fast",function(){c(this).remove()});c(this).attr("title",c(this).data("t"))})},addPageTransitions:function(){var f;if(c.support.opacity||(c.browser.msie&&parseInt(c.browser.version,10)>=8)){f=d}else{f=0}c("#content").css({visibility:"visible",display:"none"});c("#content").add(".opacity-fix *").fadeIn(f,function(){c(document).trigger("pageTransitionComplete")})}}})(jQuery);SDD.resizing=(function(h){function f(){}f.prototype.init=function(j,k,i){};f.prototype.layout=function(j,k,i){};a.prototype=new f();a.prototype.constructor=a;function a(){}a.prototype.init=function(j,k,i){h(j).css({position:"absolute"})};a.prototype.layout=function(m,n,k){for(var l=0,j=m.length;l<j;l++){if(m[l] instanceof b){m[l].setSize(n,k)}else{console.log("Child is not container")}}};c.prototype=new f();c.prototype.constructor=c;function c(i){this.HORIZONTAL="h";this.VERTICAL="v";this.mode=i}c.prototype.init=function(m,n,k){for(var l=0,j=m.length;l<j;l++){h(m[l].element).css({position:"absolute"})}};c.prototype.layout=function(n,p,k){var l,o;if(this.mode==this.HORIZONTAL){p=p/n.length;for(var m=0,j=n.length;m<j;m++){if(n[m] instanceof b){n[m].setSize(p,k);n[m].setLeft(m*p)}else{throw new Error("Child is not container")}}}else{k=k/n.length;for(var m=0,j=n.length;m<j;m++){if(n[m] instanceof b){n[m].setSize(p,k);n[m].setTop(m*k)}else{throw new Error("Child is not container")}}}};e.prototype=new f();e.prototype.constructor=e;function e(j,i){e.TOP="t";e.RIGHT="r";e.BOTTOM="b";e.LEFT="l";this.mode=j;this.offset=i}e.prototype.init=function(m,n,k){for(var l=0,j=m.length;l<j;l++){h(m[l].element).css({position:"absolute"})}};e.prototype.layout=function(m,n,i){var j=this,l=k(this.mode,n,i);function k(q,p,o){if(j.mode==e.TOP){return{w0:p,w1:p,h0:j.offset,h1:o-j.offset,x0:0,x1:0,y0:0,y1:j.offset}}if(j.mode==e.RIGHT){return{w0:p-j.offset,w1:j.offset,h0:o,h1:o,x0:0,x1:p-j.offset,y0:0,y1:0}}if(j.mode==e.BOTTOM){return{w0:p,w1:p,h0:o-j.offset,h1:j.offset,x0:0,x1:0,y0:0,y1:o-j.offset}}if(j.mode==e.LEFT){return{w0:j.offset,w1:p-j.offset,h0:o,h1:o,x0:0,x1:j.offset,y0:0,y1:0}}}m[0].setSize(l.w0,l.h0);m[0].setLeft(l.x0);m[0].setTop(l.y0);m[1].setSize(l.w1,l.h1);m[1].setLeft(l.x1);m[1].setTop(l.y1)};g.prototype=new f();g.prototype.constructor=g;function g(){g.PADDING=10;g.HORIZONTAL="h";g.VERTICAL="v";this.mode=undefined;this.maintainIndex=undefined;this.padding=0}g.prototype.init=function(m,n,k){var o;for(var l=0,j=m.length;l<j;l++){o=m[l];h(o.element).css({position:"absolute"});if(h(o.element).hasClass("maintain-width")){this.mode=g.HORIZONTAL;this.maintainIndex=l;if(h(o.element).hasClass("pad")){this.padding=g.PADDING}}else{if(h(o.element).hasClass("maintain-height")){this.mode=g.VERTICAL;this.maintainIndex=l;if(h(o.element).hasClass("pad")){this.padding=g.PADDING}}}}};g.prototype.layout=function(k,m,i){var o=k[this.maintainIndex],n=k[(this.maintainIndex+1)%2],j,l;if(this.mode==g.HORIZONTAL){j=m-o.preferredWidth-this.padding;o.setSize(o.preferredWidth,i);n.setSize(j,i);if(this.maintainIndex==0){o.setLeft(0);o.setTop(0);n.setRight(0);n.setTop(0)}else{o.setRight(0);o.setTop(0);n.setLeft(0);n.setTop(0)}}else{l=i-o.preferredHeight-this.padding;o.setSize(m,o.preferredHeight);n.setSize(m,l);if(this.maintainIndex==0){o.setLeft(0);o.setTop(0);n.setLeft(0);n.setBottom(0)}else{o.setLeft(0);o.setBottom(0);n.setLeft(0);n.setTop(0)}}};d.prototype=new f();d.prototype.constructor=d;function d(){}d.prototype.layout=function(m,o,k){var n,p;for(var l=0,j=m.length;l<j;l++){p=m[l];n=k/p.preferredHeight;if(n<1){newWidth=p.preferredWidth*n;newHeight=k;p.setSize(newWidth,newHeight)}else{p.setSize(p.preferredWidth,p.preferredHeight)}}};function b(i,j){this.element=h(i);this.children=new Array();this.layoutMode=j;h(this).css("float","none");this.preferredWidth=h(this.element).attr("width");this.preferredHeight=h(this.element).attr("height");if(!this.preferredWidth||!this.preferredHeight){this.preferredWidth=parseInt(h(this.element).css("width").replace("px",""));this.preferredHeight=parseInt(h(this.element).css("height").replace("px",""))}if(!this.preferredWidth||!this.preferredHeight){var k=h(this.element).css("position");h(this.element).css("position","static");this.preferredWidth=h(this.element).outerWidth(true);this.preferredHeight=h(this.element).outerHeight(true);h(this.element).css("position",k)}}b.prototype.init=function(){var k=h(this.element).width(),i=h(this.element).height(),j=this;h(this.element).css({overflow:"hidden"});h(this.element).children().each(function(){var l;if(h(this).hasClass("match-size")){l=new b(this,new a())}else{if(h(this).hasClass("maintain-proportion")){l=new b(this,new d())}else{if(h(this).hasClass("auto-split")){l=new b(this,new g())}else{if(h(this).hasClass("layout-exclude")){l=null}else{l=new b(this,new f())}}}}if(l){l.init();j.children.push(l)}});this.layoutMode.init(this.children,k,i)};b.prototype.setSize=function(j,i){h(this.element).width(j);h(this.element).height(i);this.layout(j,i)};b.prototype.setLeft=function(i){h(this.element).css({left:i})};b.prototype.setTop=function(i){h(this.element).css({top:i})};b.prototype.setRight=function(i){h(this.element).css({right:i})};b.prototype.setBottom=function(i){h(this.element).css({bottom:i})};b.prototype.layout=function(j,i){this.layoutMode.layout(this.children,j,i)};return{BaseLayout:f,MatchSizeLayout:a,RowLayout:c,SplitLayout:e,MaintainProportionLayout:d,AutoSplitLayout:g,Container:b}}(jQuery));
