var sliderPageId,flagLeft=1,flagRight=1,SlideIndex=0,slideValue=896,BTChartColor1="#CEDC01",BTChartColor2="#00B335";SlideIt=function(n){n=="right"?slideRight():slideLeft()};slideRight=function(){var n=$(".slider .sliderContent ul.sliderUl").css("margin-left");n=parseInt(n.split("px",1));n!=0&&flagLeft!=0&&(flagLeft=0,$(".slider .sliderContent ul.sliderUl").stop(!1,!1).animate({"margin-left":n+slideValue+"px"},"slow",function(){var t=calcEq(n-slideValue);t=t<0?-t:t;flagLeft=1}),selectPoint(n+slideValue))};slideLeft=function(){var t=$(".slider .sliderContent ul.sliderUl li.sliderItem").length,i=(t-1)*slideValue,n=$(".slider .sliderContent ul.sliderUl").css("margin-left");n=parseInt(n.split("px",1));n!=-i&&flagRight!=0?(flagRight=0,$(".slider .sliderContent ul.sliderUl").stop(!1,!1).animate({"margin-left":n-slideValue+"px"},"slow",function(){var t=calcEq(n-slideValue);t=t<0?-t:t;flagRight=1}),selectPoint(n-slideValue)):flagRight!=0&&($(".slider .sliderContent ul.sliderUl").stop(!1,!1).animate({"margin-left":"0px"},"slow",function(){var t=calcEq(n-slideValue);t=t<0?-t:t;flagLeft=1}),selectPoint(0))};calcEq=function(n){if(n==0)return 0;var t=n/slideValue;return parseInt(t)};selectPoint=function(n){n=-n;$(".slider .slide_dots ul li").removeClass("active").filter(":eq("+calcEq(n)+")").addClass("active")};showItem=function(n){var t=-(n*slideValue);$(".slider .sliderContent ul.sliderUl").stop(!1,!1).animate({"margin-left":t+"px"},"slow",function(){var n=calcEq(t);n=n<0?-n:n});selectPoint(t)};generateControlButtons=function(){for(var i=$(".slider .sliderContent ul.sliderUl li.sliderItem").length,t="",n=0;n<\/a><\/li>";$(".slide_dots ul").html(t);selectPoint(0)}