<!--//--><![CDATA[//><!-- 
//图片滚动列表 mengjia 070816 
var Speed = 10; //速度(毫秒) 
var Space = 5; //每次移动(px) 
var moveWidth = 180; //翻页宽度 
var fill = 0; //整体移位 
var topfill = 0; //整体移位 
var newfill = 0; //整体移位 
var MoveLock = false; 
var MoveTimeObj; 
var Comp = 0; 
var topComp=0;
var newComp=0;
var AutoPlayObj = null; 
var topAutoPlayObj = null; 
var newAutoPlayObj = null; 
GetObj("ListItem2").innerHTML = GetObj("ListItem").innerHTML; 
GetObj('ISL_Cont').scrollLeft = fill; 
GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);} 
GetObj("ISL_Cont").onmouseout = function(){AutoPlay();} 

GetObj("ListTop2").innerHTML = GetObj("ListTop").innerHTML; 
GetObj('top_Cont').scrollLeft = topfill; 
GetObj("top_Cont").onmouseover = function(){clearInterval(topAutoPlayObj);} 
GetObj("top_Cont").onmouseout = function(){topAutoPlay();} 

GetObj("ListNew2").innerHTML = GetObj("ListNew").innerHTML; 
GetObj('new_Cont').scrollLeft = fill; 
GetObj("new_Cont").onmouseover = function(){clearInterval(newAutoPlayObj);} 
GetObj("new_Cont").onmouseout = function(){newAutoPlay();} 

AutoPlay(); 
topAutoPlay(); 
newAutoPlay(); 
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}} 


function AutoPlay(){ //自动滚动 
 clearInterval(AutoPlayObj); 
 AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',5000); //间隔时间 
} 
function topAutoPlay(){ //自动滚动 
 clearInterval(topAutoPlayObj); 
 topAutoPlayObj = setInterval('top_GoDown();top_StopDown();',5000); //间隔时间 
} 
function newAutoPlay(){ //自动滚动 
 clearInterval(newAutoPlayObj); 
 newAutoPlayObj = setInterval('new_GoDown();new_StopDown();',5000); //间隔时间 
} 


function ISL_GoUp(){ //上翻开始 
 if(MoveLock) return; 
 clearInterval(AutoPlayObj); 
 MoveLock = true; 
 MoveTimeObj = setInterval('ISL_ScrUp();',Speed); 
} 

function top_GoUp(){ //上翻开始 
 if(MoveLock) return; 
 clearInterval(topAutoPlayObj); 
 MoveLock = true; 
 MoveTimeObj = setInterval('top_ScrUp();',Speed); 
} 

function new_GoUp(){ //上翻开始 
 if(MoveLock) return; 
 clearInterval(newAutoPlayObj); 
 MoveLock = true; 
 MoveTimeObj = setInterval('new_ScrUp();',Speed); 
} 


function ISL_StopUp(){ //上翻停止 
 clearInterval(MoveTimeObj); 
 if(GetObj('ISL_Cont').scrollLeft % moveWidth - fill != 0){ 
  Comp = fill - (GetObj('ISL_Cont').scrollLeft % moveWidth); 
  CompScr(); 
 }else{ 
  MoveLock = false; 
 }
 AutoPlay(); 
} 

function top_StopUp(){ //上翻停止 
 clearInterval(MoveTimeObj); 
 if(GetObj('top_Cont').scrollLeft % moveWidth - topfill != 0){ 
  topComp = topfill - (GetObj('top_Cont').scrollLeft % moveWidth); 
  CompScrTop(); 
 }else{ 
  MoveLock = false; 
 }
 topAutoPlay(); 
} 

function new_StopUp(){ //上翻停止 
 clearInterval(MoveTimeObj); 
 if(GetObj('new_Cont').scrollLeft % moveWidth - newfill != 0){ 
  newComp = newfill - (GetObj('new_Cont').scrollLeft % moveWidth); 
  CompScrNew(); 
 }else{ 
  MoveLock = false; 
 }
 newAutoPlay(); 
} 



function ISL_ScrUp(){ //上翻动作 
 if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft + GetObj('ListItem').offsetWidth} 
 GetObj('ISL_Cont').scrollLeft -= Space ; 
 
} 

function top_ScrUp(){ //上翻动作 
 if(GetObj('top_Cont').scrollLeft <= 0){GetObj('top_Cont').scrollLeft = GetObj('top_Cont').scrollLeft + GetObj('ListTop').offsetWidth} 
 GetObj('top_Cont').scrollLeft -= Space ; 
 
} 

function new_ScrUp(){ //上翻动作 
 if(GetObj('new_Cont').scrollLeft <= 0){GetObj('new_Cont').scrollLeft = GetObj('new_Cont').scrollLeft + GetObj('ListNew').offsetWidth} 
 GetObj('newL_Cont').scrollLeft -= Space ; 
 
} 



function ISL_GoDown(){ //下翻 
 clearInterval(MoveTimeObj); 
 if(MoveLock) return; 
 clearInterval(AutoPlayObj); 
 MoveLock = true; 
 ISL_ScrDown(); 
 MoveTimeObj = setInterval('ISL_ScrDown()',Speed); 
} 

