var our_community=new Array()
our_community[0]='<a href="/our_community/">Overview</a>'
//our_community[1]='<a href="/our_homes/">Our Homes</a>'
our_community[2]='<a href="/our_community/maps_and_aerials.php">Maps & Aerials</a>'
our_community[3]='<a href="/our_community/member_contacts.php">Leadership Team</a>'
our_community[4]='<a href="/our_community/area_amenities.php">Area Amenities</a>'
our_community[5]='<a href="/our_community/scale_model.php">Scale Models</a>'

var our_homes=new Array()
our_homes[0]='<a href="/our_homes/floorplans.php">Featured Floorplan</a>'
our_homes[1]='<a href="/our_homes/sales_model.php">Model Home Gallery</a>'

var living_at_php=new Array()
living_at_php[0]='<a href="/living_at_php/">Overview</a>'
living_at_php[1]='<a href="/living_at_php/services.php">Services</a>'
living_at_php[2]='<a href="/living_at_php/amenities.php">Amenities</a>'
//living_at_php[3]='<a href="/living_at_php/events_and_activities.php">Events</a>'
//living_at_php[4]='<a href="/living_at_php/service_fees.php">Services Fees</a>'
//living_at_php[4]='<a href="/our_members/">Our Members</a>'
living_at_php[5]='<a href="/our_members/events.php">Member Events</a>'
//our_members[2]='<a href="/our_members/tour_private_art_collection.php">Tour Art Collection</a>'
living_at_php[6]='<a href="/our_members/written_testimonials.php">Written Testimonials</a>'
living_at_php[7]='<a href="/our_members/member_feature_bios.php">Member Feature Bios</a>'
living_at_php[8]='<a href="/our_members/video_information_center.php">Video Info Center</a>'


var health_services=new Array()
health_services[0]='<a href="/health_services/">Overview</a>'
health_services[1]='<a href="/health_services/index.php?q=more">Philosophy Of Care</a>'
//health_services[2]='<a href="/health_services/clinic.php">Clinic</a>'
//health_services[3]='<a href="/health_services/in_home_health_care.php">In Home Health Care</a>'
//health_services[4]='<a href="/health_services/physicians.php">Physicians</a>'
//health_services[5]='<a href="/health_services/the_terraces.php">The Terraces</a>'

var contact_us=new Array()
contact_us[0]='<a href="/contact_us/">Overview</a>'
contact_us[1]='<a href="/contact_us/directions.php">Directions</a>'
contact_us[2]='<a href="/contact_us/send_a_postcard.php">Refer A Friend</a>'

var our_members=new Array()
our_members[0]='<a href="/our_members/">Overview</a>'
our_members[1]='<a href="/our_members/events.php">Events</a>'
//our_members[2]='<a href="/our_members/tour_private_art_collection.php">Tour Art Collection</a>'
our_members[3]='<a href="/our_members/written_testimonials.php">Written Testimonials</a>'
our_members[4]='<a href="/our_members/member_feature_bios.php">Member Feature Bios</a>'
our_members[5]='<a href="/our_members/video_information_center.php">Video Info Center</a>'

var resource_center=new Array()
resource_center[0]='<a href="/resource_center/">Overview</a>'
resource_center[1]='<a href="/resource_center/compare_the_value.php">Compare The Value</a>'
resource_center[2]='<a href="/resource_center/faq.php">Frequently Asked Questions</a>'
resource_center[3]='<a href="/resource_center/learning_center.php">Learning Center</a>'
//resource_center[4]='<a href="/resource_center/moving_made_simple.php">Moving Made Simple</a>'
//resource_center[5]='<a href="/resource_center/newsletters.php">Newsletters</a>'
resource_center[6]='<a href="/docs/2009_03_27_handouts.pdf" target="_blank">Presentation Handouts</a>'
//resource_center[6]='<a href="/resource_center/presentations.php">Presentations</a>'
//resource_center[7]='<a href="/resource_center/speaking_opportunities.php">Speaking Opportunities</a>'
//resource_center[8]='<a href="/resource_center/whats_your_plan.php">What\'s Your Plan</a>'

var whats_new=new Array()
whats_new[0]='<a href="/whats_new/">Overview</a>'
whats_new[1]='<a href="/whats_new/events_and_activities.php">Guest Events</a>'
whats_new[2]='<a href="/whats_new/construction_updates.php">Construction Updates</a>'
//whats_new[2]='<a href="/whats_new/design_center.php">Design Center</a>'
//whats_new[3]='<a href="/whats_new/model_homes.php">Model Homes</a>'
whats_new[4]='<a href="/whats_new/press_center.php">Press Center</a>'
//whats_new[5]='<a href="/whats_new/scale_model.php">Scale Model</a>'
whats_new[6]='<a href="/whats_new/what_people_say.php">What People Are Saying</a>'
whats_new[7]='<a href="/whats_new/newsletters.php">Newsletters</a>'


var about_us = new Array();
about_us[0] = '<a href="/about_us/index.php">Overview</a>';
about_us[1] = '<a href="/about_us/our_team.php">Our Partners</a>';

var menuwidth='811px'
var menubgimg='/images/drop_down_bg.jpg'
var menucolor='#FFFFFF'
var disappeardelay=150
var hidemenu_onclick="no"

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-image: url('+menubgimg+');background-color: '+menucolor+'" 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