bw=new checkBrowser()
var speed=25
var loop, timer
var opera=window.opera ? 1:0;
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.op=window.opera ? 1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this

}


function popup(url){ 
window.open(url,'tag','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=360,height=750'); 
}


function popup0(url,n,b,h){ 

window.open(url,n,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+b+',height='+h+''); 
}
function popup1(url){ 
window.open(url,'tag1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=400'); 
}
function popup2(url){ 
window.open(url,'tag2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=300'); 
}
function popup3(url){ 
window.open(url,'tag3','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=700,height=500'); 
}
function popup4(url,b,h){ 
window.open(url,'tag0','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+b+',height='+h+''); 
}
function popup5_audio(url){ 
window.open(url,'tag2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=100,height=100'); 
}
function popup6_video(url){ 
window.open(url,'tag2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=300'); 
}
// Preload Images
function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.prov_p) d.prov_p=new Array();
    var i,j=d.prov_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.prov_p[j]=new Image; d.prov_p[j++].src=a[i];}}
}

function findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function pic_on() { //v3.0
  var i,j=0,x,a=pic_on.arguments; document.prov_sr=new Array; 
  for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){
   	document.prov_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
	}
}

function pic_off() {
if (document.layers){ //v3.0
  var i,x,a=document.prov_sr;
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  }
}

// popup-fenster

function winopen(theURL,winName,features){ 
	win=window.open(theURL,winName,features);
	x=(screen.availWidth/2)-(760/2);
	y=(screen.availHeight/2)-(480/2);
}


function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
