$(function(){Cufon.replace(".nivo-info strong",{color:"-linear-gradient(#f6e77c, #ab6c06, #f6e77c, #ab6c06)",textShadow:"#000 1px 1px 1px",fontSize:"110px"});Cufon.replace("#top-info h1, #top-info h2, #top-info h3, #top-info h4",{fontSize:"42px"});$("#top-info h1, #top-info h2, #top-info h3, #top-info h4").css("letter-spacing","-1px");Cufon.replace(".info-box h2",{fontSize:"30px"});$(".info-box h2").css({lineHeight:"1em",fontSize:"20px"});Cufon.now();function a(e,d,c){e.each(function(){var g=$(this);if(c==null){c=false}var i="fltbox";var h=g.children("cufon");var f=g.children(":not(cufon)");if($(this).css("display")=="inline"){h.css("display","inline-block")}else{h.css("float","left");h.css("display","inline");f.each(function(){$sib=$(this);if(!($sib.css("float")=="left"||$sib.css("float")=="right")){$sib.css("float","left");$sib.css("display","inline")}});if(c&&!g.hasClass(i)){g.addClass(i)}}g.css("line-height",d);h.css("height",d)})}if($.browser.mozilla&&(parseFloat($.browser.version)<1.9)){$(".info-box h2").css({lineHeight:"37px"})}else{a($(".info-box h2"),"37px")}$(".info-content:first").show();var b=$(".slider-container").nivoSlider({effect:"fade",slices:1,animSpeed:500,pauseTime:8000,startSlide:0,directionNav:true,directionNavHide:false,controlNav:false,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:1,beforeChange:function(){var c=$(".slider-container img").index(b.data("nivo:vars").currentImage);$(".info-content:eq("+c+")").fadeOut(500)},afterChange:function(){var d=$(".slider-container img").index(b.data("nivo:vars").currentImage);var c=$(".slider-container img:eq("+d+")").parent().get(0).tagName;if(c=="A"){var e=$(".slider-container img:eq("+d+")").parent().attr("href");$(".whole-link").attr("href",e)}else{$(".whole-link").hide()}},slideshowEnd:function(){}});$("a[href$='.jpg'], a[href$='.png'], a[href$='.gif']").attr("rel","prettyPhoto");$(".gallery").each(function(c){$("a[href$='.jpg'], a[href$='.png'], a[href$='.gif']",this).attr("rel","prettyPhoto["+c+"]")});$("a[rel^='prettyPhoto']").prettyPhoto({theme:"light_rounded"})});
