// Original:  Patrick Lewis
// mod: W. Jansen


if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}


//  ::::::::  PopUp-Texte (in Reihenfolge der Links) ::::::::
descarray = new Array(


"<img src='images/sandstrand_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/windfluechter_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/segeln_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/surfen02_gr.jpg' width='300' height='225' border='0' alt=''>",


"<img src='images/surfen_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/angeln_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/fahrrad_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/sonne_gr.jpg' width='300' height='225' border='0' alt=''>",


"<img src='images/strand_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/fisch_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/kueste01_gr.jpg' width='300' height='225' border='0' alt=''>",

"<img src='images/kueste02_gr.jpg' width='300' height='225' border='0' alt=''>"

);

//"<img src='images/badestrand_gr.jpg' width='202' height='270' border='0' alt=''>",

//  :::::::: PopUp-Texte bis hier ::::::::



overdiv="0";


function popLayer(a)
{
if(!descarray[a]){descarray[a]="<font color=red>Dieses PopUp (#"+a+") ist nicht korrekt definiert - Beschreibung fehlt</font>";
}

desc = "<table style='border:1px solid #5F5F5F' cellspacing=0 cellpadding=10 border=0><tr><td style='font-size:11px;color:#000000;background-color:#F8F8F8'>\n"
        +descarray[a]
        +"\n</td></tr></table>";
if(navigator.family =="nn4") {
        document.object1.document.write(desc);
        document.object1.document.close();
        document.object1.left=x-150;
        document.object1.top=y-250;
        }
else if(navigator.family =="ie4"){
        object1.innerHTML=desc;
        object1.style.pixelLeft=x-150;
        object1.style.pixelTop=y-250;
        }
else if(navigator.family =="gecko"){
        document.getElementById("object1").innerHTML=desc;
        document.getElementById("object1").style.left=x-150;
        document.getElementById("object1").style.top=y-250;
        }
}

//  versteckt die PopUp-Box
function hideLayer(){
if (overdiv == "0") {
        if(navigator.family =="nn4") {eval(document.object1.top="-500");}
        else if(navigator.family =="ie4"){object1.innerHTML="";}
        else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
        }
}


//  überwacht Maus-Position / plaziert die Box dementsprechend
var isNav = (navigator.appName.indexOf("Netscape") !=-1);

function handlerMM(e){

// entweder feste x/y-Position für die Info-Box
// x = 300; // Infobox x-Position bei 300 von links
// y = 0;   // Infobox y-Position bei 0 (oben)
// oder Plazierung neben Mauszeiger


x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;

}

if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;
