//Contents for menu 1
//var menu1=new Array()
//menu1[0]='<a href="wheretostay.php" onmouseover="changeImages(\'DropDown_WhereToStay\', \'pageimages/DropDown-WhereToStay-over.gif\'); return true;" onmouseout="changeImages(\'DropDown_WhereToStay\', \'pageimages/DropDown-WhereToStay.gif\'); return true;"><img name="DropDown_WhereToStay" id="DropDown_WhereToStay" src="pageimages/DropDown-WhereToStay.gif" width="111" height="22" border="0" alt="" /></a>'
//menu1[1]='<a href="wheretoeat.php" onmouseover="changeImages(\'DropDown_WhereToEat\', \'pageimages/DropDown-WhereToEat-over.gif\'); return true;" onmouseout="changeImages(\'DropDown_WhereToEat\', \'pageimages/DropDown-WhereToEat.gif\'); return true;"><img name="DropDown_WhereToEat" id="DropDown_WhereToEat" src="pageimages/DropDown-WhereToEat.gif" width="111" height="22" border="0" alt="" /></a>'
//menu1[2]='<a href="whattodo.php" onmouseover="changeImages(\'DropDown_WhatToDo\', \'pageimages/DropDown-WhatToDo-over.gif\'); return true;" onmouseout="changeImages(\'DropDown_WhatToDo\', \'pageimages/DropDown-WhatToDo.gif\'); return true;"><img name="DropDown_WhatToDo" id="DropDown_WhatToDo" src="pageimages/DropDown-WhatToDo.gif" width="111" height="22" border="0" alt="" /></a>'
//menu1[3]='<a href="crimestatistics.php" onmouseover="changeImages(\'DropDown_CrimeStats\', \'pageimages/DropDown-CrimeStats-over.gif\'); return true;" onmouseout="changeImages(\'DropDown_CrimeStats\', \'pageimages/DropDown-CrimeStats.gif\'); return true;"><img name="DropDown_CrimeStats" id="DropDown_CrimeStats" src="pageimages/DropDown-CrimeStats.gif" width="111" height="22" border="0" alt="" /></a>'
//menu1[4]='<a href="propertytaxes.php" onmouseover="changeImages(\'DropDown_PropertyTaxes\', \'pageimages/DropDown-PropertyTaxes-over.gif\'); return true;" onmouseout="changeImages(\'DropDown_PropertyTaxes\', \'pageimages/DropDown-PropertyTaxes.gif\'); return true;"><img name="DropDown_PropertyTaxes" id="DropDown_PropertyTaxes" src="pageimages/DropDown-PropertyTaxes.gif" width="111" height="22" border="0" alt="" /></a>'
//menu1[5]='<a href="weather.php" onmouseover="changeImages(\'DropDown_Weather\', \'pageimages/DropDown-Weather-over.gif\'); return true;" onmouseout="changeImages(\'DropDown_Weather\', \'pageimages/DropDown-Weather.gif\'); return true;"> <img name="DropDown_Weather" id="DropDown_Weather" src="pageimages/DropDown-Weather.gif" width="111" height="22" border="0" alt="" /></a>'
//menu1[6]='<a href="communiting.php" onmouseover="changeImages(\'DropDown_Communiting\', \'pageimages/DropDown-Communiting-over.gif\'); return true;" onmouseout="changeImages(\'DropDown_Communiting\', \'pageimages/DropDown-Communiting.gif\'); return true;"><img name="DropDown_Communiting" id="DropDown_Communiting" src="pageimages/DropDown-Communiting.gif" width="111" height="22" border="0" alt="" /></a>'
//menu1[7]='<a href="mlsstatistics.php" onmouseover="changeImages(\'DropDown_MLSStats\', \'pageimages/DropDown-MLSStats-over.gif\'); return true;" onmouseout="changeImages(\'DropDown_MLSStats\', \'pageimages/DropDown-MLSStats.gif\'); return true;"><img name="DropDown_MLSStats" id="DropDown_MLSStats" src="pageimages/DropDown-MLSStats.gif" width="111" height="21" border="0" alt="" /></a>'

