/*** This is the menu creation code - place it right after you body tag Feel free to add this to a stand-alone js file and link it to your page. **/ //Extra code to find position: function findPos1(){ if(bw.ns4){ //Netscape 4 x = document.layers.layerMenu1.pageX y = document.layers.layerMenu1.pageY }else{ //other browsers x=0; y=0; var el,temp el = bw.ie4?document.all["divMenu1"]:document.getElementById("divMenu1"); if(el.offsetParent){ temp = el while(temp.offsetParent){ //Looping parent elements to get the offset of them as well temp=temp.offsetParent; x+=temp.offsetLeft y+=temp.offsetTop; } } x+=el.offsetLeft y+=el.offsetTop } //Returning the x and y as an array return [x,y] } pos = findPos1() //Menu object creation oCMenu1=new makeCM("oCMenu1") //Making the menu object. Argument: menuname //Netscape 4 - bug fix - //maybe -stupid NS4 - objects are not handled correctly when //the object creator is in a linked file if(bw.ns4) if(!oCMenu1["makeMenu"] || !bw["ns4"]) self.location.reload() oCMenu1.frames =false oCMenu1.frameStartLevel = 0 //Menu properties oCMenu1.pxBetween= 0 oCMenu1.fromLeft=pos[0]+0 oCMenu1.fromTop=pos[1]+0 //We also need to "re place" the menu on resize. So: oCMenu1.onresize="pos1 = findPos1(); oCMenu1.fromLeft=pos1[0]+0; oCMenu1.fromTop=pos1[1]+0; oCMenu1.barX=pos1[0]; oCMenu1.barY=pos1[1];" //oCMenu1.onresize="location.href=location.href" oCMenu1.rows= 1 oCMenu1.menuPlacement= "left" oCMenu1.offlineRoot= "" oCMenu1.onlineRoot= "" oCMenu1.resizeCheck= true oCMenu1.wait= 100 oCMenu1.fillImg="includes/empty.gif" oCMenu1.zIndex= 50 //Background bar properties oCMenu1.useBar=0 oCMenu1.barWidth="100" oCMenu1.barHeight="20" oCMenu1.barClass="cl1Bar" oCMenu1.barX=pos[0]+0 oCMenu1.barY=pos[1]+0 oCMenu1.barBorderX=0 oCMenu1.barBorderY=0 //oCMenu1.barBorderClass="cl1Barborder" oCMenu1.level[0]=new cm_makeLevel() //Add this for each new level oCMenu1.level[0].width="150" oCMenu1.level[0].height="30" oCMenu1.level[0].regClass="cl1Level0" oCMenu1.level[0].overClass="cl1Level0over" oCMenu1.level[0].borderClass="cl1Level0border" oCMenu1.level[0].latchedClass="cl1Level0latched" oCMenu1.level[0].borderX= oCMenu1.level[0].borderY= oCMenu1.level[0].offsetX=0 oCMenu1.level[0].offsetY=0 oCMenu1.level[0].rows=0 oCMenu1.level[0].align="bottom" oCMenu1.level[0].arrow="/websites/schokland.nl/mediadepot/arrow.gif" oCMenu1.level[0].arrowWidth=20 oCMenu1.level[0].arrowHeight=9 oCMenu1.level[0].roundBorder=0 //Hook: Added animation features //End Hook oCMenu1.level[1]=new cm_makeLevel() //Add this for each new level oCMenu1.level[1].width="180" oCMenu1.level[1].height="27" oCMenu1.level[1].regClass="cl1Level1" oCMenu1.level[1].overClass="cl1Level1over" oCMenu1.level[1].borderClass="cl1Level1border" oCMenu1.level[1].latchedClass="cl1Level1latched" oCMenu1.level[1].borderX= oCMenu1.level[1].borderY= oCMenu1.level[1].offsetX= oCMenu1.level[1].offsetY= oCMenu1.level[1].rows=0 oCMenu1.level[1].align="bottom" oCMenu1.level[1].arrow="/websites/schokland.nl/mediadepot/arrow.gif" oCMenu1.level[1].arrowWidth=20 oCMenu1.level[1].arrowHeight=9 oCMenu1.level[1].roundBorder=0 //Hook: Added animation features //End Hook //myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) oCMenu1.makeMenu('item675','','World Heritage','/pageid=675/World_Heritage.html','_self','','','','','','','','','','','window.status="World Heritage"','window.status=""') oCMenu1.makeMenu('item678','item675','What does World Heritage mean','/pageid=678/What_does_World_Heritage_mean.html','_self','','','','','','','','','','','window.status="What does World Heritage mean"','window.status=""') oCMenu1.makeMenu('item676','item675','Why Schokland is a World Heritage Site','/pageid=676/Why_Schokland_is_a_World_Heritage_Site.html','_self','','','','','','','','','','','window.status="Why Schokland is a World Heritage Site"','window.status=""') oCMenu1.makeMenu('item679','','Past and Present','/pageid=679/Past_and_Present.html','_self','','','','','','','','','','','window.status="Past and Present"','window.status=""') oCMenu1.makeMenu('item784','item679','Schokland Past and Present','/pageid=784/Schokland_Past_and_Present.html','_self','','','','','','','','','','','window.status="Schokland Past and Present"','window.status=""') oCMenu1.makeMenu('item680','item679','Ice Age','/pageid=680/Ice_Age.html','_self','','','','','','','','','','','window.status="Ice Age"','window.status=""') oCMenu1.makeMenu('item682','item679','Early Inhabitants','/pageid=682/Early_Inhabitants.html','_self','','','','','','','','','','','window.status="Early Inhabitants"','window.status=""') oCMenu1.makeMenu('item683','item679','How The Island Came To Be','/pageid=683/How_The_Island_Came_To_Be.html','_self','','','','','','','','','','','window.status="How The Island Came To Be"','window.status=""') oCMenu1.makeMenu('item684','item679','Life on Schokland','/pageid=684/Life_on_Schokland.html','_self','','','','','','','','','','','window.status="Life on Schokland"','window.status=""') oCMenu1.makeMenu('item685','item679','Schokland Costume','/pageid=685/Schokland_Costume.html','_self','','','','','','','','','','','window.status="Schokland Costume"','window.status=""') oCMenu1.makeMenu('item686','item679','The Storm Surge in 1825','/pageid=686/The_Storm_Surge_in_1825.html','_self','','','','','','','','','','','window.status="The Storm Surge in 1825"','window.status=""') oCMenu1.makeMenu('item687','item679','Evacuation ','/pageid=687/Evacuation_.html','_self','','','','','','','','','','','window.status="Evacuation "','window.status=""') oCMenu1.makeMenu('item688','item679','After the Evacuation','/pageid=688/After_the_Evacuation.html','_self','','','','','','','','','','','window.status="After the Evacuation"','window.status=""') oCMenu1.makeMenu('item800','item679','An Island in the Land','/pageid=800/An_Island_in_the_Land.html','_self','','','','','','','','','','','window.status="An Island in the Land"','window.status=""') oCMenu1.makeMenu('item689','item679','1995 The Nomination of World Heritage','/pageid=689/1995_The_Nomination_of_World_Heritage.html','_self','','','','','','','','','','','window.status="1995 The Nomination of World Heritage"','window.status=""') oCMenu1.makeMenu('item690','item679','1996 – 2007 Plans for the Conservation of Schokland','/pageid=690/1996_–_2007_Plans_for_the_Conservation_of_Schokland.html','_self','','','','','','','','','','','window.status="1996 – 2007 Plans for the Conservation of Schokland"','window.status=""') oCMenu1.makeMenu('item691','item679','2007 Akkoord van Schokland (Agreement of Schokland)','/pageid=691/2007_Akkoord_van_Schokland_(Agreement_of_Schokland).html','_self','','','','','','','','','','','window.status="2007 Akkoord van Schokland (Agreement of Schokland)"','window.status=""') oCMenu1.makeMenu('item692','item679','The Future of Schokland','/pageid=692/The_Future_of_Schokland.html','_self','','','','','','','','','','','window.status="The Future of Schokland"','window.status=""') oCMenu1.makeMenu('item696','','Things To Do','/pageid=696/Things_To_Do.html','_self','','','','','cl1Level0latched','cl1Level0latched','','','','','window.status="Things To Do"','window.status=""') oCMenu1.makeMenu('item698','item696','Things To Do','/pageid=698/Things_To_Do.html','_self','','','','','','','','','','','window.status="Things To Do"','window.status=""') oCMenu1.makeMenu('item697','item696','Walking and Cycling','/pageid=697/Walking_and_Cycling.html','_self','','','','','','','','','','','window.status="Walking and Cycling"','window.status=""') oCMenu1.makeMenu('item699','item696','Arranged Packages','/pageid=699/Arranged_Packages.html','_self','','','','','','','','','','','window.status="Arranged Packages"','window.status=""') oCMenu1.makeMenu('item701','item696','Excursions ','/pageid=701/Excursions_.html','_self','','','','','','','','','','','window.status="Excursions "','window.status=""') oCMenu1.makeMenu('item702','item696','Things to Do for Youngsters','/pageid=702/Things_to_Do_for_Youngsters.html','_self','','','','','','','','','','','window.status="Things to Do for Youngsters"','window.status=""') oCMenu1.makeMenu('item703','item696','Museum Schokland','/pageid=703/Museum_Schokland.html','_self','','','','','cl1Level1latched','cl1Level1latched','','','','','window.status="Museum Schokland"','window.status=""') oCMenu1.makeMenu('item704','item696','De Gesteentetuin (Geo-garden) ','/pageid=704/De_Gesteentetuin_(Geo-garden)_.html','_self','','','','','','','','','','','window.status="De Gesteentetuin (Geo-garden) "','window.status=""') oCMenu1.makeMenu('item799','item696','Catering','/pageid=799/Catering.html','_self','','','','','','','','','','','window.status="Catering"','window.status=""') oCMenu1.makeMenu('item705','','Nature and Culture','/pageid=705/Nature_and_Culture.html','_self','','','','','','','','','','','window.status="Nature and Culture"','window.status=""') oCMenu1.makeMenu('item706','item705','Nature and Culture of Schokland','/pageid=706/Nature_and_Culture_of_Schokland.html','_self','','','','','','','','','','','window.status="Nature and Culture of Schokland"','window.status=""') oCMenu1.makeMenu('item707','item705','The Island','/pageid=707/The_Island.html','_self','','','','','','','','','','','window.status="The Island"','window.status=""') oCMenu1.makeMenu('item712','item705','The Schokland Wood (Schokkerbos)','/pageid=712/The_Schokland_Wood_(Schokkerbos).html','_self','','','','','','','','','','','window.status="The Schokland Wood (Schokkerbos)"','window.status=""') oCMenu1.makeMenu('item719','item705','Boundary Vegetation','/pageid=719/Boundary_Vegetation.html','_self','','','','','','','','','','','window.status="Boundary Vegetation"','window.status=""') oCMenu1.makeMenu('item720','item705','Wet Grass Lands','/pageid=720/Wet_Grass_Lands.html','_self','','','','','','','','','','','window.status="Wet Grass Lands"','window.status=""') oCMenu1.makeMenu('item724','item705','Agricultural Area','/pageid=724/Agricultural_Area.html','_self','','','','','','','','','','','window.status="Agricultural Area"','window.status=""') oCMenu1.makeMenu('item694','','Organizations','/pageid=694/Organizations.html','_self','','','','','','','','','','','window.status="Organizations"','window.status=""') oCMenu1.makeMenu('item695','item694','Organizations','/pageid=695/Organizations.html','_self','','','','','','','','','','','window.status="Organizations"','window.status=""') oCMenu1.makeMenu('item805','item694','Usage and Management','/pageid=805/Usage_and_Management.html','_self','','','','','','','','','','','window.status="Usage and Management"','window.status=""') oCMenu1.makeMenu('item806','item694','Joint Action','/pageid=806/Joint_Action.html','_self','','','','','','','','','','','window.status="Joint Action"','window.status=""') oCMenu1.construct() //hide selectboxes if(bw.dom&&!bw.op){ makeCM.prototype.sel=0 makeCM.prototype.onshow+=";this.hideselectboxes(pm,pm.subx,pm.suby,maxw,maxh,pm.lev)" makeCM.prototype.hideselectboxes=function(pm,x,y,w,h,l){ var selx,sely,selw,selh,i if(!this.sel){ this.sel=this.doc.getElementsByTagName("SELECT") this.sel.level=0 } var sel=this.sel for(i=0;ix && selxy && selyc.fromTop&&c.scrollstop){ for(i=0;ic.bar.x?c.bar.x:c.m[c.l[0].m[0]].b.x:c.m[c.l[0].m[0]].b.x; var y = c.useBar?c.m[c.l[0].m[0]].b.y>c.bar.y?c.bar.y:c.m[c.l[0].m[0]].b.y:c.m[c.l[0].m[0]].b.y; var maxw = c.useBar?c.bar.w:c.rows?c.totw:c.maxw; var maxh = c.useBar?c.bar.h:!c.rows?c.toth:c.maxh c.hideselectboxes(0,x,y,maxw,maxh,0) } } if(!bw.ie) setTimeout(c.name+".checkscrolled()",200) }