
var bar = new menuBar();
bar.addMenu('<img src="images/bullet.gif" border="0"> Properties');
bar.addItem('featuredproperties.aspx','Featured Properties');
bar.addItem('mlshome.aspx','MLS Home Search');

bar.addMenu('<img src="images/bullet.gif" border="0"> For Buyers');
bar.addItem('buyersmyteam.aspx','Why Buyers Choose My Team');
bar.addItem('dreamhome.aspx','Find Your Dream Home');
bar.addItem('firsttimebuyer.aspx','First Time Home Buyer?');
bar.addItem('prequalify.aspx','Mortgage Pre-qualification');
bar.addItem('buyer_reports.aspx','Buyer Valued Reports');

bar.addMenu('<img src="images/bullet.gif" border="0"> For Sellers');
bar.addItem('sellermyteam.aspx','Why sellers choose my team');
bar.addItem('marketingpresentation.aspx','Free Marketing Presentation');
bar.addItem('yourhomevalue.aspx','Your homes value');
bar.addItem('homesales.aspx','Recent Home Sales');
bar.addItem('sellingbyyourself.aspx','Selling Your Home By Yourself');
bar.addItem('seller_reports.aspx','Valued Seller Reports');

bar.addMenu('<img src="images/bullet.gif" border="0"> Local Info');
bar.addItem('schools.aspx','Schools');
bar.addItem('community.aspx','Community Contacts');
bar.addItem('numbers.aspx','Phone Numbers &amp; Links');
bar.addItem('golfandsports.aspx','Golf &amp; Sports');
bar.addItem('dining.aspx','Dining');
bar.addItem('culture.aspx','Culture &amp; Heritage');
bar.addItem('entertainment.aspx','Entertainment');
bar.addItem('shopping.aspx','Shopping');
bar.addItem('natureadventure.aspx','Adventure');
bar.addItem('weather.aspx','Weather');


bar.addMenu('<img src="images/bullet.gif" border="0"> Resources');
bar.addItem('mortgage.aspx','Mortgage Calculators');


// do not change anything below this line
var blc = '#003366';var blh = '#c0c0c0';var bla = '#003366';var lc = '#FFFFFF';var lh = '#FFFFFF';var la = '#FFFFFF';
function menuBar() {this.jj = -1;this.kk = 0;this.mO = new Array();this.addMenu = addMenu;this.addItem = addItem;this.writeBar = writeBar;this.writeDrop = writeDrop;}function addMenu(main) {this.mO[++this.jj] = new Object();this.mO[this.jj].main = main;this.kk = 0;this.mO[this.jj].link = new Array();this.mO[this.jj].name = new Array();}function addItem(link,name) {this.mO[this.jj].link[this.kk] = link;this.mO[this.jj].name[this.kk++] = name;}function writeBar() {for (var i=1;i <= this.mO.length; i++){document.write('<span id="navMenu'+i+'" class="mH">'+this.mO[i-1].main+'<\/span>');}}function writeDrop() {for (var i=1;i <= this.mO.length; i++){document.write('<div id="dropMenu'+i+'" class="mD">\r\n');for (var h=0;h < this.mO[i-1].link.length; h++){document.write('<a class="mL" href="'+this.mO[i-1].link[h]+'">'+this.mO[i-1].name[h]+'<\/a>\r\n');}document.write('<\/div>\r\n');}}
//window.onscroll=sMenu;
window.onload=iMenu;var onm = null;var ponm = null;var podm = null;var ndm = bar.mO.length;
function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}
function sMenu() {document.getElementById('mB').style.top = posY() + 'px'; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i;odm = document.getElementById(menuName); if (onm) {var yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight;odm.style.top = yPos + 'px';}}}
function iMenu() {if (document.getElementById) {document.onclick = mHide; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i; navName = 'navMenu' + i; odm = document.getElementById(menuName); onm = document.getElementById(navName); odm.style.visibility = 'hidden'; onm.onmouseover =  mHov; onm.onmouseout = mOut;} onm = null;} return;}
function  mHov(e) {document.onclick = null; honm = document.getElementById(this.id); if (honm != onm) {honm.style.color = lh; honm.style.backgroundColor = blh;} menuName = 'drop' + this.id.substring(3,this.id.length); odm = document.getElementById(menuName); if (podm == odm) {mHide(); return;} if (podm != null) mHide(); onm = document.getElementById(this.id); if ((ponm != onm ) || (podm == null)) {onm.style.color = la; onm.style.backgroundColor = bla;} if (odm) {xPos = onm.offsetParent.offsetLeft + onm.offsetLeft; yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight; odm.style.left = xPos + 'px'; odm.style.top = yPos + 'px'; odm.style.visibility = 'visible'; podm = odm; ponm = onm;}}
function mOut(e) {document.onclick = mHide;oonm = document.getElementById(this.id); if (oonm != onm) {oonm.style.color = lc; oonm.style.backgroundColor = blc;}}
function mHide() {document.onclick = null; if (podm) {podm.style.visibility = 'hidden'; podm = null; ponm.style.color = lc; ponm.style.backgroundColor = blc;} onm = null;}
var ag = navigator.userAgent.toLowerCase();var isG = (ag.indexOf('gecko') != -1);var isR=0;if (isG) {t = ag.split('rv:'); isR = parseFloat(t[1]);}if ( isR) setInterval('sMenu()',50);