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) location.reload();
}
MM_reloadPage(true);

//funktion wetterauswahl
function go()
{

 if (document.selecter.select1.options[document.selecter.select1.selectedIndex].value != "none")
 {
  location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value
 }
}

//ebene waehlen und anzeigen
var uebergabe;

function Zeigen(divNr){
uebergabe="ebene"+divNr;

if (document.getElementById)
{
document.getElementById(uebergabe).style.visibility="visible";
}

else
{
document.layers[uebergabe].visibility="visible";
}
}

function Verbergen(divNr){

uebergabe="ebene"+divNr;

if (document.getElementById)
{
document.getElementById(uebergabe).style.visibility="hidden";
}

else
{
document.layers[uebergabe].visibility="hidden";
}
}


//mitscrollen lassen
function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function flevDivPositionValue(sDiv, sProperty) { // v1.1, Marja Ribbers-de Vroed
        this.opera = (window.opera); // Opera 5+
        this.ns4 = (document.layers); // Netscape 4.x
        this.ns6 = (document.getElementById && !document.all); // Netscape 6+
        this.ie = (document.all);  // Internet Explorer 4+
    var sValue = ""; docObj = eval("MM_findObj('" + sDiv + "')");
        if (this.opera) {
                if (sProperty == "height") { sValue = docObj.style.pixelHeight; }
                else if (sProperty == "width") { sValue = docObj.style.pixelWidth; }
                else { sValue = eval("docObj.style." + sProperty); }
        }
        else if (this.ns4) {
                if ((sProperty == "width") || (sProperty == "height")) { sValue = eval("docObj.clip." + sProperty); }
                else { sValue = eval("docObj." + sProperty); }
    }
        else if (this.ns6) { sValue = document.defaultView.getComputedStyle(docObj, "").getPropertyValue(sProperty); }
    else if (this.ie) {
                if (sProperty == "width") { sValue = eval(sDiv + ".offsetWidth"); }
                else if (sProperty == "height") { sValue = eval(sDiv + ".offsetHeight"); }
                else if (sProperty == "top") { sValue = eval(sDiv + ".offsetTop"); }
                else if (sProperty == "left") { sValue = eval(sDiv + ".offsetLeft"); }
           }
        sValue = (sValue == "") ? 0 : sValue;
        if (isNaN(sValue)) { if (sValue.indexOf('px') > 0) { sValue = sValue.substring(0,sValue.indexOf('px')); } }
        return parseInt(sValue);
}

function flevMoveDiv(sDivID, sLeft, sTop){ // v1.2, Marja Ribbers-de Vroed
        var        docObj = eval("MM_findObj('" + sDivID + "')"), sSuffix="";
        if (!document.layers) { // not NS4.x
                docObj = docObj.style;
        }
        if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1) && (!window.opera)) {sSuffix="px";}
        if (sLeft != "") {eval("docObj.left = '" + sLeft + sSuffix + "'");}
        if (sTop != "") {eval("docObj.top = '" + sTop + sSuffix + "'");}
}

