
var _spd=null,_zspd=null;function _moveIt(_eid,_way,_max){_element=_eid;_direction=_way;var _elem=document.getElementById(_eid);_maxrig=0;if(_max==undefined){_maxlef=-1200;}else{_maxlef=_max;}
if(_way=='right'&&parseInt(_elem.style.left)>_maxlef){_elem.style.left=parseInt(_elem.style.left)-20+'px';}else if(_way=='left'&&(parseInt(_elem.style.left)<_maxrig)){_elem.style.left=parseInt(_elem.style.left)+20+'px';}
if(_way=='left'&&(parseInt(_elem.style.left)<_maxrig)){_zspd=setTimeout("_moveIt(_element,_direction,_maxlef)",1);}
if(_way=='right'&&(parseInt(_elem.style.left)>_maxlef)){_spd=setTimeout("_moveIt(_element,_direction,_maxlef)",1);}}
function _stopIt(){if(_spd!=null){clearTimeout(_spd);}
if(_zspd!=null){clearTimeout(_zspd);}}