function cm_bwcheck(){ //In theory we should use object detection, but this script needs work-arounds for almost every browser... this.ver=navigator.appVersion this.agent=navigator.userAgent.toLowerCase() this.dom=document.getElementById?1:0 this.ns4=(!this.dom && document.layers)?1:0; this.ns47=(this.ns4 && (this.ver.search(/^4.7/))==0 )?1:0; this.ns7 = (this.agent.indexOf("netscape/7")>-1)?1:0; this.op=window.opera this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar) this.ie=this.agent.indexOf("msie")>-1 && !this.op if(this.op){ this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it }else if(this.moz) this.ns6 = 1 else if(this.ie){ this.ie4 = !this.dom && document.all this.ie5 = (this.agent.indexOf("msie 5")>-1) this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1) this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55 } this.mac=(this.agent.indexOf("mac")>-1) this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7) this.usedom= this.ns6||this.op7//Use dom creation this.reuse = this.ie||this.op7||this.usedom //Reuse layers this.px=this.dom&&!this.op5?"px":"" return this } var bw=new cm_bwcheck() // start the x pos var pos=170; //flag for one div if he is open 1 var picLayer = new Array(); //timerID = 0 var timerID = new Array(); var selectID = new Array(); // set the position of the layers function makePosition(img) { dv_staat=0; if(dv_staat != 0) { for(iland=0; iland2) { document.all['sub'+i].style.visibility = "visible"; document.all['dumsub'+i].style.visibility = "visible"; } oImg = eval('roll'+i); if(oImg.src != rollAImg[i]) oImg.src = rollAImg[i]; } else if(bw.ns4) { // clear all other for(iz=0; iz2) { document.layers['sub'+i].visibility = "show"; document.layers['dumsub'+i].visibility = "show"; } oImg = document.images['roll'+i]; if(oImg.src != rollAImg[i]) oImg.src = rollAImg[i]; } else { oImg = document.getElementById('roll'+i); oImg.setAttribute("src", rollImg[i].src) if(menu.chi[i].length>2) { document.getElementById('sub'+i).style.visibility = "visible"; document.getElementById('dumsub'+i).style.visibility = "visible"; } } } setTimeout('hideSelect()', 10); picLayer[i] = 1; } function hideSelect() { if(!bw.ns4) { if(document.forms['MainForm']) { for(iForm=0; iForm0 && i0 && i'+txt+''; cdStr +='
'; } else return ""; } else if(bw.ns4 && !bw.dom ) { if(txt) { cdStr =''; cdStr +='
'; } else { if(align=="bottom") paddTop = '' else paddTop = '' cdStr ='
'+paddTop+'
'; } } else { pDiv = document.getElementById("sub"+p); cDiv = document.createElement("DIV") if(txt) { oTxt = document.createTextNode(txt); cDiv.appendChild(oTxt); if(bw.ns7) cDiv.onmouseover= function (e) { clearAllRollOvers(p); changeColor(p,id); } else cDiv.onmouseover= function (e) { changeColor(p,id); } cDiv.onmouseout= function (e) { clearAllRollOvers(p) } cDiv.onclick= function (e) { document.location.href=url; } cDiv.className="S"; } else { cDiv.innerHTML = ''; cDiv.className="Sdummy"; } cDiv.display="none"; cDiv.cursor="hand"; cDiv.id = 'tdA'+p+""+id; cDiv.title=desc pDiv.appendChild(cDiv); cDiv.style.height=cDiv.offsetHeight; return ""; } return cdStr; } function Child(p, id, txt, desc,url, height, align) { this.id=id; this.url=url; this.txt=txt; this.desc=desc; this.dStr=createChilde(p, id, txt, desc,url, height, align); } function createParent(id){ if(bw.ns4) { cssStr = "SubMNN" } else { cssStr = "SubM" } if(bw.mac && bw.ie) { var cdStr = ''; cdStr += ''; } function Parent(id) { this.id='par'+id; //this.childrens=0; this.dStr=createParent(id); if(!bw.dom || (bw.mac && bw.ie) ) { this.endStr=createEndParent(); } } function Menu() { //parent array this.par = new Array(); // children two dimensional array[par][child]; this.chi = new Array(); //to create parent and child this.parent = MakeMP; this.child = MakeMC; //this.par.length shorter this.counter=0; } function MakeMP(id) { this.par[id] = new Parent(id); this.chi[id] = new Array(); this.counter++; }//Menu function MakeMC(p, id, txt, desc, url, height, align) { this.chi[p][id] = new Child(p, id, txt, desc, url, height, align); }//Menu var menu = new Menu() menu.parent(0); menu.child(0, 0, '', '', '', 4, 'top'); menu.child(0, 1, 'Leitbild', 'Leitbild', 'index.php?mode=leitbild', 4, ''); menu.child(0, 2, 'Statuten', 'Statuten', 'index.php?mode=statuten', 4, ''); menu.child(0, 3, 'Vorstand', 'Vorstand', 'index.php?mode=vorstand', 4, ''); menu.child(0, 4, 'Aktuelles', 'Aktuelles', 'index.php?mode=aktuelles', 4, ''); menu.child(0, 5, '','', '', 7, 'bottom'); menu.parent(1); menu.child(1, 0, '', '', '', 4, 'top'); menu.child(1, 1, 'Istrien', 'Istrien', 'index.php?mode=istrien', 4, ''); menu.child(1, 2, 'Norddalmatien', 'Norddalmatien', 'index.php?mode=norddalmatien', 4, ''); menu.child(1, 3, 'Süddalmatien', 'Süddalmatien', 'index.php?mode=dalmatien', 4, ''); menu.child(1, 4, 'Korsika', 'Korsika', 'index.php?mode=korsika', 4, ''); menu.child(1, 5, 'Sardinien', 'Sardinien', 'index.php?mode=sardinien', 4, ''); menu.child(1, 6, '','', '', 7, 'bottom'); menu.parent(2); menu.child(2, 0, '', '', '', 4, 'top'); menu.child(2, 1, '2004 Kornaten/Kroatien', '2004 Kornaten/Kroatien', 'index.php?mode=2004', 4, ''); menu.child(2, 2, '2003 Korsika', '2003 Korsika', 'index.php?mode=2003', 4, ''); menu.child(2, 3, '2002 Adria', '2002 Adria', 'index.php?mode=2002', 4, ''); menu.child(2, 4, '2001 Kroatien', '2001 Kroatien', 'index.php?mode=2001', 4, ''); menu.child(2, 5, '2000 Kornaten/Kroatien', '2000 Kornaten/Kroatien', 'index.php?mode=2000', 4, ''); menu.child(2, 6, '1999 Kornaten/Kroatien', '1999 Kornaten/Kroatien', 'index.php?mode=1999', 4, ''); menu.child(2, 7, '','', '', 7, 'bottom'); menu.parent(3); menu.child(3, 0, '', '', '', 4, 'top'); menu.child(3, 1, 'Professional Sail 2004', 'Professional 2004', 'index.php?mode=prof', 4, ''); menu.child(3, 2, '','', '', 7, 'bottom'); menu.parent(4); menu.child(4, 0, '', '', '', 4, 'top'); menu.child(4, 1, 'Contact', 'Contact', 'index.php?mode=contact', 4, ''); menu.child(4, 2, '','', '', 7, 'bottom'); function init() { if(!bw.dom || (bw.mac && bw.ie) ) { for(i=0; i0 && ci<(menu.chi[ip].length-1) ) { macDivHeight=macDivHeight+document.all['tdA'+ip+""+ci].clientHeight+3; //document.all['tdA'+ip+""+ci].onclick= function { window.document.location.href= } } }//for document.all['sub'+ip].style.height=(macDivHeight+7); } function organizeLayers(ip){ pInt = 'sub'+ip; //..length/2 because he has this litle blue line oLay = document.layers[pInt].document.layers; var iPositonLayer=0; var str=""; for(ci=0; ci0 && ci