/***********************************************
* 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
***********************************************/

//MENU1
var menu1=new Array()
menu1[1]='<a href="/listings/?property=lake_superior">Lake Superior Shoreline</a>'
menu1[2]='<a href="/listings/?property=lake_frontage">Inland Lake Frontage</a>'
menu1[3]='<a href="/listings/?property=whole_lakes">Whole Private Lakes</a>'
menu1[4]='<a href="/listings/?property=rivers">Rivers &amp; Streams</a>'
menu1[5]='<a href="/listings/?property=homes">Homes &amp; Camps</a>'
menu1[6]='<a href="/listings/?property=vacant">Vacant Land</a>'
menu1[7]='<a href="/listings/?property=commercial">Commercial</a>'
menu1[8]='<a href="/listings/?property=lake_michigan">Lake Michigan</a>'
menu1[9]='<a href="/listings/?property=lake_huron">Lake Huron</a>'
menu1[10]='<a href="/listings/?property=timberland">Timberland</a>'
menu1[11]='<a href="/listings/?id=203">Listed Buyer&#146;s Wants</a>'
menu1[12]='<a href="/listings/?sold=view">Sold Listings</a>'

//MENU2
var menu2=new Array()
menu2[1]='<a href="/michigan/category/history/">History</a>'
menu2[2]='<a href="/michigan/category/lake-superior/">Lake Superior</a>'
menu2[3]='<a href="/michigan/category/marquette/">Marquette</a>'
menu2[4]='<a href="/michigan/category/photos/">Photos</a>'
menu2[5]='<a href="/michigan/category/recreation/">Recreation</a>'
menu2[6]='<a href="/michigan/category/upperpeninsula/">The Upper Peninsula</a>'
menu2[7]='<a href="/michigan/upper-peninsula-links/">U.P. Links Page</a>'

//MENU3
var menu3=new Array()
menu3[1]='<a href="/philosophy/up-lifestyle/">The UP Lifestyle</a>'
menu3[2]='<a href="/philosophy/up-real-estate-market/">UP Real Estate Market</a>'
menu3[3]='<a href="/philosophy/buying-land-process/">Buying Land - The Process</a>'
menu3[4]='<a href="/philosophy/buying-land-process/#fundamentals">&nbsp;-Real Estate Fundamentals</a>'
menu3[5]='<a href="/philosophy/buying-land-process/up-issues/">&nbsp;-U.P. Issues</a>'
menu3[6]='<a href="/philosophy/buying-land-process/taxes/">&nbsp;-Taxes</a>'
menu3[7]='<a href="/philosophy/buying-land-process/environmental/">&nbsp;-Environmental</a>'
menu3[8]='<a href="/philosophy/buying-land-process/dividing-land/">&nbsp;-Dividing Land</a>'
menu3[9]='<a href="/philosophy/buying-land-process/utilities/">&nbsp;-Utilities</a>'
menu3[10]='<a href="/philosophy/buying-land-process/governmental-contacts/">&nbsp;-Governmental Contacts</a>'

//MENU4
var menu4=new Array()
menu4[1]='<a href="/huey-real-estate/services-offered/">Services Offered</a>'
menu4[2]='<a href="/huey-real-estate/dick-huey-resume/">Resume for Dick Huey</a>'
menu4[3]='<a href="/huey-real-estate/list-your-property/">List Your Property</a>'
menu4[4]='<a href="/huey-real-estate/privacy-policy/">Privacy Policy</a>'
	
var menuwidth='300px' //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 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


<!--
img1=new Image()
img1.src="/include/nav/viewlistings.gif"
img2=new Image()
img2.src="/include/nav/viewlistings2.gif"
img3=new Image()
img3.src="/include/nav/about.gif"
img4=new Image()
img4.src="/include/nav/about2.gif"
img5=new Image()
img5.src="/include/nav/philosophy.gif"
img6=new Image()
img6.src="/include/nav/philosophy2.gif"
img7=new Image()
img7.src="/include/nav/aboutus.gif"
img8=new Image()
img8.src="/include/nav/aboutus2.gif"
img9=new Image()
img9.src="/include/nav/contactus.gif"
img10=new Image()
img10.src="/include/nav/contactus2.gif"
//-->


<!--
function reverse()
{
	history.back();
}
//-->

<!-- Begin
function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes,width=640,height=530,left=10,top=10");
OpenWin.opener.name = "opener";
}
// End -->



<!-- Begin
function Start2(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes,width=450,height=500,left=10,top=10");
OpenWin.opener.name = "opener";
}
// End -->

var bo_ns_id = 0;

function startIeFix(){
  if(isIE()){
    document.write('<div style="display: none;" id="bo_ns_id_' + bo_ns_id + '">');
  }
}

function endIeFix(){
  if(isIE()){
    document.write('</div>');
    var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
    if(theObject.firstChild.data){
      theObject.firstChild.removeAttribute('data');
    }
    var theParams = theObject.getElementsByTagName("param");
    var theParamsLength = theParams.length;
    for (var j = 0; j < theParamsLength; j++) {
      if(theParams[j].name.toLowerCase() == 'flashvars'){
        var theFlashVars = theParams[j].value;
      }
    }
    var theInnnerHTML = theObject.innerHTML;
    var re = /<param name="FlashVars" value="">/ig;
    theInnnerHTML = theInnnerHTML.replace(re, "<param name='FlashVars' value='" + theFlashVars + "'>");
    theObject.outerHTML = theInnnerHTML;
  }
}

function isIE(){
  var strBrwsr = navigator.userAgent.toLowerCase();
  if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){
    return true;
  }else{
    return false;
  }
}// JavaScript Document