function flevPersistentLayer() { // v2.1, Marja Ribbers-de Vroed
        if (arguments.length < 7) {return;}
        // gather arguments
        var sDivID = arguments[0]; if (sDivID == "") {return;}
        var sPersistLeft = arguments[1], sPersistCenterX = arguments[2], sPersistRight = arguments[3];
        var sPersistTop = arguments[4], sPersistCenterY = arguments[5], sPersistBottom = arguments[6];
        var iDelay = ((arguments.length > 7) && (!isNaN(arguments[7]))) ? parseInt(arguments[7]) : 10;
        var iPx = ((arguments.length > 8) && (!isNaN(arguments[8]))) ? parseInt(arguments[8]) : 0;
        // determine current document window size and scroll position
        var iWinWidth, iWinHeight, iScrollX, iScrollY;
        if (window.innerWidth) { // NS4, NS6 and Opera
                iWinWidth = window.innerWidth;
                iWinHeight = window.innerHeight;
                iScrollX = window.pageXOffset;
                iScrollY = window.pageYOffset;
                }
        else if (document.documentElement && document.documentElement.clientWidth) { // IE6 in standards compliant mode
                iWinWidth = document.documentElement.clientWidth;
                iWinHeight = document.documentElement.clientHeight;
                iScrollX = document.documentElement.scrollLeft;
                iScrollY = document.documentElement.scrollTop;
                }
        else if (document.body) { // IE4+
                iWinWidth = document.body.clientWidth;
                iWinHeight = document.body.clientHeight;
                iScrollX = document.body.scrollLeft;
                iScrollY = document.body.scrollTop;
                }
        else {return;}
        var iNewX, iNewY,  bPersist = false;
        // determine current layer position
        var iCurX = flevDivPositionValue(sDivID, 'left'), iCurY = flevDivPositionValue(sDivID, 'top');
        // calculate new X coordinate
        if (sPersistCenterX != "") {iNewX = Math.round(iScrollX + (iWinWidth/2) - (flevDivPositionValue(sDivID, 'width')/2));}
        else if (sPersistLeft != "") {iNewX = iScrollX + parseInt(sPersistLeft);}
        else if (sPersistRight != "") {iNewX = iScrollX + iWinWidth - (flevDivPositionValue(sDivID, 'width') + parseInt(sPersistRight));}
        else {iNewX = flevDivPositionValue(sDivID, 'left');}
        // calculate new Y coordinate
        if (sPersistCenterY != "") {iNewY = Math.round(iScrollY + (iWinHeight/2) - (flevDivPositionValue(sDivID, 'height')/2));}
        else if (sPersistTop != "") {iNewY = iScrollY + parseInt(sPersistTop);}
        else if (sPersistBottom != "") {iNewY = iScrollY + (iWinHeight - flevDivPositionValue(sDivID, 'height') - parseInt(sPersistBottom));}
        else {iNewY = flevDivPositionValue(sDivID, 'top');}
        // force persistency?
        if ((iCurX != iNewX) || (iCurY != iNewY)) {bPersist = true;}
        if (bPersist) { // layer position needs to be adjusted
                var bMac = (navigator.platform.toLowerCase().indexOf("mac") != -1);
                if ((iPx > 0) && (!bMac)) { // animated persistency (doesn't work right yet on Mac)
                        var iPxX = iPx, iPxY = iPx, iMoveX = Math.abs(iCurX - iNewX), iMoveY = Math.abs(iCurY - iNewY);
                        // take care of diagonal movement
                        if (iMoveX < iMoveY) {iPxY = (iMoveX != 0) ? Math.round(Math.abs(iMoveY/iMoveX)*iPx) : iPx;}
                        else {iPxX = (iMoveY != 0) ? Math.round(Math.abs(iMoveX/iMoveY)*iPx) : iPx;}
                        // calculate temporary X/Y coordinates
                        if ((iCurX < iNewX) && (iCurX + iPxX < iNewX)) {iNewX = iCurX + iPxX;}
                        if ((iCurX > iNewX) && (iCurX - iPxX > iNewX)) {iNewX = iCurX - iPxX;}
                        if ((iCurY < iNewY) && (iCurY + iPxY < iNewY)) {iNewY = iCurY + iPxY;}
                        if ((iCurY > iNewY) && (iCurY - iPxY > iNewY)) {iNewY = iCurY - iPxY;}
                }
                var sNewX = (iCurX != iNewX) ? String(iNewX) : "";
                var sNewY = (iCurY != iNewY) ? String(iNewY) : "";
                flevMoveDiv(sDivID, sNewX, sNewY);
        }
        var sFunction = "flevPersistentLayer('" + sDivID + "','" + sPersistLeft + "','" + sPersistCenterX + "','" + sPersistRight + "','" + sPersistTop + "','" + sPersistCenterY + "','" + sPersistBottom + "'," + iDelay + "," + iPx + ")";
        var tmpTimeout = setTimeout(sFunction,iDelay);
}



//menus einblenden
var i=0;
//menus ein/weg
var ids=new Array("menu1","menu2","menu3");

function weg()
{
for(i=0;i<ids.length;i++)
{

if(document.getElementById)
document.getElementById(ids[i]).style.top=-170;
else if(document.all)
document.getElementById(ids[i]).style.top=-170;
else if(document.layers)
document.layers[ids[i]].pageY=-170;

}

}

var oben,links,anfangLinks,anfangOben,id,stoppLinks,stoppOben;
function startMove(bildId,startLinks,startOben,endeLinks,endeOben)
{
oben=startOben;
links=startLinks;
move(bildId,startLinks,startOben,endeLinks,endeOben);

}

