delay=20;
cnt=new Array();
gup=new Array();
gdwn=new Array();
currentlocation="";
lastover="";
cnt["t1"]=0;
cnt["t2"]=0;
cnt["a"]=0;
cnt["b"]=0;
cnt["c"]=0;
cnt["d"]=0;
cnt["e"]=0;
cnt["f"]=0;
cnt["g"]=0;
cnt["a1"]=0;
cnt["b1"]=0;
cnt["c1"]=0;
cnt["d1"]=0;
cnt["e1"]=0;
cnt["f1"]=0;
cnt["g1"]=0;
function clipMover(_1,_2,_3){
newTop=0-(_2*_3);
obj=document.getElementById(_1);
obj.style.cursor="hand";
obj.style.backgroundPosition="0px "+newTop+"px";
obj.style.cursor="hand";
}
function su(_4,_5){
if(_4!=currentlocation){
sd(lastover,_5);
lastover=_4;
gup[_4]=1;
gdwn[_4]=0;
gu(_4,_5);
}
}
function sd(_6,_7){
if(_6!=currentlocation){
gdwn[_6]=1;
gup[_6]=0;
gd(_6,_7);
}
}
function gu(_8,_9){
if(_8!=currentlocation){
if(!gdwn[_8]){
if(cnt[_8]<5){
clipMover(_8,cnt[_8],_9);
if(cnt[_8]<4){
cnt[_8]=cnt[_8]+1;
setTimeout("gu('"+_8+"','"+_9+"')",delay);
}
}
}
}
}
function gd(_10,_11){
if(_10!=currentlocation){
if(!gup[_10]){
if(cnt[_10]>-1){
clipMover(_10,cnt[_10],_11);
if(cnt[_10]>0){
cnt[_10]=cnt[_10]-1;
setTimeout("gd('"+_10+"','"+_11+"')",delay);
}
}
}
}
}
var chng=new Array();
function mchng(id,_13){
if(chng[id]==1){
chng[id]=0;
document.getElementById(id).className=_13;
}else{
chng[id]=1;
document.getElementById(id).className=_13;
}
}
function t(){
var x1=x2=x3=0;
var y1=y2=y3=0;
if(document.documentElement){
x1=document.documentElement.scrollLeft||0;
y1=document.documentElement.scrollTop||0;
}
if(document.body){
x2=document.body.scrollLeft||0;
y2=document.body.scrollTop||0;
}
x3=window.scrollX||0;
y3=window.scrollY||0;
var x=Math.max(x1,Math.max(x2,x3));
var y=Math.max(y1,Math.max(y2,y3));
window.scrollTo(Math.floor(x/2),Math.floor(y/2));
if(x>0||y>0){
window.setTimeout("t()",50);
}
}

