/*
function suchformclick(e)
{
  if (e) document.routeEvent(e);
  alert(e.type);
}

function initkeypress()
{
  if (document.captureEvents)
    document.captureEvents(Event.KEYPRESS);
  document.onkeypress=suchformclick;
//  if (document.suchform.suche)
//    document.suchform.suche.click;
}
*/

function browser_ie()
{
 var browser_ie;

 if (navigator.appName == "Microsoft Internet Explorer")
      browser_ie=true
 else browser_ie=false;
 return browser_ie;
}

var ttx=0;
var ttanfang=800;
var ttende=-1024;
var ttgeschwindigkeit=10;
var ttschrittweite=6;
ttx=ttanfang;
var ttinit=0;

function textticker()
{
 //alert(document.body.clientWidth);
 if (ttinit==0){
    ttinit=1;
    ttx=document.body.clientWidth;
    if (document.getElementById)
      document.getElementById("lauftext").style.left=document.body.clientWidth
    else if ( browser_ie())
         document.all.lauftext.style.left=document.body.clientWidth
    else document.layers.lauftext.x=document.body.clientWidth
 }
 ttx=ttx-ttschrittweite;
 if (document.getElementById)
      document.getElementById("lauftext").style.left=ttx
 else if ( browser_ie())
      document.all.lauftext.style.left=ttx
 else document.layers.lauftext.x=ttx;
 if(ttx <= -document.body.clientWidth) ttx=document.body.clientWidth
}

function start_all()
{
  setInterval('textticker()',100);
}
