d=document;
nav=navigator.userAgent;
ok=0;
ldd=0;
if(d.images && d.getElementById){ok=1;}
mac=0;
if(navigator.userAgent.indexOf("Mac")!=-1){mac=1};
m=new Array();
k=new Array();
mreg=/\d\.gif/;

function pre(en){

}
function pre2(){

}
function pre2ENG(){

}

function pre3(en){
if(en){mp="../images/karten/";}else{mp="images/karten/";}
if(ok && d.getElementById('inhalt-standorte')){
k[0]=new Image;k[0].src=mp+"karte_deutschland2.gif";
k[1]=new Image;k[1].src=mp+"karte_deutschland3.gif";
k[2]=new Image;k[2].src=mp+"karte_deutschland4.gif";
k[3]=new Image;k[3].src=mp+"karte_deutschland5.gif";
k[4]=new Image;k[4].src=mp+"karte_deutschland6.gif";
k[5]=new Image;k[5].src=mp+"karte_deutschland7.gif";
k[6]=new Image;k[6].src=mp+"karte_europa2.gif";
k[7]=new Image;k[7].src=mp+"karte_europa3.gif";
k[8]=new Image;k[8].src=mp+"karte_europa4.gif";
k[9]=new Image;k[9].src=mp+"karte_europa5.gif";
k[10]=new Image;k[10].src=mp+"karte_europa6.gif";
k[11]=new Image;k[11].src=mp+"karte_europa7.gif";
k[12]=new Image;k[12].src=mp+"karte_europa8.gif";
k[13]=new Image;k[13].src=mp+"karte_asien2.gif";
k[14]=new Image;k[14].src=mp+"karte_asien5.gif";
k[15]=new Image;k[15].src=mp+"karte_asien4.gif";
k[16]=new Image;k[16].src=mp+"karte_afrika2.gif";
k[17]=new Image;k[17].src=mp+"karte_afrikaE2.gif";
k[18]=new Image;k[18].src=mp+"karte_suedamerika2.gif";
k[19]=new Image;k[19].src=mp+"karte_europa9.gif";
}
ldd=1;
}

function preX(lan){

}

function mon(a){
if(ok && ldd && !mac){s=a.src.replace("_i.","_a.");for(x=0;x<m.length;x++){if(s==m[x].src){a.src=m[x].src};}}
else if(ok){a.src=a.src.replace("_i.","_a.");}
}

function moff(a){
if(ok){a.src=a.src.replace("_a.","_i.");}
}

function stndon(a,b){
if(ok && ldd && !mac){
s=d.getElementById(a).src.replace(mreg,b+".gif");
for(x=0;x<k.length;x++){
if(s==k[x].src){d.getElementById(a).src=k[x].src;}
}
}
else if(ok){d.getElementById(a).src=d.getElementById(a).src.replace(mreg,b+".gif");}
}

function stndoff(a){
if(ok){d.getElementById(a).src=d.getElementById(a).src.replace(mreg,"1.gif");}
}

function churl(a){
plc=top.location.href.split('p=');
if(plc[1]){
newl=self.location.href+'#'+plc[1];
if(self.location.href.indexOf('#')==-1){self.location.href=newl;}
}
}

function lang(){
if(nav.indexOf("Safari")!=-1){onresize=mv;}
else if(nav.indexOf("Mac")!=-1 && nav.indexOf("MSIE 5.2")!=-1){mie()}
}

function mv(){
if (self.innerHeight){
iW = self.innerWidth;iH = self.innerHeight;newl=iW-70;newt=iH-90;
sp=d.getElementById("sprachwahl");sp.style.left=newl+"px";sp.style.top=newt+"px";
sp.style.backgroundImage="none";sp.style.backgroundColor="transparent";}	
}

function mie(){
  document.body.style.height=document.body.clientHeight+"px";
  onresize=mie2;
}
function mie2(){
  document.body.style.height=document.body.clientHeight+"px";
}


function sb(){
if(nav.indexOf("Opera")!=-1 && d.body.offsetWidth && self.screen.width>790 && ok){
onresize=op;if(d.body.offsetWidth<605){op();}}
else if(nav.indexOf("Mac")!=-1 && nav.indexOf("MSIE 5.2")!=-1){onresize=mms;}
else if(nav.indexOf("Firefox")!=-1){onresize=ffx;}
}
function op(){
if (d.body.offsetWidth<605){d.body.style.paddingBottom="1px";}
else{d.body.style.paddingBottom=0;}
}
function mms(){
if(d.body.clientWidth>=589){d.body.style.overflow="hidden";}
else{d.body.style.overflow="auto";}
}
function ffx(){
if (d.body.offsetWidth<589){d.body.style.overflow="visible";d.body.style.paddingBottom="1px";}
else{d.body.style.overflow="hidden";}
}



function pop(n,en){
wH=496;wW=480;
sz="height="+wH+",width="+wW;if(typeof(oW)=="undefined"||oW.closed==true){oW=window.open('','op',sz);}
oW.location.href=en+'images/galerie/frame'+n+'_01-05.htm';oW.focus();
}


function mrk(){
if(d.images){
for(i=0;i<d.images.length;i++){
if(d.images[i].width==87){d.images[i].style.borderColor="#993333";break;}
 }
 }
}

function bdr(a){
if(d.images){for(i=0;i<d.images.length;i++){
d.images[i].style.borderColor="#ffffff";}
a.style.borderColor="#993333";}
}

function writefl(fl,im){
document.write('<object type="application/x-shockwave-flash" data="'+fl+'" width="160" height="170"> <param name="movie" value="'+fl+'" /> <img src="'+im+'" height="1" width="1" alt="" /></object>');
}