/*--------------------------  Object String  -------------------------------*/
function new_link(href, title, target)    // Neue Methode definieren
{
  this.href = href || "";
  this.title = title || href;
  this.target = target || "";
  this.str = '<A HREF="'+this.href+'"';
  if (this.title != "") this.str += ' TITLE="'+this.title+'"';
  if (this.target != "") this.str += ' TARGET="'+this.target+'"';
  this.str += '>'+this+'</A>';
  return(this.str);
}

String.prototype.link = new_link;         // Alte Methode &uuml;berschreiben
/*--------------------------  imgWindow  -------------------------------*/
  function imgWindow(title,img,w,h) {
    var ww = w + 50;
    var wh = h + 50;
    var F1 = window.open('','_blank','height='+wh+',width='+ww+',status=no');
    var doc = F1.document;
    with(doc)
      {
        writeln('<html><head><title>'+title+'</title>');
        writeln('<style>body{background-color:#00005F;margin:0px;}img{position:absolute;top:50%;left:50%;width:'+w+';height:'+h+';margin-top:-'+Math.round(h/2)+';margin-left:-'+Math.round(w/2)+';}</style>');
        writeln('</head><body>');
        writeln('<img src="'+img+'" width="'+w+'" height="'+h+'" border="0">');
        writeln('</body></html>');
      }
  }

  function getMessage()
    {
      var now = new Date();
      var sec = now.getSeconds();
      return (ar[sec % ar.length]);
    }
   var i = 10,l = 0;
   var ml = null;

   function Animation()
   {
    l = (l == 0) ?  1:0;
    ml.style.top = l;
    i--;
    if(i <= 0) {return}
    window.setTimeout("Animation()",100);
   }

   function startani() {
    ml = document.getElementById("SIDEBAR");
    Animation();
   }
   function ani() {
    i--;
    if(i <= 0)
    {
     i = 10;
     l = 0;
     Animation()
    }
   }