function TopSlider(){var e=.6,r=jQuery(window).width();r>1600&&(e=.55);var t=.5*r,a=r*e,i=.5*(r-jQuery(".container").width()),s=t/1.9;s<235&&(s=235),jQuery("#slider_top").css({height:s+"px"}),jQuery("#slider_top").css({width:r+"px"}),jQuery("#carousel1 li").css({width:r+"px"}),jQuery(".overlap_widget_wrapper").css({width:r+"px"}),jQuery("#slider_top a.callbacks_nav.next").css({right:i+"px",top:.5*s-.5*jQuery("#slider_top a.callbacks_nav.next").height()+"px"}),jQuery("#slider_top a.callbacks_nav.prev").css({left:i+"px",top:.5*s-.5*jQuery("#slider_top a.callbacks_nav.next").height()+"px"}),jQuery("#carousel1 .overlap_widget_wrapper .left_image .title").css({left:i+"px"}),jQuery("#carousel1 .overlap_widget_wrapper .right_image .title").css({right:i+"px"}),jQuery(".overlap_widget_wrapper .left_image").css({width:a+"px"}),jQuery(".overlap_widget_wrapper .left_image .placeholder").css({width:t+"px"}),jQuery(".overlap_widget_wrapper .right_image").css({width:a+"px"}),jQuery(".overlap_widget_wrapper .right_image .placeholder").css({width:t+"px"}),jQuery("#back-top").css({bottom:jQuery("#footer").height()+150+"px"});var p=!1,o=0;jQuery(".placeholder").mouseenter(function(){p=!0,jQuery(this).parent().css({zIndex:"999"}),jQuery(this).stop().animate({width:a+"px"},550,"easeOutQuad")}),jQuery(".placeholder").mouseleave(function(){p=!1,o++,jQuery(this).parent().css({zIndex:o}),jQuery(this).stop().animate({width:t+"px"},550,"easeOutQuad")})}jQuery(function(){jQuery("#slider_top a.callbacks_nav").hover(function(){jQuery(this).stop().animate({opacity:1},500)},function(){jQuery(this).stop().animate({opacity:.6},500)}),jQuery("#carousel1").responsiveSlides({pager:!1,nav:!0,speed:1e3,auto:!0,timeout:3600,namespace:"callbacks"}),jQuery("#carousel").elastislide({easing:"easeInOutQuad",speed:1200}),TopSlider()}),jQuery(window).resize(function(){TopSlider()});