function move(bildId,startLinks,startOben,endeLinks,endeOben)
{
stoppLinks=endeLinks;
stoppOben=endeOben;
anfangLinks=startLinks;
anfangOben=startOben;
id=bildId;

var diffLinks=(stoppLinks-anfangLinks)/10;
var diffOben=(stoppOben-anfangOben)/10;

links+=diffLinks;
oben+=diffOben;


//fuer alle browser
if(document.getElementById)
        {//IE5,NN6,Opera
        document.getElementById(id).style.left=links;
        document.getElementById(id).style.top=oben;
        }
else if(document.all)
        {//IE4
        document.all(id).style.left=links;
        document.all(id).style.top=oben;
        }
else if(document.layers)
        {//NN4
        document.layers[id].pageX=links;
        document.layers[id].pageY=oben;
        }

var linksWert;
var obenWert;

if(diffLinks<0) linksWert=(links>=stoppLinks);
else if(diffLinks>0) linksWert=(links<=stoppLinks);
else linksWert=(links!=stoppLinks);

if(diffOben<0) obenWert=(oben>=stoppOben);
else if(diffOben>0) obenWert=(oben<=stoppOben);
else obenWert=(oben!=stoppOben);

if(linksWert || obenWert)
window.setTimeout("move(id,anfangLinks,anfangOben,stoppLinks,stoppOben)",40);
}

//browserweiche
var ie = document.all?1:0;
var ns6 = document.getElementById&&!document.all?1:0;
var ns4 = document.layers?1:0;

