
com.zetzi.Scroller = function(){
  MZCore = (MZCore == null)? (MZCore = new core()):MZCore;
  this.SB = MZCore.getElementStyle("MZscroller");
  this.aktiv = window.setInterval("makescroll()", 50);
};
com.zetzi.Scroller.prototype = {
  makescroll:function(){
    SBleft = this.SB.left.substring(0, this.SB.left.length-2);
    //alert(SBleft);
    //MZCore.getElement("ERROR").innerHTML = SBleft;
    if(SBleft < -100){
      this.SB.left = 275;
    }else{
      this.SB.left = SBleft - 1;
    }
  },
  clear:function(){
    window.clearInterval(this.aktiv);
  },
  stop:function(){
    window.clearInterval(this.aktiv);
  },
  go:function(){
    this.aktiv = window.setInterval("makescroll()", 50);
  },
  gotoEvent:function(uid){
    window.clearInterval(this.aktiv);
    location.href = "/index.php?ID=24&EV=" + uid;
  }
}
function makescroll(){
  myScroller.makescroll();
}
var MZScroller = com.zetzi.Scroller;
var myScroller=null;
