var oneScrollT=0;
var oneScrollP=0;
var oneScrollN=1;
var oneScrollUL=0;
function oneScroll(d,link) {
 clearTimeout(oneScrollT);
 if (d) {
  if (link) {
   try { oneScrollUL=link.parentNode.parentNode.getElementsByTagName('UL')[0]; } catch (e) {}
  }
  if (oneScrollUL) {
  oneScrollN+=d;
  if (oneScrollN >= oneScrollUL.childNodes.width) { oneScrollN--; }
  else if (oneScrollN < 1) { oneScrollN=1; }
  else {
   var max=oneScrollUL.offsetWidth;
   var w=300;
   try { h=oneScrollUL.childNodes[oneScrollN].offsetHeight; } catch (e) {}
   oneScrollP=w*(oneScrollN-1);
   oneScrollUL.style.marginLeft=(d*18-oneScrollP)+'px';
   setTimeout("oneScrollUL.style.marginLeft="+(d*12-oneScrollP)+"+'px'",60);
   setTimeout("oneScrollUL.style.marginLeft="+(d*6-oneScrollP)+"+'px'",120);
   setTimeout("oneScrollUL.style.marginLeft="+-oneScrollP+"+'px'",180);
   oneScrollT=setTimeout("oneScroll("+d+")",360);
  }
  }
 }
}