




navbutton1 = new Image();
navbutton1.src = "/images/nd_nav_searchmls_on.gif";

navbutton2 = new Image();
navbutton2.src = "/images/nd_nav_featured_on.gif";

navbutton3 = new Image();
navbutton3.src = "/images/nd_nav_fixers_on.gif";

navbutton4 = new Image();
navbutton4.src = "/images/nd_nav_land_on.gif";

navbutton5 = new Image();
navbutton5.src = "/images/nd_nav_foreclosures_on.gif";

navbutton6 = new Image();
navbutton6.src = "/images/nd_nav_blog_on.gif";

navbutton7 = new Image();
navbutton7.src = "/images/nd_nav_marketdata_on.gif";




/* author@ShuvoRim
 * http://www.shuvorim.tk/
 * shuvorim@hotmail.com
 * (c)ShuvoRim Pvt. Ltd. 2002 -03
 * All rights reserved.
 * --------------------------------------------------
 * visit our web site for more free Java applications
 * and applets. Thank you for using our program.
 * --------------------------------------------------
 */

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var menu1=new Array() //General Info

menu1[0]='<a href="/articles/" class="dropDownLink">Articles, Essays, Reports</a>'
menu1[1]='<a href="/santa-cruz-market-trends.html" class="dropDownLink">Santa Cruz Real Estate Report</a>'
menu1[2]='<a href="/santa_cruz_real_estate_report.html" class="dropDownLink">Santa Cruz Real Estate Sales Data</a>'
menu1[3]='<a href="/santa-cruz-real-estate-blog/" class="dropDownLink">Santa Cruz Real Estate Blog</a>'
menu1[4]='<a href="/schools.html" class="dropDownLink">Santa Cruz Schools</a>'
menu1[5]='<a href="/contact.html" class="dropDownLink">Contact Us</a>'
menu1[6]='<a href="/santa-cruz-relocation-package.html" class="dropDownLink">Relocation Package</a>'
menu1[7]='<a href="/about.html" class="dropDownLink">About SantaCruzHomeBroker</a>'

//Contents for menu 2
var menu2=new Array() //Buyers

menu2[0]='<a href="/propertyfinder.html" class="dropDownLink">Search the Entire MLS</a>'
menu2[1]='<a href="/listings/" class="dropDownLink">Featured Listings</a>'
menu2[2]='<a href="/buyers/" class="dropDownLink">Home Buyer Central</a>'
menu2[3]='<a href="/fixers.html" class="dropDownLink">Get a Fixer-Upper</a>'
menu2[4]='<a href="/land_report.html" class="dropDownLink">Santa Cruz Land Report</a>'
menu2[5]='<a href="/land_list.html" class="dropDownLink">Great Deals on Land</a>'
menu2[6]='<a href="/buyers/investors.html" class="dropDownLink">Investor Central</a>'
menu2[7]='<a href="/foreclosures/" class="dropDownLink">Foreclosure Properties</a>'
menu2[8]='<a href="/mobile-homes/" class="dropDownLink">Mobile Homes</a>'
menu2[9]='<a href="/buyers/first_time_buyers.html" class="dropDownLink">First Time Buyers</a>'


//Contents for menu 2, and so on
var menu3=new Array() //Sellers
menu3[0]='<a href="http://santacruzhomeprices.com" class="dropDownLink">FREE Home Value Report</a>'
menu3[1]='<a href="/sellers/marketing_plan.html" class="dropDownLink">30 Day Marekting Plan</a>'
menu3[2]='<a href="/sellers/" class="dropDownLink">Home Seller Central</a>'

//Contents for menu 2, and so on
var menu4=new Array() //Resources
menu4[0]='<a href="/resources/index.html#spreadsheets" class="dropDownLink">Excel Spreadsheets</a>'
menu4[1]='<a href="/resources/" class="dropDownLink">Power of Attorney</a>'
menu4[2]='<a href="/resources/" class="dropDownLink">Real Estate Glossary</a>'
menu4[3]='<a href="/resources/" class="dropDownLink">Residential Loan App</a>'
menu4[4]='<a href="/resources/" class="dropDownLink">Title and Escrow</a>'
menu4[5]='<a href="/santa_cruz_maps/" class="dropDownLink">County Maps</a>'
menu4[6]='<a href="/resources/" class="dropDownLink">Resources and Tools</a>'


var menu5=new Array() //Communities
menu5[0]='<a href="/communities/aptos.html" class="dropDownLink">Aptos</a>'
menu5[1]='<a href="/communities/capitola.html" class="dropDownLink">Capitola</a>'
menu5[2]='<a href="/communities/corralitos.html" class="dropDownLink">Corralitos</a>'
menu5[4]='<a href="/communities/felton.html" class="dropDownLink">Felton</a>'
menu5[5]='<a href="/communities/ben-lomond.html" class="dropDownLink">Ben Lomond</a>'
menu5[6]='<a href="/communities/boulder-creek.html" class="dropDownLink">Boulder Creek</a>'
menu5[7]='<a href="/communities/happy-valley.html" class="dropDownLink">Happy Valley</a>'
menu5[8]='<a href="/communities/santacruz.html" class="dropDownLink">Santa Cruz</a>'
menu5[9]='<a href="/communities/scottsvalley.html" class="dropDownLink">Scotts Valley</a>'
menu5[10]='<a href="/communities/bonny-doon.html" class="dropDownLink">Bonny Doon</a>'
menu5[11]='<a href="/communities/soquel.html" class="dropDownLink">Soquel</a>'
menu5[12]='<a href="/communities/watsonville.html" class="dropDownLink">Watsonville</a>'

		
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //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=-500
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 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
}
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

/* this is the javascript for showing/hiding layers */

function layerSetup(id,visibility){
if(document.getElementById){
this.obj = document.getElementById(id).style;
this.obj.visibility = visibility;
return this.obj;}
else if(document.all){
this.obj = document.all[id].style;
this.obj.visibility = visibility;
return this.obj;}
else if(document.layers){
this.obj = document.layers[id];
this.obj.visibility = visibility;
return this.obj;}
}

function visVisible(param){
new layerSetup(param,'visible');
}

function visHidden(param){
new layerSetup(param,'hidden');
}