/*
Filename: pulldown_menus.js
Desc:     Pulldown menu definitions for GWL, LLC
Author:   Relevant Arts Enterprise, Inc. <http://www.relevantarts.com/>
          John A. Lock <jlock@relevantarts.com>
Created:  2005-Jul-01
Modified: 
*/

_menuCloseDelay=500;           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150;            // The time delay before menus open on mouse over
_followSpeed=5;                // Follow scrolling speed
_followRate=40;               // Follow scrolling Rate
_subOffsetTop=10;             // Sub menu top offset
_subOffsetLeft=-10;            // Sub menu left offset
_scrollAmount=3;               // Only needed for Netscape 4.x
_scrollDelay=20;               // Only needed for Netcsape 4.x

// Set some default values
var RealWidth = 0;
var companyX = 441;
var planX = 535;
var projectsX = 639;
var commonY = 144;

// Get the actual window width depending on browser
// (navigator.appName.indexOf("Netscape") != -1) ? RealWidth = window.innerWidth + 6 : RealWidth = document.body.scrollWidth;
if (self.innerHeight) {
	RealWidth = self.innerWidth - 20;
} else if (document.documentElement && document.documentElement.clientHeight) {
	RealWidth = document.documentElement.clientWidth;
} else if (document.body) {
	RealWidth = document.body.clientWidth;
}

// Recalculate the menu horizontal positions corrected for window width
whitespace = (RealWidth - 720) / 2;
companyX = whitespace + 334;
if (companyX < 431) { companyX = 441 }
planX = companyX + 95;
projectsX = planX + 137;

with(DefaultStyle=new mm_style()) {
onbgcolor="#6C7F98";
oncolor="#ffffff";
offbgcolor="#BCAC6B";
offcolor="#0F2B44";
padding=2;
fontsize="14";
fontstyle="normal";
fontfamily="Georgia,Times,serif";
overfilter="Alpha(style=0,opacity=85)";
subimage="img/arrow.gif";
}

with(milonic=new menuname("company")) {
style=DefaultStyle;
top=commonY;
left=companyX;
aI("text=&nbsp;&nbsp;overview;url=company.html;");
aI("text=&nbsp;&nbsp;general contracting;url=contracting.html;");
aI("text=&nbsp;&nbsp;construction management;url=constmgt.html;");
aI("text=&nbsp;&nbsp;construction - louisiana;url=louisiana.html;");
aI("text=&nbsp;&nbsp;principals;url=principals.html;");

}

with(milonic=new menuname("plan")) {
style=DefaultStyle;
top=commonY;
left=planX;
aI("text=&nbsp;&nbsp;general documents;url=plan.html;");
}

with(milonic=new menuname("projects")) {
style=DefaultStyle;
top=commonY;
left=projectsX;
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Current Projects;showmenu=current;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Completed Projects;showmenu=completed;");
}

// Second tier menu definitions

with(milonic=new menuname("current")) {
style=DefaultStyle;
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;McDaniel Glenn Redevelopment;url=mcdanielglenn.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Mechanicsville Phase 3;url=mechancisvilleph3.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Mechanicsville Phase 4;url=mechancisvilleph4.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Friendly Place;url=friendlyplace.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Flipper Temple Apts;url=flippertemple.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Magnolia Terrace;url=magnoliaph2.html;");
}

with(milonic=new menuname("completed")) {
style=DefaultStyle;
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Cedarwood Apartments;url=cedarwood.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Columbia Seniors;url=columbiaseniors.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Ellsworth Warehouse;url=ellsworth.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Emerald Court Apartments;url=emeraldcourt.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Heritage Gardens Apartments;url=heritage.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Juniper;url=juniper.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Madison Hills Apartments;url=madisonhills.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Mechanicsville Apartments;url=mechancisvilleapts.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Melrose Park;url=melrose.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Mullers Mix Use Project;url=mullers.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Overby Park;url=overby.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Paces Green Condominiums - Ph. I;url=paces_p1.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Paces Green Condominiums - Ph. II;url=paces_p2.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Park View;url=parkview.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Ponceana;url=ponceana.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;St. Charles;url=stcharles.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Studioplex Lofts;url=studioplex.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;Thomson Senior Residences;url=thomsonsenior.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;1184 Piedmont;url=1184piedmont.html;");
aI("text=&nbsp;&nbsp;&nbsp;&nbsp;1198 Piedmont;url=1198piedmont.html;");
}

drawMenus();
