function mouseoverImg(id,src) {
 src=src.replace(/normal/,'hover');
 document.getElementById(id).src=src;
}

function mouseoutImg(id,src) {
 src=src.replace(/hover/,'normal');
 document.getElementById(id).src=src;
}

function showText() {
 var infos=document.getElementById('infos');
 if(infos.style.display=='block') {
  infos.style.display='none';
 }
 else {
  infos.style.display='block';
 }
 infos.style.top='-'+infos.clientHeight+'px';
}

function magazin() {
 window.open('magazin/2009/2009.html','magazin','toolbar=no,status=no,menubar=no,scrollbars=no,width=710,height=550');
}

function textScroll(scrollname, div_name, up_name, down_name) {
 this.div_name = div_name;
 this.name = scrollname;
 this.scrollCursor = 0;
 this.speed = 10;
 this.timeoutID = 0;
 this.div_obj = null;
 this.up_name = up_name;
 this.dn_name = down_name;
 {
  if(document.getElementById) {
   var div_obj = document.getElementById(this.div_name);
   if(div_obj) {
    this.div_obj = div_obj;
    this.div_obj.style.overflow = 'hidden';
   }
   var div_up_obj = document.getElementById(this.up_name);
   var div_dn_obj = document.getElementById(this.dn_name);
   if(div_up_obj && div_dn_obj) {
		div_up_obj.onmouseover = function() { eval(scrollname + ".scrollUp();"); mouseoverImg(this.id,this.src); };
		div_up_obj.onmouseout = function() { eval(scrollname + ".stopScroll();"); mouseoutImg(this.id,this.src); };

		div_dn_obj.onmouseover = function() { eval(scrollname + ".scrollDown();"); mouseoverImg(this.id,this.src); };
		div_dn_obj.onmouseout = function() { eval(scrollname + ".stopScroll();"); mouseoutImg(this.id,this.src); };
   }
  }
 }
 this.stopScroll = function() {
  clearTimeout(this.timeoutID);
 }
 this.scrollUp = function() {
  if(this.div_obj) {
   this.scrollCursor = (this.scrollCursor - this.speed) < 0 ? 0 : this.scrollCursor - this.speed;
   this.div_obj.scrollTop = this.scrollCursor;
   this.timeoutID = setTimeout(this.name + ".scrollUp()", 60);
  }
 }
 this.scrollDown = function() {
	if(this.div_obj) {
	 this.scrollCursor += this.speed;
	 this.div_obj.scrollTop = this.scrollCursor;
	 if(this.div_obj.scrollTop == this.scrollCursor) {
		this.timeoutID = setTimeout(this.name + ".scrollDown()", 60);
	 }
   else {
		this.scrollCursor = this.div_obj.scrollTop;
	 }
	}
 }
 this.resetScroll = function() {
  if(this.div_obj) {
   this.div_obj.scrollTop = 0;
   this.scrollCursor = 0;
  }
 }
}
