<!--

// Geschwindigkeit konfigurieren:
var interval =  50;  // schneller: < 50; langsamer: > 50;
var pxProT   =  -2;  // schneller: < -2; langsamer: > -2;

// Endposition konfigurieren:
var minX     = 100;  // 30 px zum Rand des Kastens
	
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function XMObjects(c,s) { //v1.0
	var d=document,a=new Array(c,s);d.obj=new Array();n=(d.all||d.getElementById);e=d.all;
  	for(i=0;i<a.length;i++){d.obj[i]=(n)?MM_findObj(a[i]).style:MM_findObj(a[i]);
	o=d.obj[i];d.obj[i].x=(!e)?parseInt(o.left):o.pixelLeft;
	d.obj[i].y=(!e)?parseInt(o.top):o.pixelTop;d.obj[i].w=parseInt(o.width)||o.clip.width;
	d.obj[i].h=parseInt(o.height)||o.clip.height;}d.px=(n)?"px":"";
}

function XMMoveObject(x,y){
	var d=document;if(d.obj[1].x<minX){clearTimeout(XMSlide); return;}
	if (x!=0) {d.obj[1].x=d.obj[1].x+x;d.obj[1].left=d.obj[1].x+d.px;}
	if (y!=0) {d.obj[1].y=d.obj[1].y+y;d.obj[1].top=d.obj[1].y+d.px;}
	m=d.obj[1];o=d.obj[0];XMSlide=(m.x<o.w&&m.x>-m.w&&m.y<o.h&&m.y>-m.h)?
	setTimeout("XMMoveObject("+x+","+y+")",interval):setTimeout("XMMoveObject(0,0)",interval)
}

function init ()
{
  XMObjects('tickerBox-Container','tickerBox');
  XMMoveObject(pxProT,0);
}

//-->
