/* * Superfish v1.4.8 - jQuery menu widget * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt */ (function(a){a.fn.superfish=function(d){var c=a.fn.superfish,b=c.c,j=a([' »'].join("")),g=function(){var c=a(this),b=h(c);clearTimeout(b.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl();},i=function(){var b=a(this),d=h(b),e=c.op;clearTimeout(d.sfTimer);d.sfTimer=setTimeout(function(){e.retainPath=-1b.parents(["li.",e.hoverClass].join("")).length&&g.call(e.$path);},e.delay);},h=function(a){a= a.parents(["ul.",b.menuClass,":first"].join(""))[0];c.op=c.o[a.serial];return a};return this.each(function(){var k=this.serial=c.o.length,f=a.extend({},c.defaults,d);f.$path=a("li."+f.pathClass,this).slice(0,f.pathLevels).each(function(){a(this).addClass([f.hoverClass,b.bcClass].join(" ")).filter("li:has(ul)").removeClass(f.pathClass)});c.o[k]=c.op=f;a("li:has(ul)",this)[a.fn.hoverIntent&&!f.disableHI?"hoverIntent":"hover"](g,i).each(function(){f.autoArrows&&a(">a:first-child",this).addClass(b.anchorClass).append(j.clone())}).not("."+ b.bcClass).hideSuperfishUl();var e=a("a",this);e.each(function(a){var b=e.eq(a).parents("li");e.eq(a).focus(function(){g.call(b)}).blur(function(){i.call(b)})});f.onInit.call(this)}).each(function(){var d=[b.menuClass];c.op.dropShadows&&!(a.browser.msie&&7>a.browser.version)&&d.push(b.shadowClass);a(this).addClass(d.join(" "))})};var b=a.fn.superfish;b.o=[];b.op={};b.IE7fix=function(){var d=b.op;a.browser.msie&&(6ul").hide().css("visibility","hidden");d.onHide.call(c);return this},showSuperfishUl:function(){var a=b.op,c=this.addClass(a.hoverClass).find(">ul:hidden").css("visibility","visible");b.IE7fix.call(c);a.onBeforeShow.call(c);c.animate(a.animation,a.speed,function(){b.IE7fix.call(c);a.onShow.call(c)});return this}})})(jQuery); /* ------------------------------------------------------------------------ Class: prettyPhoto Use: Lightbox clone for jQuery Author: Stephane Caron (http://www.no-margin-for-errors.com) Version: 3.0.3 ------------------------------------------------------------------------- */ (function(a){function g(a,g){var a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),i=RegExp("[\\?&]"+a+"=([^&#]*)").exec(g);return null==i?"":i[1]}a.prettyPhoto={version:"3.0.2"};a.fn.prettyPhoto=function(h){function s(){a(".pp_loaderIcon").hide();$ppt.fadeTo(settings.animation_speed,1);projectedTop=scroll_pos.scrollTop+(e/2-b.containerHeight/2);0>projectedTop&&(projectedTop=0);$pp_pic_holder.find(".pp_content").animate({height:b.contentHeight,width:b.contentWidth},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop, left:d/2-b.containerWidth/2,width:b.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(b.height).width(b.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);isSet&&"image"==m(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide();b.resized?a("a.pp_expand,a.pp_contract").show():a("a.pp_expand,a.pp_contract").hide();settings.autoplay_slideshow&&(!j&& !n)&&a.prettyPhoto.startSlideshow();settings.changepicturecallback();n=!0});isSet&&settings.overlay_gallery&&"image"==m(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme?58:38,itemsPerPage=Math.floor((b.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPaged||l>e)&&doresize&& settings.allow_resize&&!o){resized=!0;for(fitting=!1;!fitting;)k>d?(imageWidth=d-200,imageHeight=b/a*imageWidth):l>e?(imageHeight=e-200,imageWidth=a/b*imageHeight):fitting=!0,l=imageHeight,k=imageWidth;t(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(l),containerWidth:Math.floor(k)+40,contentHeight:Math.floor(p),contentWidth:Math.floor(u),resized:resized}}function t(c,b){c=parseFloat(c);b=parseFloat(b);$pp_details=$pp_pic_holder.find(".pp_details"); $pp_details.width(c);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().appendTo(a("body")).css({position:"absolute",top:-1E4});detailsHeight+=$pp_details.height();detailsHeight=34>=detailsHeight?36:detailsHeight;a.browser.msie&&7==a.browser.version&&(detailsHeight+=8);$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(c);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")); $pp_title=$pp_title.clone().appendTo(a("body")).css({position:"absolute",top:-1E4});titleHeight+=$pp_title.height();$pp_title.remove();p=b+detailsHeight;u=c;l=p+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();k=c}function m(a){return a.match(/youtube\.com\/watch/i)?"youtube":a.match(/vimeo\.com/i)?"vimeo":a.match(/\b.mov\b/i)?"quicktime":a.match(/\b.swf\b/i)?"flash":a.match(/\biframe=true\b/i)?"iframe":a.match(/\bcustom=true\b/i)?"custom":"#"==a.substr(0, 1)?"inline":"image"}function q(){doresize&&"undefined"!=typeof $pp_pic_holder&&(scroll_pos=v(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=e/2+scroll_pos.scrollTop-contentHeight/2,0>projectedTop&&(projectedTop=0),$pp_pic_holder.css({top:projectedTop,left:d/2+scroll_pos.scrollLeft-contentwidth/2}))}function v(){if(self.pageYOffset)return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};if(document.documentElement&&document.documentElement.scrollTop)return{scrollTop:document.documentElement.scrollTop, scrollLeft:document.documentElement.scrollLeft};if(document.body)return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}function w(){a("body").append(settings.markup);$pp_pic_holder=a(".pp_pic_holder");$ppt=a(".ppt");$pp_overlay=a("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var b=0;b";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_pic_holder.find(".pp_gallery .pp_arrow_next").click(function(){a.prettyPhoto.changeGalleryPage("next");a.prettyPhoto.stopSlideshow();return!1});$pp_pic_holder.find(".pp_gallery .pp_arrow_previous").click(function(){a.prettyPhoto.changeGalleryPage("previous");a.prettyPhoto.stopSlideshow();return!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_pic_holder.find(".pp_gallery ul li").each(function(b){a(this).css({position:"absolute",left:b*itemWidth});a(this).find("a").unbind("click").click(function(){a.prettyPhoto.changePage(b);a.prettyPhoto.stopSlideshow();return!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){a.prettyPhoto.startSlideshow(); return!1}));$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:a(document).height(),width:a(window).width()}).bind("click",function(){settings.modal||a.prettyPhoto.close()});a("a.pp_close").bind("click",function(){a.prettyPhoto.close();return false});a("a.pp_expand").bind("click",function(){if(a(this).hasClass("pp_expand")){a(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{a(this).removeClass("pp_contract").addClass("pp_expand"); doresize=true}i(function(){a.prettyPhoto.open()});return false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){a.prettyPhoto.changePage("previous");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){a.prettyPhoto.changePage("next");a.prettyPhoto.stopSlideshow();return false});q()}var h=jQuery.extend({animation_speed:"fast",slideshow:!1,autoplay_slideshow:!1,opacity:0.8,show_title:!0, allow_resize:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"facebook",hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,overlay_gallery:!0,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},markup:'
', gallery_markup:'',image_markup:'',flash_markup:'', quicktime_markup:'',iframe_markup:'', inline_markup:'
{content}
',custom_markup:""},h),r=this,o=!1,b,n,p,u,l,k,e=a(window).height(),d=a(window).width(),j;doresize=!0;scroll_pos=v();a(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){q();e=a(window).height();d=a(window).width();"undefined"!=typeof $pp_overlay&&$pp_overlay.height(a(document).height()).width(d)});h.keyboard_shortcuts&&a(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(b){if("undefined"!= typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous");b.preventDefault();break;case 39:a.prettyPhoto.changePage("next");b.preventDefault();break;case 27:settings.modal||a.prettyPhoto.close(),b.preventDefault()}});a.prettyPhoto.initialize=function(){settings=h;a.browser.msie&&6==parseInt(a.browser.version)&&(settings.theme="light_square");theRel=a(this).attr("rel");galleryRegExp=/\[(?:.*)\]/;pp_images=(isSet=galleryRegExp.exec(theRel)?!0: !1)?jQuery.map(r,function(b){if(a(b).attr("rel").indexOf(theRel)!=-1)return a(b).attr("href")}):a.makeArray(a(this).attr("href"));pp_titles=isSet?jQuery.map(r,function(b){if(a(b).attr("rel").indexOf(theRel)!=-1)return a(b).find("img").attr("alt")?a(b).find("img").attr("alt"):""}):a.makeArray(a(this).find("img").attr("alt"));pp_descriptions=isSet?jQuery.map(r,function(b){if(a(b).attr("rel").indexOf(theRel)!=-1)return a(b).attr("title")?a(b).attr("title"):""}):a.makeArray(a(this).attr("title"));w(this); settings.allow_resize&&a(window).bind("scroll.prettyphoto",function(){q()});set_position=jQuery.inArray(a(this).attr("href"),pp_images);a.prettyPhoto.open();return!1};a.prettyPhoto.open=function(c,d,e){"undefined"==typeof settings&&(settings=h,a.browser.msie&&6==a.browser.version&&(settings.theme="light_square"),pp_images=a.makeArray(c),pp_titles=d?a.makeArray(d):a.makeArray(""),pp_descriptions=e?a.makeArray(e):a.makeArray(""),isSet=1
').appendTo(a("body")).show();doresize=false;b=f(a(myClone).width(),a(myClone).height());doresize=true;a(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html())}if(!imgPreloader){$pp_pic_holder.find("#pp_full_res")[0].innerHTML= toInject;s()}});return!1};a.prettyPhoto.changePage=function(b){currentGalleryPage=0;if("previous"==b){if(set_position--,0>set_position){set_position=0;return}}else"next"==b?(set_position++,set_position>a(pp_images).size()-1&&(set_position=0)):set_position=b;doresize||(doresize=!0);a(".pp_contract").removeClass("pp_contract").addClass("pp_expand");i(function(){a.prettyPhoto.open()})};a.prettyPhoto.changeGalleryPage=function(b){"next"==b?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage= 0)):"previous"==b?(currentGalleryPage--,0>currentGalleryPage&&(currentGalleryPage=totalPage)):currentGalleryPage=b;itemsToSlide=currentGalleryPage==totalPage?pp_images.length-totalPage*itemsPerPage:itemsPerPage;$pp_pic_holder.find(".pp_gallery li").each(function(b){a(this).animate({left:b*itemWidth-itemsToSlide*itemWidth*currentGalleryPage})})};a.prettyPhoto.startSlideshow=function(){"undefined"==typeof j?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){a.prettyPhoto.stopSlideshow(); return!1}),j=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)):a.prettyPhoto.changePage("next")};a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){a.prettyPhoto.startSlideshow();return!1});clearInterval(j);j=void 0};a.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(a.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed, function(){a(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){a.browser.msie&&6==a.browser.version&&a("select").css("visibility","visible");settings.hideflash&&a("object,embed").css("visibility","visible");a(this).remove();a(window).unbind("scroll");settings.callback();doresize=!0;n=!1;delete settings}))};return this.unbind("click.prettyphoto").bind("click.prettyphoto",a.prettyPhoto.initialize)}})(jQuery); /* * jQuery Nivo Slider v3.0.1 * http://nivo.dev7studios.com * * Copyright 2012, Dev7studios * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function(a){var t=function(m,r){var e=a.extend({},a.fn.nivoSlider.defaults,r),b={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1},j=a(m);j.data("nivo:vars",b).addClass("nivoSlider");var k=j.children();k.each(function(){var c=a(this),f="";c.is("img")||(c.is("a")&&(c.addClass("nivo-imageLink"),f=c),c=c.find("img:first"));var d=0===d?c.attr("width"):c.width(),e=0===e?c.attr("height"):c.height();""!==f&&f.css("display","none");c.css("display","none");b.totalSlides++}); e.randomStart&&(e.startSlide=Math.floor(Math.random()*b.totalSlides));0=b.totalSlides&&(e.startSlide=b.totalSlides-1),b.currentSlide=e.startSlide);b.currentImage=a(k[b.currentSlide]).is("img")?a(k[b.currentSlide]):a(k[b.currentSlide]).find("img:first");a(k[b.currentSlide]).is("a")&&a(k[b.currentSlide]).css("display","block");var n=a('');n.attr("src",b.currentImage.attr("src")).show();j.append(n);a(window).resize(function(){j.children("img").width(j.width()); n.attr("src",b.currentImage.attr("src"));n.stop().height("auto");a(".nivo-slice").remove();a(".nivo-box").remove()});j.append(a('
'));var u=function(c){var f=a(".nivo-caption",j);if(b.currentImage.attr("title")!=""&&b.currentImage.attr("title")!=void 0){var d=b.currentImage.attr("title");d.substr(0,1)=="#"&&(d=a(d).html());if(f.css("display")=="block")setTimeout(function(){f.html(d)},c.animSpeed);else{f.html(d);f.stop().fadeIn(c.animSpeed)}}else f.stop().fadeOut(c.animSpeed)}; u(e);var l=0;!e.manualAdvance&&1'+e.prevText+''+e.nextText+""),e.directionNavHide&&(a(".nivo-directionNav",j).hide(),j.hover(function(){a(".nivo-directionNav",j).show()},function(){a(".nivo-directionNav",j).hide()})),a("a.nivo-prevNav",j).live("click",function(){if(b.running)return false;clearInterval(l);l="";b.currentSlide= b.currentSlide-2;o(j,k,e,"prev")}),a("a.nivo-nextNav",j).live("click",function(){if(b.running)return false;clearInterval(l);l="";o(j,k,e,"next")}));if(e.controlNav){b.controlNavEl=a('
');j.after(b.controlNavEl);for(var p=0;p')}else b.controlNavEl.append(''+(p+1)+"");a("a:eq("+b.currentSlide+")",b.controlNavEl).addClass("active");a("a",b.controlNavEl).bind("click",function(){if(b.running||a(this).hasClass("active"))return false;clearInterval(l);l="";n.attr("src",b.currentImage.attr("src"));b.currentSlide=a(this).attr("rel")-1;o(j,k,e,"control")})}e.pauseOnHover&&j.hover(function(){b.paused=true;clearInterval(l);l=""},function(){b.paused=false;l===""&&!e.manualAdvance&& (l=setInterval(function(){o(j,k,e,false)},e.pauseTime))});j.bind("nivo:animFinished",function(){n.attr("src",b.currentImage.attr("src"));b.running=false;a(k).each(function(){a(this).is("a")&&a(this).css("display","none")});a(k[b.currentSlide]).is("a")&&a(k[b.currentSlide]).css("display","block");l===""&&(!b.paused&&!e.manualAdvance)&&(l=setInterval(function(){o(j,k,e,false)},e.pauseTime));e.afterChange.call(this)});var q=function(c,f,d){a(d.currentImage).parent().is("a")&&a(d.currentImage).parent().css("display", "block");a('img[src="'+d.currentImage.attr("src")+'"]',c).not(".nivo-main-image,.nivo-control img").width(c.width()).css("visibility","hidden").show();for(var b=a('img[src="'+d.currentImage.attr("src")+'"]',c).not(".nivo-main-image,.nivo-control img").parent().is("a")?a('img[src="'+d.currentImage.attr("src")+'"]',c).not(".nivo-main-image,.nivo-control img").parent().height():a('img[src="'+d.currentImage.attr("src")+'"]',c).not(".nivo-main-image,.nivo-control img").height(),g=0;g').css({left:h*g+"px",width:c.width()-h*g+"px",height:b+"px",opacity:"0",overflow:"hidden"})):c.append(a('
').css({left:h*g+"px",width:h+"px",height:b+"px",opacity:"0",overflow:"hidden"}))}a(".nivo-slice",c).height(b);n.stop().animate({height:a(d.currentImage).height()},f.animSpeed)},v=function(c,f,d){a(d.currentImage).parent().is("a")&&a(d.currentImage).parent().css("display","block");a('img[src="'+d.currentImage.attr("src")+'"]',c).not(".nivo-main-image,.nivo-control img").width(c.width()).css("visibility","hidden").show();for(var b=Math.round(c.width()/f.boxCols),g=Math.round(a('img[src="'+ d.currentImage.attr("src")+'"]',c).not(".nivo-main-image,.nivo-control img").height()/f.boxRows),h=0;h').css({opacity:0,left:b*i+"px",top:g*h+"px",width:c.width()-b*i+"px"})):c.append(a('
').css({opacity:0,left:b*i+"px",top:g*h+"px",width:b+"px"}));a('.nivo-box[name="'+i+'"]',c).height(a('.nivo-box[name="'+i+'"] img',c).height()+"px")}n.stop().animate({height:a(d.currentImage).height()},f.animSpeed)},o=function(c,f,d,b){var g=c.data("nivo:vars");g&&g.currentSlide===g.totalSlides-1&&d.lastSlide.call(this);if((!g||g.stop)&& !b)return false;d.beforeChange.call(this);if(b){b==="prev"&&n.attr("src",g.currentImage.attr("src"));b==="next"&&n.attr("src",g.currentImage.attr("src"))}else n.attr("src",g.currentImage.attr("src"));g.currentSlide++;if(g.currentSlide===g.totalSlides){g.currentSlide=0;d.slideshowEnd.call(this)}if(g.currentSlide<0)g.currentSlide=g.totalSlides-1;g.currentImage=a(f[g.currentSlide]).is("img")?a(f[g.currentSlide]):a(f[g.currentSlide]).find("img:first");if(d.controlNav){a("a",g.controlNavEl).removeClass("active"); a("a:eq("+g.currentSlide+")",g.controlNavEl).addClass("active")}u(d);a(".nivo-slice",c).remove();a(".nivo-box",c).remove();var h=d.effect,f="";if(d.effect==="random"){f=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"];h=f[Math.floor(Math.random()*(f.length+1))];h===void 0&&(h="fade")}if(d.effect.indexOf(",")!==-1){f=d.effect.split(",");h=f[Math.floor(Math.random()* f.length)];h===void 0&&(h="fade")}g.currentImage.attr("data-transition")&&(h=g.currentImage.attr("data-transition"));g.running=true;var i=0,e=0,j=f="",k="",f="";if(h==="sliceDown"||h==="sliceDownRight"||h==="sliceDownLeft"){q(c,d,g);e=i=0;f=a(".nivo-slice",c);h==="sliceDownLeft"&&(f=a(".nivo-slice",c)._reverse());f.each(function(){var b=a(this);b.css({top:"0px"});e===d.slices-1?setTimeout(function(){b.animate({opacity:"1.0"},d.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+i):setTimeout(function(){b.animate({opacity:"1.0"}, d.animSpeed)},100+i);i=i+50;e++})}else if(h==="sliceUp"||h==="sliceUpRight"||h==="sliceUpLeft"){q(c,d,g);e=i=0;f=a(".nivo-slice",c);h==="sliceUpLeft"&&(f=a(".nivo-slice",c)._reverse());f.each(function(){var b=a(this);b.css({bottom:"0px"});e===d.slices-1?setTimeout(function(){b.animate({opacity:"1.0"},d.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+i):setTimeout(function(){b.animate({opacity:"1.0"},d.animSpeed)},100+i);i=i+50;e++})}else if(h==="sliceUpDown"||h==="sliceUpDownRight"|| h==="sliceUpDownLeft"){q(c,d,g);var l=e=i=0,f=a(".nivo-slice",c);h==="sliceUpDownLeft"&&(f=a(".nivo-slice",c)._reverse());f.each(function(){var b=a(this);if(e===0){b.css("top","0px");e++}else{b.css("bottom","0px");e=0}l===d.slices-1?setTimeout(function(){b.animate({opacity:"1.0"},d.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+i):setTimeout(function(){b.animate({opacity:"1.0"},d.animSpeed)},100+i);i=i+50;l++})}else if(h==="fold"){q(c,d,g);e=i=0;a(".nivo-slice",c).each(function(){var b= a(this),f=b.width();b.css({top:"0px",width:"0px"});e===d.slices-1?setTimeout(function(){b.animate({width:f,opacity:"1.0"},d.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+i):setTimeout(function(){b.animate({width:f,opacity:"1.0"},d.animSpeed)},100+i);i=i+50;e++})}else if(h==="fade"){q(c,d,g);j=a(".nivo-slice:first",c);j.css({width:c.width()+"px"});j.animate({opacity:"1.0"},d.animSpeed*2,"",function(){c.trigger("nivo:animFinished")})}else if(h==="slideInRight"){q(c,d,g);j=a(".nivo-slice:first", c);j.css({width:"0px",opacity:"1"});j.animate({width:c.width()+"px"},d.animSpeed*2,"",function(){c.trigger("nivo:animFinished")})}else if(h==="slideInLeft"){q(c,d,g);j=a(".nivo-slice:first",c);j.css({width:"0px",opacity:"1",left:"",right:"0px"});j.animate({width:c.width()+"px"},d.animSpeed*2,"",function(){j.css({left:"0px",right:""});c.trigger("nivo:animFinished")})}else if(h==="boxRandom"){v(c,d,g);k=d.boxCols*d.boxRows;i=e=0;f=t(a(".nivo-box",c));f.each(function(){var b=a(this);e===k-1?setTimeout(function(){b.animate({opacity:"1"}, d.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+i):setTimeout(function(){b.animate({opacity:"1"},d.animSpeed)},100+i);i=i+20;e++})}else if(h==="boxRain"||h==="boxRainReverse"||h==="boxRainGrow"||h==="boxRainGrowReverse"){v(c,d,g);var k=d.boxCols*d.boxRows,m=i=e=0,o=0,p=[];p[m]=[];f=a(".nivo-box",c);if(h==="boxRainReverse"||h==="boxRainGrowReverse")f=a(".nivo-box",c)._reverse();f.each(function(){p[m][o]=a(this);o++;if(o===d.boxCols){m++;o=0;p[m]=[]}});for(g=0;g=0&&f= imgs) clearInterval(int); jQuery('#gallery .portfolio li img:hidden').eq(0).fadeIn(300); i++; }, 300); });