var popup = false;
function wopen(url,h,w)
	{
		popup = window.open(url,"eoepop","scrolling=yes,scrollbars=yes,resizable=yes,menubar=yes,status=yes,height="+h+",width="+w+"");
	}


function scroller() {
	
	//gibt an, wie lang der inhalt des lauftextes ist.
	this.maxw = 0;
}

scroller.prototype.init = function() {
		
	this.nBody = YAHOO.util.Dom.get("scroll_body");
	this.nText = YAHOO.util.Dom.get("scroll_text");

	var x = YAHOO.util.Dom.get("scroll_c");
	
	this.maxw = parseInt(x.offsetWidth);
	var t1 = parseInt(this.nText.offsetWidth);
	
	var n = Math.floor( this.maxw / (t1) ) + 1
	
	var t0;
	var t3 = 20; //safety;
	while ( n-- > 0)
		{
			this.nBody.appendChild(this.nText.cloneNode(true));
		} 
	
	this.anim = new YAHOO.util.Anim(this.nBody, {marginLeft:{from:0,to:-1*(t1)}},10);
	this.anim.onComplete = { 
		fire:function() {
			scrollobj.anim.animate();
		}
	} 
	this.anim.animate();
}
	
var scrollobj;

YAHOO.util.Event.onContentReady("scroll_c", function() {
	scrollobj = new scroller(); scrollobj.init();
	} 
);
