$(function(){$("#slider .slidetabs").tabs("#slider > article",{autopause:true,fadeInSpeed:1000,effect:"fade",rotate:true}).slideshow({autoplay:true,interval:5000});$(".lifts article a").bigTarget({hoverClass:"over",clickZone:"article:eq(0)"});if(!$.browser.msie){$("article header .img img").corner("4px")}$(".vertical-tabs").css("height",$(".vertical-tabs .tabs").height()+"px");$(".vertical-tabs .tabs ul").tabs(".vertical-tabs .tab-contents > div",{effect:"fade",fadeOutSpeed:400});$(".vertical-tabs .tabs a").bind("click",function(d){var b=$(this);var f=b.position()["top"];var a=b.outerHeight()+"px";var c=$(".vertical-tabs .active-tab");if(f<=0){c.animate({top:f+"px",height:a,"-webkit-border-top-left-radius":"5px","-moz-border-radius-topleft":"5px","border-top-left-radius":"5px","-webkit-border-bottom-left-radius":"0px","-moz-border-radius-bottomleft":"0px","border-bottom-left-radius":"0px"},800,"easeInOutQuart")}else{if((f+b.outerHeight())>=$(".vertical-tabs").height()){c.animate({top:f+"px",height:a,"-webkit-border-bottom-left-radius":"5px","-moz-border-radius-bottomleft":"5px","border-bottom-left-radius":"5px","-webkit-border-top-left-radius":"0px","-moz-border-radius-topleft":"0px","border-top-left-radius":"0px"},800,"easeInOutQuart")}else{c.animate({top:f+"px",height:a,"-webkit-border-radius":"0px","-moz-border-radius":"0px","border-radius":"0px"},800,"easeInOutQuart")}}})});