function top_GoDown(){ //下翻 
 clearInterval(MoveTimeObj); 
 if(MoveLock) return; 
 clearInterval(topAutoPlayObj); 
 MoveLock = true; 
 top_ScrDown(); 
 MoveTimeObj = setInterval('top_ScrDown()',Speed); 
} 


function new_GoDown(){ //下翻 
 clearInterval(MoveTimeObj); 
 if(MoveLock) return; 
 clearInterval(newAutoPlayObj); 
 MoveLock = true; 
 new_ScrDown(); 
 MoveTimeObj = setInterval('new_ScrDown()',Speed); 
} 

function ISL_StopDown(){ //下翻停止 
 clearInterval(MoveTimeObj); 
 if(GetObj('ISL_Cont').scrollLeft % moveWidth - fill != 0 ){ 
  Comp = moveWidth - GetObj('ISL_Cont').scrollLeft % moveWidth + fill; 
  CompScr(); 
 }else{ 
  MoveLock = false; 
 } 
 AutoPlay(); 
} 

function new_StopDown(){ //下翻停止 
 clearInterval(MoveTimeObj); 
 if(GetObj('new_Cont').scrollLeft % moveWidth - newfill != 0 ){ 
  newComp = moveWidth - GetObj('new_Cont').scrollLeft % moveWidth + newfill; 
  CompScrNew(); 
 }else{ 
  MoveLock = false; 
 } 
 newAutoPlay(); 
} 

function top_StopDown(){ //下翻停止 
 clearInterval(MoveTimeObj); 
 if(GetObj('top_Cont').scrollLeft % moveWidth - topfill != 0 ){ 
  topComp = moveWidth - GetObj('top_Cont').scrollLeft % moveWidth + topfill; 
  CompScrTop(); 
 }else{ 
  MoveLock = false; 
 } 
 topAutoPlay(); 
} 


function ISL_ScrDown(){ //下翻动作 
 if(GetObj('ISL_Cont').scrollLeft >= GetObj('ListItem').scrollWidth){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft - GetObj('ListItem').scrollWidth;} 
 GetObj('ISL_Cont').scrollLeft += Space ; 

} 

function top_ScrDown(){ //下翻动作 
 if(GetObj('top_Cont').scrollLeft >= GetObj('ListTop').scrollWidth){GetObj('top_Cont').scrollLeft = GetObj('top_Cont').scrollLeft - GetObj('ListTop').scrollWidth;} 
 GetObj('top_Cont').scrollLeft += Space ; 

} 

function new_ScrDown(){ //下翻动作 
 if(GetObj('new_Cont').scrollLeft >= GetObj('ListNew').scrollWidth){GetObj('new_Cont').scrollLeft = GetObj('new_Cont').scrollLeft - GetObj('ListNew').scrollWidth;} 
 GetObj('new_Cont').scrollLeft += Space ; 

}



function CompScr(){ 
 var num; 
 if(Comp == 0){MoveLock = false;return;} 
 if(Comp < 0){ //上翻 
  if(Comp < -Space){ 
   Comp += Space; 
   num = Space; 
  }else{ 
   num = -Comp; 
   Comp = 0; 
  } 
  GetObj('ISL_Cont').scrollLeft -= num; 
  
  setTimeout('CompScr()',Speed); 
 }else{ //下翻 
  if(Comp > Space){ 
   Comp -= Space; 
   num = Space; 
  }else{ 
   num = Comp; 
   Comp = 0; 
  } 
  GetObj('ISL_Cont').scrollLeft += num; 
  
  setTimeout('CompScr()',Speed); 
 } 
} 

function CompScrNew(){ 
 var num; 
 if(newComp == 0){MoveLock = false;return;} 
 if(newComp < 0){ //上翻 
  if(newComp < -Space){ 
   newComp += Space; 
   num = Space; 
  }else{ 
   num = -newComp; 
   newComp = 0; 
  } 
  
  GetObj('new_Cont').scrollLeft -= num; 
  
  setTimeout('CompScrNew()',Speed); 
 }else{ //下翻 
  if(newComp > Space){ 
   newComp -= Space; 
   num = Space; 
  }else{ 
   num = newComp; 
   newComp = 0; 
  } 

  GetObj('new_Cont').scrollLeft += num; 
  
  setTimeout('CompScrNew()',Speed); 
 } 
} 


function CompScrTop(){ 
 var num; 
 if(topComp == 0){MoveLock = false;return;} 
 if(topComp < 0){ //上翻 
  if(topComp < -Space){ 
   topComp += Space; 
   num = Space; 
  }else{ 
   num = -topComp; 
   topComp = 0; 
  } 
  
  GetObj('top_Cont').scrollLeft -= num; 
 
  setTimeout('CompScrTop()',Speed); 
 }else{ //下翻 
  if(topComp > Space){ 
   topComp -= Space; 
   num = Space; 
  }else{ 
   num = topComp; 
   topComp = 0; 
  } 
  GetObj('top_Cont').scrollLeft += num;   
  setTimeout('CompScrTop()',Speed); 
 } 
} 
//--><!]]> 
