//  This script and many more are available free online at
//  The JavaScript Source!! http://javascript.internet.com

//  slider's width
var breite=300

//  slider's height
var hoehe=50

//  slider's speed
var tempo=1

//  Array mit Infotexten
if (texte.length>1)
	i=1
else
	i=0

function start(){
	  if (document.all){
		  ieslider1.style.top=hoehe
		  iemarquee(ieslider1)
	    }
	  else if (document.layers && (navigator.appVersion.indexOf("4.") != -1)){
		  // do not run marquee on ns 4.x
		  //document.ns4slider.document.ns4slider1.top=hoehe
		  //document.ns4slider.document.ns4slider1.visibility='show'
		  //ns4marquee(document.ns4slider.document.ns4slider1)
	    }
	  else if (document.getElementById&&!document.all){
		  document.getElementById('ns6slider1').style.top=hoehe
		  ns6marquee(document.getElementById('ns6slider1'))
	    }
	}
function iemarquee(whichdiv){
	  iediv=eval(whichdiv)
	  if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=tempo){
		  iediv.style.pixelTop=0
		  setTimeout("iemarquee(iediv)",100)
		}
	  if (iediv.style.pixelTop>=hoehe*-1){
		  iediv.style.pixelTop-=tempo
		  setTimeout("iemarquee(iediv)",100)
	    }
	  else{
		  iediv.style.pixelTop=hoehe
		  iediv.innerHTML=texte[i]
		  if (i==texte.length-1)
		  i=0
		  else
		  i++
	    }
	}
function ns4marquee(whichlayer){
	  ns4layer=eval(whichlayer)
	  if (ns4layer.top>0&&ns4layer.top<=tempo){
		  ns4layer.top=0
		  setTimeout("ns4marquee(ns4layer)",100)
	    }
	  if (ns4layer.top>=hoehe*-1){
		  ns4layer.top-=tempo
		  setTimeout("ns4marquee(ns4layer)",100)
	    }
	  else{
		  ns4layer.top=hoehe
		  ns4layer.document.write(texte[i])
		  ns4layer.document.close()
		  if (i==texte.length-1)
		  i=0
		  else
		  i++
	    }
	}
function ns6marquee(whichdiv){
	  ns6div=eval(whichdiv)
	  if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=tempo){
		  ns6div.style.top=0
		  setTimeout("ns6marquee(ns6div)",100)
	    }
	  if (parseInt(ns6div.style.top)>=hoehe*-1){
		  ns6div.style.top=parseInt(ns6div.style.top)-tempo
		  setTimeout("ns6marquee(ns6div)",100)
	    }
	  else{
		  ns6div.style.top=hoehe
		  ns6div.innerHTML=texte[i]
		  if (i==texte.length-1)
		  i=0
		  else
		  i++
	   }
  }
