(function(e){
function b(a){
a=a.replace(/left|top/g,"0px");
a=a.replace(/right|bottom/g,"100%");
a=a.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");
a=a.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);
return[parsefloat(a[1],10),a[2],parsefloat(a[3],10),a[4]]}
if(!document.defaultview||!document.defaultview.getcomputedstyle){
var f=e.curcss;
e.curcss=function(a,c,b){
"background-position"===c&&(c="backgroundposition");
if("backgroundposition"!==c||!a.currentstyle||a.currentstyle[c])
return f.apply(this, arguments);
var g=a.style;
return!b&&g&&g[c]?g[c]:f(a,"backgroundpositionx",b)+" "+f(a,"backgroundpositiony",b)
}
}
var d=e.fn.animate;
e.fn.animate=function(a){
"background-position"in a&&(a.backgroundposition=a["background-position"],delete a["background-position"]);
"backgroundposition"in a&&(a.backgroundposition="("+a.backgroundposition);
return d.apply(this,arguments)
};
e.fx.step.backgroundposition=function(a){
if(!a.bgposready){
var c=e.curcss(a.elem,"backgroundposition");
c||(c="0px 0px");c=b(c);a.start= [c[0],c[2]];
c=b(a.end);
a.end=[c[0],c[2]];
a.unit=[c[1],c[3]];
a.bgposready=!0}c=[];
c[0]=(a.end[0]-a.start[0])*a.pos+a.start[0]+a.unit[0];
c[1]=(a.end[1]-a.start[1])*a.pos+a.start[1]+a.unit[1];
a.elem.style.backgroundposition=c[0]+" "+c[1]
}
}
)(jquery);
(function(e){e.extend(e.fx.step,{
backgroundposition:function(b){
function f(a){
a=a.replace(/left|top/g,"0px");
a=a.replace(/right|bottom/g,"100%");
a=a.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");
a=a.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);
return[parsefloat(a[1],10),a[2],parsefloat(a[3],10),a[4]]
}
if(0===b.state&&"string"==typeof b.end){
var d=e.curcss(b.elem,"backgroundposition"),d=f(d);
b.start=[d[0],d[2]];d=f(b.end);b.end=[d[0],d[2]];
b.unit=[d[1],d[3]]}d=[];
d[0]=(b.end[0]-b.start[0])* b.pos+b.start[0]+b.unit[0];
d[1]=(b.end[1]-b.start[1])*b.pos+b.start[1]+b.unit[1];
b.elem.style.backgroundposition=d[0]+" "+d[1]
}
}
)})(jquery);
$(function(){
function e(){
c=$(".list li").eq(d).find(".year").html();
var str = '';
for (var i = 0; i <= c.length - 1; i++) {
str += "";
}
//$(".timeblock").html(str);
var a=c.split(""),b=["num0","num1","num2","num3","num4","num5","num6","num7","num8","num9"];
for(i=0;4>i;i++)
$("."+b[i]+"").stop(!0,!1).animate({backgroundposition:"0px "+-24*a[i]},{duration:200})}
$(".list .liwrap").mouseover(function(){
$(".list li").removeclass("thiscur");
$(this).parent().addclass("thiscur")
});
var b=0,f=$(".list li").length,d=0,a=!0,c;
(function(){
var a=$(window).height();
890<=a&&(row=6);
800<=a&&890>a&&(row=5);
726<=a&& 800>a&&(row=4);
726>a&&(row=3)}
)();
var h=f-row;
$(".list").height(500);
$("#content").height(400);
$.fn.liout=function(){
$(this).find(".lileft").animate({left:"0"},500,"easeoutquart");
$(this).find(".liright").animate({right:"0"},500,"easeoutquart")
};
$.fn.liin=function(){
$(this).find(".lileft").animate({left:"0px"},500,"easeoutquart");
$(this).find(".liright").animate({right:"0px"},500,"easeoutquart")
};
$(".arrowdown").click(function(){
a&&parseint($(".list li:first").css("margintop"))> -360*h&&(d++,b--,a=!1,$(".list li").eq(d-1).liout(),$(".list li").eq(d+row-1).liin(),$(".list li:first").animate({margintop:360*b},600,"easeinoutquad",function(){
a=!0;$(".arrowdown").css("opacity",1);
$(".arrowdown").removeclass("arrow_active")
}),e()
)});
$(".arrowup").click(function(){
a&&0!=parseint($(".list li:first").css("margintop"))&&(b++,d--,a=!1,$(".list li").eq(d).liin(),$(".list li").eq(d+row).liout(),$(".list li:first").animate({margintop:360*b},600,"easeinoutquad",function(){
a=!0;$(".arrowup").css("opacity", 1);
$(".arrowup").removeclass("arrow_active")
}),e()
)});
$(".list").mousewheel(function(b,c){
math.abs(c);
if(a){
var d=parseint($(".list li:first").css("margintop"));
0-60*h&&($(".arrowdown").addclass("arrow_active"),$(".arrowdown").trigger("click"))
}
});
$(".timeblock").attr("thisyear",c);
});