
var content = 'test'; // Text, der angezeift werden soll

var boxheight = 150;                        //Hoehe der Anzeigebox
var boxwidth = 275;                        	//Breite der Anzeigebox.Hier mueßt ihr etwas experimentieren da der Text sonst zweireihig angezeigt wird
var elementheight = 0;                    //Weite der Scrolleiste.
var boxcolor = '#FFFFFF';                					//Hintergrundfarbe.
var textcolor = '000000' ;												//Textfarbe
var speed = 200;                        		//Geschwindigkeit in Millisekunden (1 sec=1000 Millisekunden)..
var pixelstep = 4;             		        //Wieviel Pixel vorwaerts
var godown = FALSE;                   				//von oben nach unten=TRUE , von unten nach oben=FALSE




var outer, inner;
var isNS=(navigator.appName=="Netscape");
var txt;


function ticker(ContentFile, BoxHeight, BoxWidth, ElementHeight, TextColor, BgColorEnable, BgColor, Speed, PixelStep, UpDown){
	boxheight = BoxHeight;
	boxwidth = BoxWidth;
	elementheight = ElementHeight;	
	textcolor = TextColor;
	boxcolor = BgColor;
	speed = Speed;
	pixelstep = PixelStep;
	godown = UpDown;
	content = BindFile('Beschreibung', ContentFile, '$');
	
	txt='<center><table cellpadding="0" cellspacing="0" border="0" height="'+boxheight+'" width="'+boxwidth+'"><tr><td>';
	if(BgColorEnable)
		txt+=(isNS)? '<ilayer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width="'+boxwidth+'" height="'+boxheight+' color="'+textcolor+'">'  : '<div id="outer" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; visibility:visible; background-color:'+boxcolor+'; color:'+textcolor+';" >';
	else
		txt+=(isNS)? '<ilayer name="outer" visibility="hidden" width="'+boxwidth+'" height="'+boxheight+' color="'+textcolor+'">'  : '<div id="outer" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; visibility:visible;  color:'+textcolor+';" >';	
	txt+=(isNS)? '<layer  name="inner"  width="'+(boxwidth-4)+'" height="'+(boxheight-4)+'" visibility="hidden" left="2" top="2" >'+content+'</layer></ilayer>'  :  '<div id="inner"  style="position:absolute; visibility:hidden; left:2px; top:2px; width:'+(boxwidth-4)+'">'+content+'</div></div>';
	txt+='</td></tr></table>';
	document.write(txt);
	
	if(isNS){
		inner=document.outer.document.inner;
		document.outer.clip.width=boxwidth;
		document.outer.clip.height=boxheight;
		inner.top=(godown)? -elementheight : boxheight-2;
		inner.clip.width=boxwidth-4;
		inner.clip.height=boxheight-4;
		document.outer.visibility="show";
		inner.visibility="show";
	}else{
		inner=document.all.inner.style;
		inner.pixelTop=(godown)? -elementheight : boxheight-2;
		inner.clip='rect(0px, 0px, 0px, 0px)';
		inner.visibility="visible";
	}
	setInterval('scrollbox()',speed);
}

function scrollbox(){
	if(isNS){
		inner.clip.width=boxwidth-4;
		inner.top+=(godown)? pixelstep: -pixelstep;
		inner.clip.bottom=-inner.top+boxheight-2
		inner.clip.top= -inner.top+2;
		if(godown){
			if(inner.top>boxheight)
				inner.top=-elementheight;
		}else{
			if(inner.top<2-elementheight)
				inner.top=boxheight+2;
		}
	}else{
		inner.pixelTop+=(godown)? pixelstep: -pixelstep;
		inner.clip="rect("+(-inner.pixelTop+2)+"px  "+(boxwidth-4)+"px "+(-inner.pixelTop-2+boxheight)+"px 0px)";
		if(godown){
			if(inner.pixelTop>boxheight){
				inner.pixelTop=-elementheight;
				inner.clip="rect(0px 0px 0px 0px)";
			}
		}else{
			if(inner.pixelTop<2-elementheight){
				inner.pixelTop=boxheight+2;
				inner.clip="rect(0px 0px 0px 0px)";
			}
		}
	}
}

//window.onload=init;

function reloadNS(){
	setTimeout('window.location.reload()', 500);
}




if(isNS)
	window.onresize=reloadNS;



