var menu1=new Array()
//HOME
menu1[0]='<a href="index.cfm">nieuws</a>'
menu1[1]='<a href="http://www.mijnnvm.nl" target="_blank">klantenintranet</a>'
menu1[2]='<a href="begrippenlijst.cfm">begrippenlijst</a>'
menu1[3]='<a href="aanvraagofferte.cfm">aanvraag offerte</a>'

var menu2=new Array()
//WONINGEN
menu2[0]='<a href="aanbod.cfm?forsale=true">aanbod koop</a>'
menu2[1]='<a href="aanbod.cfm?forsale=false">aanbod huur</a>'
menu2[2]='<a href="cms.cfm?index=2007">aanbod buitenland</a>'
//menu2[3]='<a href="aanbod.cfm?showsold=only&daysaftersold=365">recente transacties</a>'
menu2[4]='<a href="cms.cfm?index=2006">gezocht</a>'
menu2[5]='<a href="cms.cfm?index=2001">taxaties</a>'
menu2[6]='<a href="cms.cfm?index=2002">nieuwbouw</a>'
menu2[7]='<a href="cms.cfm?index=2003">aankoopbemiddeling</a>'
menu2[8]='<a href="cms.cfm?index=2004">verkoopbemiddeling</a>'
menu2[9]='<a href="cms.cfm?index=2005">marktontwikkeling</a>'
//menu2[10]='<a href="droomhuis.cfm">uw droomhuis</a>'


var menu3=new Array()
//BOG
menu3[0]='<a href="aanbodBOG.cfm?forsale=true">aanbod koop</a>'
menu3[1]='<a href="aanbodBOG.cfm?forsale=false">aanbod huur</a>'
menu3[2]='<a href="cms.cfm?index=3005">gezocht</a>'
menu3[3]='<a href="cms.cfm?index=3001">taxatie</a>'
menu3[4]='<a href="cms.cfm?index=3002">nieuwbouw</a>'
menu3[5]='<a href="cms.cfm?index=3003">bemiddeling</a>'
menu3[7]='<a href="cms.cfm?index=3004">marktontwikkeling</a>'

var menu4=new Array()
//VASRTGOEDMANAGEMENT
menu4[0]='<a href="cms.cfm?index=4001">property management</a>'
menu4[1]='<a href="cms.cfm?index=4002">asset management</a>'
menu4[2]='<a href="cms.cfm?index=4003">vereniging van eigenaren</a>'
menu4[3]='<a href="cms.cfm?index=4004">bijzondere projecten</a>'
menu4[4]='<a href="onlineStor.cfm">online storingenformulier</a>'
menu4[5]='<a href="cms.cfm?index=4005">contact</a>'

var menu5=new Array()
//VERZEKRINGEN
menu5[0]='<a href="actueelnieuws.cfm">actueel / nieuws</a>'
menu5[1]='<a href="autoverzekering.cfm" target="">autoverzekering</a>'
menu5[2]='<a href="berekenuwpremie.cfm">bereken uw premie</a>'
menu5[3]='<a href="cms.cfm?index=5003">polisinformatie online</a>'
menu5[4]='<a href="onlineafsluiten.cfm">online afsluiten</a>'
menu5[5]='<a href="schademelden.cfm">schade melden</a>'
menu5[6]='<a href="cms.cfm?index=5002">dienstenwijzer</a>'
menu5[7]='<a href="aanbeveling.cfm">aanbeveling</a>'
menu5[8]='<a href="herbouwwaarde.cfm">herbouwwaarde</a>'
menu5[9]='<a href="inboedelwaarde.cfm">inboedelwaarde</a>'
menu5[10]='<a href="contactVerzekeringen.cfm">contact</a>'

var menu6=new Array()
//HYPOTHEKEN
menu6[0]='<a href="cms.cfm?index=6002">nieuws</a>'
menu6[1]='<a href="actuelerentestand.cfm">actuele rentestanden</a>'
menu6[2]='<a href="berekenmaxhypotheek.cfm">bereken uw maximale hypotheek</a>'
menu6[3]='<a href="contactHypotheken.cfm">contact</a>'

var menu7=new Array()
//OVER JSR
menu7[0]='<a href="cms.cfm?index=7000">algemeen</a>'
menu7[1]='<a href="cms.cfm?index=7001">vestigingen</a>'
menu7[2]='<a href="cms.cfm?index=7002">wie is wie</a>'
menu7[3]='<a href="contact.cfm">contact</a>'
menu7[4]='<a href="cms.cfm?index=7003">vacatures</a>'
menu7[5]='<a href="cms.cfm?index=7004">links</a>'
menu7[6]='<a href="cms.cfm?index=7005">in de media</a>'
menu7[7]='<a href="cms.cfm?index=7006">sponsoring</a>'
menu7[8]='<a href="cms.cfm?index=7007">disclaimer</a>'

var menu8=new Array()
//RECENSIES
menu8[0]='<a href="cms.cfm?index=00">recensies</a>'


		
var menuwidth='125' //standaard menubreedte
var menubgcolor='#4a8384'  //menu backgroundcolor
var disappeardelay= 250  //in miliseconds wanneer submenu's verdwijnen
var hidemenu_onclick="yes" //submenu verdwijnen na klik



var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ 
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) 
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu


