/***********************************************
* 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 Vintage Series
var menu1=new Array()
menu1[0]='<a href="vintage_elevation_res-one.htm" target="_self">Elevations</a>'
menu1[1]='<a href="vintage_floor-plan_res-one_1.htm" target="_self">Floorplans</a>'
menu1[2]='<a href="vintage_neighborhood-map_cobblestone.htm" target="_self">Neighborhoods</a>'
menu1[3]='<a href="vintage_features_community.htm"_self">Features</a>'

	var menu1b=new Array()
	menu1b[0]='<a href="vintage_features_community.htm" target="_self">Community Features</a>'
	menu1b[1]='<a href="vintage_features_quality.htm" target="_self">Quality Construction</a>'
	menu1b[2]='<a href="vintage_features_exterior.htm" target="_self">Distinctive Exteriors</a>'
	menu1b[3]='<a href="vintage_features_interior.htm"_self">Interior Finishes</a>'
	menu1b[4]='<a href="vintage_features_kitchens.htm"_self">Gourmet Kitchens</a>'
	menu1b[5]='<a href="vintage_features_bathrooms.htm"_self">Elegant Bathrooms</a>'
	menu1b[6]='<a href="vintage_features_security.htm"_self">Security & Privacy</a>'
	menu1b[7]='<a href="vintage_features_custom.htm"_self">Custom Options</a>'
	
	var menu1c=new Array()
	menu1c[0]='<a href="vintage_floor-plan_res-one_1.htm" target="_self">Residence One</a>'
	menu1c[1]='<a href="vintage_floor-plan_res-two_1.htm" target="_self">Residence Two</a>'
	menu1c[2]='<a href="vintage_floor-plan_res-three_1.htm" target="_self">Residence Three</a>'
	menu1c[3]='<a href="vintage_floor-plan_res-four_1.htm"_self">Residence Four</a>'
	menu1c[4]='<a href="vintage_floor-plan_res-five_1.htm"_self">Residence Five</a>'
	menu1c[5]='<a href="vintage_floor-plan_res-six_1.htm"_self">Residence Six</a>'
	menu1c[6]='<a href="vintage_floor-plan_res-seven_1.htm"_self">Residence Seven</a>'
	
	var menu1d=new Array()
	menu1d[0]='<a href="vintage_elevation_res-one.htm" target="_self">Residence One</a>'
	menu1d[1]='<a href="vintage_elevation_res-two.htm" target="_self">Residence Two</a>'
	menu1d[2]='<a href="vintage_elevation_res-three.htm" target="_self">Residence Three</a>'
	menu1d[3]='<a href="vintage_elevation_res-four.htm"_self">Residence Four</a>'
	menu1d[4]='<a href="vintage_elevation_res-five.htm"_self">Residence Five</a>'
	menu1d[5]='<a href="vintage_elevation_res-six.htm"_self">Residence Six</a>'
	menu1d[6]='<a href="vintage_elevation_res-seven.htm"_self">Residence Seven</a>'
	
	var menu1e=new Array()
	menu1e[0]='<a href="vintage_neighborhood-map_cobblestone.htm" target="_self">Cobblestone</a>'
	menu1e[1]='<a href="vintage_neighborhood-map_trailridge.htm" target="_self">Trailridge</a>'
	
//Contents for Artisan Series
var menu2=new Array()
menu2[0]='<a href="artisan_elevation_res-one.htm" target="_self">Elevations</a>'
menu2[1]='<a href="artisan_floor-plan_res-one_1.htm" target="_self">Floorplans</a>'
menu2[2]='<a href="artisan_neighborhood-map.htm" target="_self">Neighborhoods</a>'
menu2[3]='<a href="artisan_features_community.htm"_self">Features</a>'

	var menu2b=new Array()
	menu2b[0]='<a href="artisan_features_community.htm" target="_self">Community Features</a>'
	menu2b[1]='<a href="artisan_features_quality.htm" target="_self">Quality Construction</a>'
	menu2b[2]='<a href="artisan_features_exterior.htm" target="_self">Distinctive Exteriors</a>'
	menu2b[3]='<a href="artisan_features_interior.htm"_self">Interior Finishes</a>'
	menu2b[4]='<a href="artisan_features_kitchens.htm"_self">Gourmet Kitchens</a>'
	menu2b[5]='<a href="artisan_features_bathrooms.htm"_self">Elegant Bathrooms</a>'
	menu2b[6]='<a href="artisan_features_custom.htm"_self">Custom Options</a>'
	
	var menu2c=new Array()
	menu2c[0]='<a href="artisan_floor-plan_res-one_1.htm" target="_self">Residence One</a>'
	menu2c[1]='<a href="artisan_floor-plan_res-two_1.htm" target="_self">Residence Two</a>'
	menu2c[2]='<a href="artisan_floor-plan_res-three_1.htm" target="_self">Residence Three</a>'
	menu2c[3]='<a href="artisan_floor-plan_res-four_1.htm"_self">Residence Four</a>'
	
	var menu2d=new Array()
	menu2d[0]='<a href="artisan_elevation_res-one.htm" target="_self">Residence One</a>'
	menu2d[1]='<a href="artisan_elevation_res-two.htm" target="_self">Residence Two</a>'
	menu2d[2]='<a href="artisan_elevation_res-three.htm" target="_self">Residence Three</a>'
	menu2d[3]='<a href="artisan_elevation_res-four.htm"_self">Residence Four</a>'

//Contents for Master Series
var menu3=new Array()
menu3[0]='<a href="master_elevation_res-five.htm" target="_self">Elevations</a>'
menu3[1]='<a href="master_floor-plan_res-five_1.htm" target="_self">Floorplans</a>'
menu3[2]='<a href="master_neighborhood-map.htm" target="_self">Neighborhoods</a>'
menu3[3]='<a href="master_features_community.htm"_self">Features</a>'

	var menu3b=new Array()
	menu3b[0]='<a href="master_features_community.htm" target="_self">Community Features</a>'
	menu3b[1]='<a href="master_features_quality.htm" target="_self">Quality Construction</a>'
	menu3b[2]='<a href="master_features_exterior.htm" target="_self">Distinctive Exteriors</a>'
	menu3b[3]='<a href="master_features_interior.htm"_self">Interior Finishes</a>'
	menu3b[4]='<a href="master_features_kitchens.htm"_self">Gourmet Kitchens</a>'
	menu3b[5]='<a href="master_features_bathrooms.htm"_self">Elegant Bathrooms</a>'
	menu3b[6]='<a href="master_features_custom.htm"_self">Custom Options</a>'
		
	var menu3c=new Array()
	menu3c[0]='<a href="master_floor-plan_res-five_1.htm" target="_self">Residence Five</a>'
	menu3c[1]='<a href="master_floor-plan_res-six_1.htm" target="_self">Residence Six</a>'
	menu3c[2]='<a href="master_floor-plan_res-seven_1.htm" target="_self">Residence Seven</a>'
	
	var menu3d=new Array()
	menu3d[0]='<a href="master_elevation_res-five.htm" target="_self">Residence Five</a>'
	menu3d[1]='<a href="master_elevation_res-six.htm" target="_self">Residence Six</a>'
	menu3d[2]='<a href="master_elevation_res-seven.htm" target="_self">Residence Seven</a>'
	
var menu4=new Array()
menu4[0]='<a href="las_sendas.htm" target="_self">Las Sendas</a>'
menu4[1]='<a href="http://www.mountainbridgecommunity.com" target="_blank">Mountain Bridge</a>'
menu4[2]='<a href="http://www.ellsworthvillas.com" target="_blank">Ellsworth Villas</a>'
menu4[3]='<a href="http://www.tuscanyvillascommunity.com" target="_blank">Tuscany Villas</a>'
menu4[4]='<a href="http://www.portellocommunity.com" target="_blank">Portello</a>'
menu4[5]='<a href="http://www.highlandridgecommunity.com" target="_blank">Highland Ridge</a>'
menu4[6]='<a href="http://www.nauvoostationcommunity.com" target="_blank">Nauvoo Station</a>'


var menuwidth='150px' //default menu width
var menubgcolor='#fefbf2'  //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