// Handles rollover images for NN3+ and IE4+
var loaded = new Array();

function F_loadRollover(image,imageOver) 
{
  if (image && image.src && (null == image.out || typeof(image.out) == typeof(void(0)))) 
  {
     s = image.src;
     image.out = new Image();
     image.out.src = s;
     image.over = new Image();
     image.over.src = imageOver;
     loaded[image.name] = image;
  }
}

function ZweiFrames(URL1,F1,URL2,F2)
{  
  parent.frames[F1].location.href=URL1;
  parent.frames[F2].location.href=URL2;
}


function F_roll(imageName,over) 
{
  if (document.images) 
  {
    if (over) 
    { 
       imageObject = "over"; 
    }
    else	  
    { 
       imageObject = "out"; 
    }
    image = loaded[imageName];
    if (image) 
    {
       ref = eval("image."+imageObject);
       if (ref) 
       {
       	  image.src = eval("image."+imageObject+".src");
       }
    }
    if (window.event)
	window.event.cancelBubble = true;
  }
}

// the string that should scroll
var scrlStr = "+++ NEU: Wir sind ab sofort auch unter der Handy-Nr. 0175 - 55 65 65 6 zu erreichen !!!!! +++"+""

// the width of the scrolling area

var width = 65;
var strLen = scrlStr.length;
var pos = 1 - width;                // start far enough to the left for only
                                    // one letter to be showing
function scroll()
{
    var scroll = "";                // initialize the string to be printed
    pos++;                          // move to the right in the string
    if (pos == strLen)              // start over if the string is done scrolling
        pos = 1 - width;

    if (pos<0) 
    {                    // add spaces to beginning if necessary
        for (var i=1; i<=Math.abs(pos); i++)
            scroll = scroll + " ";
            scroll = scroll + scrlStr.substring(0, width - i + 1);
    }
    else
        scroll = scroll + scrlStr.substring(pos, pos + width);

    document.scrollMsg.message.value = scroll;         // print the string
    setTimeout("scroll()",100);     // recurse after 1/10 of a second
}



