function writeSubmenuItem(width, url, txt) { document.write('' + txt + ''); } function writeMenuItem(url, txt) { document.write(''); document.write('
' + txt + '
'); document.write('
'); } function writeMenuMain() { if (!isNS4) { document.write(''); document.write(''); } document.write(''); document.write('
'); document.write(""); document.write("
"); writeMenuItem("http://drhorton.com/corp/index.jsp", "Home"); document.write(" "); writeMenuItem("http://drhorton.com/corp/index.jsp?redirect=howBuildDef", "The Horton Story"); document.write(" "); writeMenuItem("http://drhorton.com/corp/index.jsp?redirect=mortCalcDef&calcType=mcpmts", "Mortgage Calculator"); document.write(" "); writeMenuItem("http://drhorton.com/corp/index.jsp?redirect=jobsDef", "Careers"); document.write(" "); writeMenuItem("http://drhorton.com/corp/index.jsp?redirect=contactDef", "Contact Us"); document.write(" "); writeMenuItem("http://drhorton.com/corp/RedirectDisclaimer.do?irRedirect=finIRHomeDef", "Investor Relations"); document.write('
'); document.write('
'); } function writeBannerBody() { document.write(''); document.write('
'); document.write('D.R. Horton - America\'s Builder'); document.write(''); document.write(''); document.write(''); document.write('
'); writeMenuMain(); var returnUrl = escape(window.location); document.write('
'); document.write(''); document.write('  Español'); document.write(' | '); document.write(''); document.write('  View Favorites'); document.write('
'); document.write('
'); } //figure out what browser we are dealing with isNS4 = (document.layers) ? true : false; isIE4 = (document.all && !document.getElementById) ? true : false; isIE5 = (document.all && document.getElementById) ? true : false; isNS6 = (!document.all && document.getElementById) ? true : false; function banner_getElement(elementId) { //identify the element based on browser type if (isNS4){ objElement = document.layers[elementId]; }else if (isIE4) { objElement = document.all[elementId]; }else if (isIE5 || isNS6) { objElement = document.getElementById(elementId); } return objElement; } function getPageOffsetLeft(el) { var x; // Return the x coordinate of an element relative to the page. x = el.offsetLeft; if (el.offsetParent != null) x += getPageOffsetLeft(el.offsetParent); return x; } function getPageOffsetTop(el) { var y; // Return the x coordinate of an element relative to the page. y = el.offsetTop; if (el.offsetParent != null) y += getPageOffsetTop(el.offsetParent); return y; } function hMI(mi) { mi.style.backgroundColor='#CC3333'; } function uMI(mi) { mi.style.backgroundColor='#667A9B'; } function showMenuItem(menuItem, subMenuItemId, orientation) { awmhidediv(); x = getPageOffsetLeft(menuItem); y = getPageOffsetTop(menuItem); var subMenuItem = banner_getElement(subMenuItemId); subMenuItem.style.top = y + ((navigator.userAgent.toLowerCase().indexOf('safari') > -1) ? 14 : 18); if (orientation == 'right' ) { x += menuItem.offsetWidth - subMenuItem.offsetWidth + 1; } subMenuItem.style.left = x; subMenuItem.style.visibility = "visible"; clearTimeout(timers[subMenuItemId]); } var timers = new Array(); function turnOn(strDivName) { var objElement = banner_getElement(strDivName); objElement.style.visibility = "visible"; clearTimeout(timers[strDivName]); } function turnOff(strDivName) { var timer = timers[strDivName]; clearTimeout(timers[strDivName]); timers[strDivName] = setTimeout('actualTurnOff("' + strDivName + '")',50); } function actualTurnOff(strDivName) { var objElement = banner_getElement(strDivName); objElement.style.visibility = "hidden"; } function awmhidediv(){ if (isIE4 || isIE5) { var m=1; while (banner_getElement("awmobject"+m)){ banner_getElement("awmobject"+m).style.visibility="hidden"; m++; } } } function awmshowdiv() { if (isIE4 || isIE5) { var m=1; while (banner_getElement("awmobject"+m)) { banner_getElement("awmobject"+m).style.visibility="visible";m++; } } } writeBannerBody();