$(function(){$(".scroller-content a[rel]").show();$(".scroller-content a[rel]").live("click",function(){var i=$(this).closest(".scroller-content");var g=($(this).attr("rel").toLowerCase()=="next");var b=$("div.update-panel",i);var d=i.attr("page");var f=$(this).attr("href");var a=i.attr("rel");var h=parseInt(i.attr("offset"),10);if(!d){d=1}if(g){d++}else{d--}$("a[rel]",b).fadeOut("fast");var c=b.outerWidth();var j=(g)?c+45:-(c+45);var e=(g)?-(c+45):c+45;b.css({width:c});i.css({width:i.width(),height:i.height(),overflow:"hidden"});b.animate({marginLeft:e},400,"swing",function(){b.css({marginLeft:j});$.get(f+"/ajax/page"+d,{viewName:a},function(k){b.html(k);i.animate({width:b.width(),height:b.outerHeight()+h},300,"linear",function(){b.animate({marginLeft:0},400,"swing",function(){$("a[rel]",b).fadeIn("fast",function(){$(this).removeAttr("style").show()});if($.browser.msie&&parseInt($.browser.version)<7){pngfix()}i.attr("page",d).css({width:"auto",height:"auto",overflow:"visible",zoom:1})})})})});return false})});
