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

//Contents for web design
var subdivisions=new Array()
subdivisions[0]='<a href="/applecreek_home.php">- Apple Creek Estates</a>'
//subdivisions[1]='<a href="/lots/index.php?Street_Name[]=&Subdivision_Name[]=apple+hill&action=addon_searchrelevance_results&pclass[]=">- Apple Hill Farms</a>'
subdivisions[1]='<a href="/barker_farms_home.php">- Barker Farms</a>'
subdivisions[2]='<a href="/black_otter_home.php">- Black Otter</a>'
subdivisions[3]='<a href="/lots/index.php?Street_Name[]=&Subdivision_Name[]=cedar+grove&action=addon_searchrelevance_results&pclass[]=">- Cedar Grove</a>'
//subdivisions[5]='<a href="/lots/index.php?Street_Name[]=&Subdivision_Name[]=cedar+ridge&action=addon_searchrelevance_results&pclass[]=">- Cedar Ridge</a>'
subdivisions[4]='<a href="/chapel_hill_home.php">- Chapel Hill</a>'
subdivisions[5]='<a href="http://www.lotsandlandstore.com/lots/index.php?action=searchresults&Subdivision_Name%5B%5D=della+marcus&Street_Name%5B%5D=&Lot_Type=&Back_Exposure=&Municipality=&Acreage_Range=&Price_Range=">- Della Marcus</a>'
subdivisions[6]='<a href="/lots/index.php?Street_Name[]=&Subdivision_Name[]=fisherman&action=addon_searchrelevance_results&pclass[]=">- Fisherman\'s Estates</a>'
subdivisions[7]='<a href="/grandview_home.php">- Grandview Terrace</a>'
subdivisions[8]='<a href="/grey_goose_home.php">- Grey Goose Landing</a>'
subdivisions[9]='<a href="/lots/index.php?Street_Name[]=&Subdivision_Name[]=hawks+landing&action=addon_searchrelevance_results&pclass[]=">- Hawks Landing</a>'
subdivisions[10]='<a href="/horton_hills_home.php">- Horton Hills</a>'
subdivisions[11]='<a href="/jacksonplace_home.php">- Jackson Place</a>'
//subdivisions[12]='<a href="/jacobsen_creek_home.php">- Jacobsen Creek</a>'
subdivisions[12]='<a href="/kae_estates_home.php">- KAE Estates</a>'
subdivisions[13]='<a href="/frame-mackville.html">- Mackville Crossing</a>'
subdivisions[15]='<a href="/mary_lee_home.php">- Mary Lee Estates</a>'
subdivisions[16]='<a href="/moonlight_meadows_home.php">- Moonlight Meadows</a>'
subdivisions[17]='<a href="/mustang_acres_home.php">- Mustang Acres</a>'
subdivisions[18]='<a href="/oakwood_estates_home.php">- Oakwood Estates</a>'
subdivisions[19]='<a href="/lots/index.php?Street_Name[]=&Subdivision_Name[]=redtail+crossing&action=addon_searchrelevance_results&pclass[]=">- Redtail Crossing</a>'
subdivisions[20]='<a href="/rose_tree_home.php">- Rose Tree Hills</a>'
subdivisions[21]='<a href="/sandy_ridge_home.php">- Sandy Ridge</a>'
subdivisions[22]='<a href="/starview_heights_home.php">- Starview Heights</a>'
subdivisions[23]='<a href="/frame-summerbreeze.html">- Summerbreeze Estates</a>'
// subdivisions[23]='<a href="/goto.php?url=http://lots.casalomadevelopment.com/casalomadev/">- The Farms</a>'
subdivisions[24]='<a href="/frame-theponds.html">- The Ponds</a>'
// subdivisions[25]='<a href="/goto.php?url=http://lots.casalomadevelopment.com/casalomadev/">- Warner Creek</a>'
subdivisions[26]='<a href="/western_acres_home.php">- Western Acres</a>'
subdivisions[27]='<a href="/whispering_groves_home.php">- Whispering Groves</a>'
subdivisions[28]='<a href="/whitehawk_meadows_home.php">- Whitehawk Meadows</a>'


var menuwidth='130px' //default menu width
var menubgcolor='fcfcfc'  //menu bgcolor
var disappeardelay=800  //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