var menu1=new Array()
menu1[0]='<a href="/About Halifax/wheretostay.php" class="dropdown">Where to Stay</a>'
menu1[1]='<a href="/About Halifax/wheretoeat.php" class="dropdown">Where to Eat</a>'
menu1[2]='<a href="/About Halifax/whattodo.php" class="dropdown">What to Do</a>'
menu1[3]='<a href="/About Halifax/crimestatistics.php" class="dropdown">Crime Statistics</a>'
menu1[4]='<a href="/About Halifax/propertytaxes.php" class="dropdown">Property Taxes</a>'
menu1[5]='<a href="/About Halifax/weather.php" class="dropdown">Weather</a>'
menu1[6]='<a href="/About Halifax/commuting.php" class="dropdown">Commuting</a>'
menu1[7]='<a href="/About Halifax/mlsstatistics.php" class="dropdown">MLS Statistics</a>'

var menu2=new Array()
menu2[0]='<a href="/About Us/about_steven_monica.php" class="dropdown">About Steven and Monica</a>'
menu2[1]='<a href="/About Us/about_remax_nova.php" class="dropdown">About Remax Nova</a>'
menu2[2]='<a href="/About Us/about_our_team.php" class="dropdown">Our Team</a>'

var menu3=new Array()
menu3[0]='<a href="/Contact Us/feedback_form.php" class="dropdown">Feedback Form</a>'

var menu4=new Array()
menu4[0]='<a class="submenu" href="/Buyers%20Info/buyers_info_quality.php">Guarantee of Quality</a>'
menu4[1]='<a href="/Buyers%20Info/buyers_info_process.php">Home Buying Process</a>'
//menu4[2]='<a href="/Buyers%20Info/buyers_info_agreement.php">Agreement for Purchase and Sale</a>'
menu4[2]='<a href="/Buyers%20Info/buyers_info_closing.php">Closing Costs</a>'
//menu4[3]='<a href="/Buyers%20Info/buyers_info_mortgages.php">Mortgages</a>'
menu4[3]='<a href="/Buyers%20Info/buyers_info_inspections.php">Real Estate Inspections</a>'
menu4[4]='<a href="/Buyers%20Info/buyers_info_moving.php">Moving Guide/Tips</a>'
menu4[5]='<a href="/Buyers%20Info/buyers_info_rrsp.php">Using RRSP\'s to buy real estate</a>'
menu4[6]='<a href="/Buyers%20Info/buyers_info_agency.php">Agency Law and Real Estate</a>'
menu4[7]='<a href="/Buyers%20Info/buyers_info_construction.php">New Construction Guide</a>'
menu4[8]='<a href="/Buyers%20Info/buyers_info_condominium.php">Condominium Guide</a>'
menu4[9]='<a href="/Buyers%20Info/buyers_info_negotiating.php">Negotiating</a>'

var menu5=new Array()
menu5[0]='<a href="/Sellers%20Info/quality.php">Pledge of Quality</a>'
menu5[1]='<a href="/Sellers%20Info/process.php">Home Selling Process</a>'
menu5[2]='<a href="/Sellers%20Info/agreement.php">Listing Agreement</a>'
menu5[3]='<a href="/Sellers%20Info/disclosure.php">Property Condition and Disclosure</a>'
menu5[4]='<a href="/Sellers%20Info/preparing.php">Preparing your Home for Sale</a>'
menu5[5]='<a href="/Sellers%20Info/moving.php">Moving Guide and Tips</a>'
menu5[6]='<a href="/Sellers%20Info/marketing.php">Marketing Plan</a>'
menu5[7]='<a href="/Sellers%20Info/agency.php">Agency Law and Real Estate</a>'
menu5[8]='<a href="/Sellers%20Info/analysis.php">Competitive Market Analysis</a>'

var menuwidth='111px' //default menu width
var menubgcolor='#FFFFFF'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

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){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
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