/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function Lvl_openWin(u,n,w,h,l,t,c,f) { //v1.0 4LevelWebs
  var ww=((screen.width-w)/2);if(c==1){l=ww;t=(screen.height-h)/2;}if(c==2){l=ww}
	f+=',top='+t+',left='+l;LvlWin = window.open(u,n,f);LvlWin.focus();
}


Banner=new CreateBanner();

function CreateBanner()
{
    this.Frequenz=5000;
    this.img=''; this.i=0;
    this.Imgs=new Array(); this.Links=new Array();
    this.Add=Banner_Add;
    this.Next=Banner_Next;
    this.Start=Banner_Start;
    this.onclick=Banner_onclick;
    this.initi=Banner_initi;
}

function Banner_Add(s,l)
{
    this.Imgs[this.Imgs.length]=s;
    this.Links[this.Links.length]=l;
}

function Banner_Next()
{
    this.i++; if(this.i >= this.Imgs.length){ this.i=0}
    document[this.img].src=this.Imgs[this.i];
    window.setTimeout('Banner.Next()',this.Frequenz);
}

function Banner_Start(){this.initi(); this.Next();}

function Banner_initi()
{
    document[this.img].onclick = Banner.onclick;
}

function Banner_onclick()
{ window.open(Banner.Links[Banner.i],'');}


