function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) innerWidth = "890";
}
//MM_reloadPage(true);

function checkBrowser(){
if((parseInt(navigator.appVersion )) >= 4 ) {
( navigator.appName.indexOf("etscape") != -1 ) ? ns = true : ns = false;
( navigator.appName.indexOf("xplorer") != -1 ) ? ie = true : ie = false;
gen5 = document.getElementById ? 1 : 0;
}
}

function changeIcon(Iname,Isrc){if((ns)&&(!gen5)){document.images[Iname].src=Imgpath+Isrc+".gif";
}else if(gen5){document.getElementById(Iname).setAttribute("src",Imgpath+Isrc+".gif");}else{document.images[Iname].src=Imgpath+Isrc+".gif";}}

function changeIconIF(Iname,Isrc,ElName){if((ns)&&(!gen5)){//document.layers["stay1"].document.images["but1IF1"].src=Imgpath+Isrc+".gif";
}else if(gen5){document.getElementById(Iname).setAttribute("src",Imgpath+Isrc+".gif");}else{document.images[Iname].src=Imgpath+Isrc+".gif";}}

function showAll(ElName,op){
if(op==1){if((ns)&&(!gen5)){
document.layers[ElName].visibility="hide";
op=2;


}else if(gen5){document.getElementById(ElName).style.visibility="hidden";op=2;}else{document.all[ElName].style.visibility="hidden";
op=2;}}else{

if((ns)&&(!gen5)){
document.layers[ElName].visibility="show";
op=1;}else if(gen5){document.getElementById(ElName).style.visibility="visible";op=1;}else{document.all[ElName].style.visibility="visible";op=1;}}}

function preloadImages() {
if((ns)&&(!gen5)){
} else {
but1 = new Image();
but1.src=Imgpath+'about_2.gif';
but2 = new Image();
but2.src=Imgpath+'services_2.gif';
but3 = new Image();
but3.src=Imgpath+'kiel_2.gif';
but4 = new Image();
but4.src=Imgpath+'ports_2.gif';
but5 = new Image();
but5.src=Imgpath+'contact_2.gif';
but6 = new Image();
but6.src=Imgpath+'news_2.gif';
but7 = new Image();
but7.src=Imgpath+'calculation_2.gif';
but8 = new Image();
but8.src=Imgpath+'port_servcie_2.gif';
but9 = new Image();
but9.src=Imgpath+'webcam_2.gif';
but1IF1 = new Image();
but1IF1.src=Imgpath+'company_2.gif';
but2IF1 = new Image();
but2IF1.src=Imgpath+'staff_2.gif';
but3IF1 = new Image();
but3IF1.src=Imgpath+'shareholders_2.gif';
but4IF1 = new Image();
but4IF1.src=Imgpath+'find_us_2.gif';
but5IF1 = new Image();
but5IF1.src=Imgpath+'port_service_2.gif';
but6IF1 = new Image();
but6IF1.src=Imgpath+'baldimar_2.gif';
but1IF2 = new Image();
but1IF2.src=Imgpath+'services_unten_2.gif';
but1IF3 = new Image();
but1IF3.src=Imgpath+'intro_2.gif';
but2IF3 = new Image();
but2IF3.src=Imgpath+'history_2.gif';
but3IF3 = new Image();
but3IF3.src=Imgpath+'authorities_2';
but4IF3 = new Image();
but4IF3.src=Imgpath+'regulations_2';
but1IF4 = new Image();
but1IF4.src=Imgpath+'intro_2.gif';
but2IF4 = new Image();
but2IF4.src=Imgpath+'kiel_port_2.gif';
but3IF4 = new Image();
but3IF4.src=Imgpath+'rd_port_2.gif';
but4IF4 = new Image();
but4IF4.src=Imgpath+'bb_port_2.gif';
but1IF5 = new Image();
but1IF5.src=Imgpath+'contact_2.gif';
but1IF6 = new Image();
but1IF6.src=Imgpath+'news_unten_2.gif';
but2IF6 = new Image();
but2IF6.src=Imgpath+'weather_2.gif';
but3IF6 = new Image();
but3IF6.src=Imgpath+'ice_report_2.gif';
but4IF6 = new Image();
but4IF6.src=Imgpath+'weblinks_2.gif';
but1IF7 = new Image();
but1IF7.src=Imgpath+'transit_expenses_2.gif';
but2IF7 = new Image();
but2IF7.src=Imgpath+'port_expenses_2.gif';
but1IF8 = new Image();
but1IF8.src=Imgpath+'webcam_unten_2.gif';
but1IF9 = new Image();
but1IF9.src=Imgpath+'webcam_unten_2.gif';
}}

function init(){
self.onError=null;
checkBrowser();
preloadImages();
}
init();


function openNow(url, name, breite, hoehe){
 xPos= (screen.width - breite)/2;
 yPos= (screen.height - hoehe)/2;
 fenster = window.open(url, name, 'height='+hoehe+' , width='+breite+', top='+yPos+', resizable=no,status=no');
 fenster.moveTo(xPos, yPos);
 fenster.focus();
 }





