
// ################################### //

USA=navigator.userAgent.toUpperCase();
//alert(USA)

ie4 = (document.all) ? 1 : 0
n4 = ((navigator.userAgent.indexOf("Mozilla/4") >= 0) && (navigator.appName=="Netscape")) ? 1 : 0 ;
nodom = 0;

ff = (USA.indexOf("FIREFOX") >= 0) ? 1 : 0 ;
n6 = (USA.indexOf("GECKO") >= 0) ? 1 : 0 ;
ie = (USA.indexOf("MSIE") >= 0) ? 1 : 0 ;

dom = (document.getElementById) ? 1 : 0 ;
if(dom){
	ie4 = 0;
} else {
	nodom = 1;
}

// alert(ff+" - "+n6+" - "+ie4+" - "+dom)




scaw = screen.availWidth
scah = screen.availHeight

function wop(lg){

if(lg=='vpcD'){	weite = 400; hoehe = 480; ziel = "../vpc-de.html";}
if(lg=='vpcE'){	weite = 400; hoehe = 480; ziel = "../vpc-en.html";}

	Li = Math.floor(((scaw-weite)/2)+172)
	Ob = 152; // Math.floor(((scah-54)-hoehe)/2)
//	alert(Ob); alert(weite); alert(hoehe); alert(Li)

eval("window.open(\""+ziel+"\",\"VPC\",\"scrollbars=no,toolbars=no,status=no,width="+weite+",height="+hoehe+",left="+Li+",top="+Ob+"\")")

}

// ################################### //

function prep(pObj,pSrc){
	if(document.images){
		eval(pObj+' = new Image()')
		eval(pObj+'.src = "'+pSrc+'"')
	}
}
/**/
prep('P10','../p/o-1.gif')
prep('P20','../p/o-2.gif')
prep('P30','../p/o-3.gif')
prep('P40','../p/o-4.gif')
prep('P50','../p/o-5.gif')
prep('P60','../p/o-6.gif')
prep('P70','../p/o-7.gif')

prep('P11','../p/x-1.gif')
prep('P21','../p/x-2.gif')
prep('P31','../p/x-3.gif')
prep('P41','../p/x-4.gif')
prep('P51','../p/x-5.gif')
prep('P61','../p/x-6.gif')
prep('P71','../p/x-7.gif')



// ###################################### //

function px(id,st){
	document.images["P"+id].src = eval("P"+id+st).src
}


// ################################### //

if(self.name != 1 && self.name != 2 && self.name != 3){
	malsehn = Math.floor((Math.random() * 3) + 1)
	self.name = malsehn;
}

(self.name == 3) ? ptyp = "gif" : ptyp = "jpg";

// ################################### //

function wexl(bg){
	if(self.name != bg){
		self.name = bg;
		this.location.href = this.location.href
	}
}

// ################################### //

// ################################### //