var DOM2 = (document.getElementById ? true : false);
var scrolltimer = null;
var reg=new RegExp("[0-9]+","g");
var depx=50;
var bande=336;

function stopSlide() {clearTimeout(scrolltimer);}

function slideStopD(a){
stopSlide();b=depx;c=bande;d=document.getElementById(a);
if (!(d.style.left).match(reg)) {d.style.left=0;}
e=parseInt(d.style.width);f=parseInt(d.style.left);g=f-c;var h;
if ((c-e)>g){h=c-e;}else{h=g;}sSDLoop(a,b,h);
}

function slideStopG(a){
stopSlide();b=depx;c=bande;d=document.getElementById(a);e=parseInt(d.style.width);f=parseInt(d.style.left);var g;
if ((f+c)<-1){g=f+c;}else{g=-1;}sSGLoop(a,b,g);
}

function sSDLoop(a,b,c){
d=document.getElementById(a);
if (parseInt(d.style.left)>c){if ((parseInt(d.style.left)-b)>c){d.style.left=(parseInt(d.style.left)-b)+'px';scrolltimer=setTimeout("sSDLoop('"+a+"','"+b+"','"+c+"')",5);} else{d.style.left=c+'px';stopSlide();}}
}

function sSGLoop(a,b,c){
d=document.getElementById(a);
if (parseInt(d.style.left)<c){if ((parseInt(d.style.left)+b)<c){d.style.left=(parseInt(d.style.left)+b)+'px';scrolltimer=setTimeout("sSGLoop('"+a+"','"+b+"','"+c+"')",5);}else{d.style.left=c+'px';stopSlide();}}
}