function pausescroller(_1,_2,_3,_4){
this.content=_1;
this.tickerid=_2;
this.delay=_4;
this.mouseoverBol=0;
this.hiddendivpointer=1;
document.write("<div id=\""+_2+"\" class=\""+_3+"\" style=\"position: relative; overflow: hidden\"><div class=\"innerDiv\" style=\"position: absolute; width: 100%\" id=\""+_2+"1\">"+_1[0]+"</div><div class=\"innerDiv\" style=\"position: absolute; width: 100%; visibility: hidden\" id=\""+_2+"2\">"+_1[1]+"</div></div>");
var _5=this;
if(window.addEventListener){
window.addEventListener("load",function(){
_5.initialize();
},false);
}else{
if(window.attachEvent){
window.attachEvent("onload",function(){
_5.initialize();
});
}else{
if(document.getElementById){
setTimeout(function(){
_5.initialize();
},500);
}
}
}
}
pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid);
this.visiblediv=document.getElementById(this.tickerid+"1");
this.hiddendiv=document.getElementById(this.tickerid+"2");
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv));
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px";
this.getinline(this.visiblediv,this.hiddendiv);
this.hiddendiv.style.visibility="visible";
var _6=this;
document.getElementById(this.tickerid).onmouseover=function(){
_6.mouseoverBol=1;
};
document.getElementById(this.tickerid).onmouseout=function(){
_6.mouseoverBol=0;
};
if(window.attachEvent){
window.attachEvent("onunload",function(){
_6.tickerdiv.onmouseover=_6.tickerdiv.onmouseout=null;
});
}
setTimeout(function(){
_6.animateup();
},this.delay);
};
pausescroller.prototype.animateup=function(){
var _7=this;
if(parseInt(this.hiddendiv.style.top)>(this.visibledivtop+2)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-2+"px";
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-2+"px";
setTimeout(function(){
_7.animateup();
},50);
}else{
this.getinline(this.hiddendiv,this.visiblediv);
this.swapdivs();
setTimeout(function(){
_7.setmessage();
},this.delay);
}
};
pausescroller.prototype.swapdivs=function(){
var _8=this.visiblediv;
this.visiblediv=this.hiddendiv;
this.hiddendiv=_8;
};
pausescroller.prototype.getinline=function(_9,_a){
_9.style.top=this.visibledivtop+"px";
_a.style.top=Math.max(_9.parentNode.offsetHeight,_9.offsetHeight)+"px";
};
pausescroller.prototype.setmessage=function(){
var _b=this;
if(this.mouseoverBol==1){
setTimeout(function(){
_b.setmessage();
},100);
}else{
var i=this.hiddendivpointer;
var _d=this.content.length;
this.hiddendivpointer=(i+1>_d-1)?0:i+1;
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer];
this.animateup();
}
};
pausescroller.getCSSpadding=function(_e){
if(_e.currentStyle){
return _e.currentStyle["paddingTop"];
}else{
if(window.getComputedStyle){
return window.getComputedStyle(_e,"").getPropertyValue("padding-top");
}else{
return 0;
}
}
};

var tcontent=new Array();

/*new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)*/
tcontent[0]='<a href="news_detail.php?id=21257">Firmen zeigen sich von ihrer besten Seite</a><br />TELTOW - In der Region Potsdam mit den Kommunen Teltow, Kleinmachnow,   Stahnsdorf und Ludwigsfelde gibt es derzeit rund 350 unbesetzte   Ausbildungsplätze. Firmen ...<br /><img src="images/arrow_red.gif" border="0"></a>&nbsp;<a href="news_detail.php?id=21257" style="font-weight:normal;">mehr</a>';
tcontent[1]='<a href="news_detail.php?id=21184">Erneuter Strompreisanstieg – Kritik des Unternehmerverbandes</a><br />Plan der Bundesregierung ist es, Unternehmen mit einem Jahresverbrauch   größer als 10 Gigawattstunden Strom und einer Stromabnahme von   mindestens 700 Stunden ...<br /><img src="images/arrow_red.gif" border="0"></a>&nbsp;<a href="news_detail.php?id=21184" style="font-weight:normal;">mehr</a>';
new pausescroller(tcontent, "tickerc", "tickerc", 5000);