//hinweis
function hinweis() {
var win;
if (ns4)
win=window.open("xtras/hinweis/meldung.html","meldung","height=480,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

//seemannsknoten
function springerknoten(){
var win;
win=window.open("xtras/knoten/springerknoten.html","Springerknoten","height=480,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

function barrelknoten(){
var win;
win=window.open("xtras/knoten/barrelknoten.html","Barrelknoten","height=510,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

function biminiknoten(){
var win;
win=window.open("xtras/knoten/biminitwist.html","Biminitwist","height=570,width=320,left=250,top=60,resizable=yes,scrollbars=yes");}

function bloodknoten(){
var win;
win=window.open("xtras/knoten/bloodknoten.html","Bloodknoten","height=420,width=520,left=250,top=60,resizable=yes,scrollbars=yes");}

function dopbefestigungsknoten(){
var win;
win=window.open("xtras/knoten/befestigungsknoten.html","Befestigungsknoten","height=480,width=520,left=250,top=60,resizable=yes,scrollbars=yes");}



//Wetter
function wetterinfos08(){
var win;
win=window.open("http://www.wetteronline.de//cgi-bin/regframe?3&PRG=detail&TIME=std&LANG=de&WMO=10055&ART=temperatur","wetterinfos08","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}

function wetterinfos10(){
var win;
win=window.open("http://www.wetteronline.de/Schleswig-Holst/Fehmarn.htm","wetterinfos10","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}


function wetterinfos09(){
var win;
win=window.open("http://www.wetteronline.de//cgi-bin/regframe?3&PRG=detail&TIME=all&LANG=de&WMO=10055&ART=temperatur","wetterinfos09","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}

function wetterinfos05(){
var win;
win=window.open("http://www.weatheronline.co.uk/cgi-bin/windframe?03&LANG=en&WIND=g099","wetterinfos05","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}

function wetterinfos04(){
var win;
win=window.open("http://www.ifm-geomar.de/index.php?id=2589&no_cache=1","wetterinfos04","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}

function wetterinfos01(){
var win;
win=window.open("http://www.bsh.de/aktdat/bm/Burgstaaken.htm","wetterinfos01","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}

function wetterinfos02(){
var win;
win=window.open("http://www.dwd.de/de/WundK/W_aktuell/Seewetter/NOsee/Mittelfristvorhersage.htm","wetterinfos02","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}

function wetterinfos(){
var win;
win=window.open("http://www.bsh.de/aktdat/modell/stroemungen/Modell1.htm","wetterinfos","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}

function wetterinfos07(){
var win;
win=window.open("http://www.dwd.de/de/WundK/W_aktuell/Seewetter/NOsee/Seewetter.htm","wetterinfos07","height=500,width=750,left=150,top=50,resizable=yes,scrollbars=yes");}


//Beschreibung Fische
function plattfisch(){
var win;
win=window.open("xtras/fisch/plattfisch.html","Plattfisch","height=480,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

function aal(){
var win;
win=window.open("xtras/fisch/aal.html","Aal","height=280,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

function dorsch(){
var win;
win=window.open("xtras/fisch/dorsch.html","Dorsch","height=480,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

function meerforelle(){
var win;
win=window.open("xtras/fisch/meerforelle.html","Meerforelle","height=480,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

function hering(){
var win;
win=window.open("xtras/fisch/hering.html","Hering","height=480,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

function hornhecht(){
var win;
win=window.open("xtras/fisch/hornhecht.html","Hornhecht","height=480,width=504,left=250,top=60,resizable=yes,scrollbars=yes");}

//fisch des Tages 2001
function bild001(){
var win;
win=window.open("xtras/fisch/bild1_22001.html","bild1_22001","height=400,width=660,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild002(){
var win;
win=window.open("xtras/fisch/bild3_42001.html","bild3_422001","height=400,width=660,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild003(){
var win;
win=window.open("xtras/fisch/bild5_62001.html","bild5_62001","height=400,width=660,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild004(){
var win;
win=window.open("xtras/fisch/bild7_82001.html","bild7_82001","height=400,width=660,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild005(){
var win;
win=window.open("xtras/fisch/bild0102001.html","bild0102001","height=400,width=660,left=250,top=60,resizable=yes,scrollbars=yes");}

//fisch des Tages 2000
function bild20001(){
var win;
win=window.open("xtras/fisch/bild001.html","bild001","height=400,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild20002(){
var win;
win=window.open("xtras/fisch/bild002.html","bild002","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild20003(){
var win;
win=window.open("xtras/fisch/bild003.html","bild003","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild20004(){
var win;
win=window.open("xtras/fisch/bild004.html","bild004","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild20005(){
var win;
win=window.open("xtras/fisch/bild005.html","bild005","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild20006(){
var win;
win=window.open("xtras/fisch/bild006.html","bild006","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild20007(){
var win;
win=window.open("xtras/fisch/bild007.html","bild007","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild20008(){
var win;
win=window.open("xtras/fisch/bild008.html","bild008","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild20009(){
var win;
win=window.open("xtras/fisch/bild009.html","bild009","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

//fisch des tages 2003
function bild200301(){
var win;
win=window.open("xtras/fisch/bild200301.html","200301","height=450,width=600,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild200302(){
var win;
win=window.open("xtras/fisch/bild200302.html","200302","height=450,width=600,left=250,top=60,resizable=yes,scrollbars=yes");}

function bild200303(){
var win;
win=window.open("xtras/fisch/bild200303.html","200303","height=450,width=600,left=250,top=60,resizable=yes,scrollbars=yes");}

function aktuell(){
var win;
win=window.open("xtras/hinweis/aktuell.html","aktu","height=440,width=371,left=250,top=60,resizable=yes,scrollbars=yes");}

function seekartegross(){
var win;
win=window.open("xtras/sonstige/seekarte.html","seekarte","height=500,width=620,left=250,top=60,resizable=yes,scrollbars=yes");}

//shop - auktion - forum
function shop(){
var win;
win=window.open("shop/catalog/default.php","shop","height=500,width=770,left=50,top=50,menubar=yes,resizable=yes,scrollbars=yes");}

function seekarte(){
var win;
win=window.open("http://www.baltickoelln.de/shop/catalog/product_info.php?cPath=30&products_id=82","seekarte","height=500,width=770,left=50,top=50,menubar=yes,resizable=yes,scrollbars=yes");}

function auktion(){
self.location.href="http://www.baltickoelln.de/calender/index.php3"}

function kleinanzeigen(){
var win;
win=window.open("kleinanzeigen/index.html","kleinanzeigen","height=500,width=770,left=50,top=50,menubar=yes,resizable=yes,scrollbars=yes");}

function forum(){
var win;
win=window.open("forum/index.php","forum","height=500,width=770,left=50,top=50,menubar=yes,resizable=yes,scrollbars=yes");}

function forum2(){
var win;
win=window.open("../forum/index.php","forum","height=500,width=770,left=50,top=50,menubar=yes,resizable=yes,scrollbars=yes");}

function chat(){
var win;
win=window.open("chat/chat.php","chat","height=640,width=670,left=0,top=0,menubar=yes,resizable=yes,scrollbars=yes");}

// URL fuer Bild umsetzen
function bildWahl() {
var varURL = window.location.href;
var nr = varURL.substring(varURL.indexOf("?")+1,varURL.length);

self.focus();

// Bild holen
switch (nr){

case "1":
document.write('<img src="img/presse/zeitung001.gif" border="0" alt="Zeitungsartikel" />');
break;

default:
document.write("Im Moment leider keine Verbindung m&ouml;glich<br />Versuchen Sie es bitte nochmal.<p><a href='javascript:window.close()'>Fenster schlie&szlig;en</a>");
break;
}
}