var outer=document.getElementById("outer");
var oInner=document.getElementById("inner");
var oLis =document.getElementsByTagName("li");
var oleft=document.getElementById("left");
var oright=document.getElementById("right");
var step=0;
var timer=null;
function buttur(ele,obj){
window.clearTimeout(ele.timer);
var end=null;
for(direc in obj){
var direc1=direc.toLowerCase();
var strOffset="offset"+direc1.substr(0,1).toUpperCase()+direc1.substring(1).toLowerCase();
var target=obj[direc];
var nSpeed=(target-ele[strOffset])/10;
nSpeed=nSpeed>=0?Math.ceil(nSpeed):Math.floor(nSpeed);
ele.style[direc1]=ele[strOffset]+nSpeed+"px";
end+=nSpeed;
}
if(end)
if(typeof fnCallback=="function"){
fnCallback.call(ele);
}else{
ele.timer=window.setTimeout(function(){buttur(ele,obj)},30);
}
}
var divs=document.createElement("div");
divs.setAttribute("id","nav");
for(var i=0; i |