var width   = 1000;
var width1  = 1000;
var height  = 100;
var height1 = 100;
var speed   = 1;
var bgcolor = "";
var lrs     = new Array();
var i       = 0;

lrs[i]='<a href="http://www.sparen-in-hamburg.de/index.php?show=preisliste"><img src="http://sparen-in-hamburg.de/pictureshow/upload/pics/40dc0f.JPG" border="0" alt="Willkommen bei Sparen in Hamburg" /></a>';i += 1;lrs[i]='<a href="http://www.sparen-in-hamburg.de/index.php?show=handler"><img src="http://sparen-in-hamburg.de/pictureshow/upload/pics/273148.PNG" border="0" alt="Werbung kann so sparsam sein... " /></a>';i += 1;

var copy = speed
lrs      = '<nobr>'+lrs.join(" ")+'</nobr>';
var ie   = document.all||document.getElementById;


   document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-3000">'+lrs+'</span>');
   var aw ='';
   var cs, nss;


function uf()
{

      cs  = document.getElementById ? document.getElementById("test2") : document.all.test2;
      cs2 = document.getElementById ? document.getElementById("test3") : document.all.test3;
      cs.innerHTML = cs2.innerHTML = lrs;
      aw  = document.all ? cs.offsetWidth : document.getElementById("temp").offsetWidth;
      cs2.style.left = aw+20;

   lt = setInterval("sl()",30);
}
window.onload = uf;

function sl()
{

      if (parseInt(cs.style.left)>(aw*(-1)+8))
      {
         cs.style.left = parseInt(cs.style.left)-copy;
      }
      else
      {
         cs.style.left=parseInt(cs2.style.left)+aw+30;
      }

      if (parseInt(cs2.style.left)>(aw*(-1)+8))
      {
         cs2.style.left=parseInt(cs2.style.left)-copy;
      }
      else
      {
         cs2.style.left=parseInt(cs.style.left)+aw+30;
      }

}

if (ie||document.layers)
{
   with (document)
   {
      document.write('<table border="0" cellspacing="0" cellpadding="0"><tr><td>');
      if (ie)
      {
         write('<div style="position:relative;width:'+width1+';height:'+height1+';overflow:hidden">');
         write('<div style="position:absolute;width:'+width+';height:'+height+';background-color:'+bgcolor+'" onmouseover="copy=0" onmouseout="copy=speed">');
         write('<div id="test2" style="position:absolute;left:0;top:0"></div>');
         write('<div id="test3" style="position:absolute;left:-1000;top:0"></div>');
         write('</div></div>');
      }

      document.write('</tr></td></table>');
   }
}
