//window.onerror = null

Array.prototype.left = null
Array.prototype.top = null
Array.prototype.width = null
Array.prototype.bgColor = null
Array.prototype.aColor = null
Array.prototype.aFont = null
Array.prototype.aSizeNS = null
Array.prototype.aSizeIE = null
Array.prototype.endImage = null
Array.prototype.timeOut = null
Array.prototype.headImage = null
Array.prototype.headHeight = null
Array.prototype.headWidth = null
Array.prototype.headHref = null
Array.prototype.curPage = null

String.prototype.href = null
String.prototype.target = null

var menu = new Array()

/*
global variables (for all menus)
*/

menu.bgColor = "#eeeeee"
menu.aColor = "#777777"
menu.aFont = "Arial, Helvetica, sans-serif"
menu.aSizeNS = "1"
menu.aSizeIE = "11"
menu.timeOut = 5000
menu.headHeight = 0

/*
menu variables (for each menu)
*/


menu[0] = new Array()

menu[0].left = 58
menu[0].top = 114
menu[0].width = 152
menu[0].endImage = "/images/header/curve_152.gif"
menu[0].headImage = "/images/bk.gif"
menu[0].headHref = "/content/lenders/index.asp" 
menu[0].headWidth = 72

/*
menu item variables (for each menu item)
About
*/

menu[0][0] = new String("&nbsp;&nbsp;lender services")
menu[0][0].href = "/content/lenders/index.asp"
menu[0][0].target = "_self"

menu[0][1] = new String("&nbsp;&nbsp;electronic loan review<br>&nbsp;&nbsp;(ELR) ")
menu[0][1].href = "/content/lenders/elr.asp"
menu[0][1].target = "_self"

menu[0][2] = new String("&nbsp;&nbsp;third party originator (TPO)<br>&nbsp;&nbsp;management program ")
menu[0][2].href = "/content/lenders/tpo.asp"
menu[0][2].target = "_self"

menu[0][3] = new String("&nbsp;&nbsp;FraudGuard.com ")
menu[0][3].href = "http://www.fraudguard.com"
menu[0][3].target = "_self"




/*Services*/
menu[1] = new Array()

menu[1].left = 165
menu[1].top = 114
menu[1].width = 145
menu[1].endImage = "/images/header/curve_145.gif"
menu[1].headImage = "/images/bk.gif"
menu[1].headHref = "/content/brokers/index.asp" 
menu[1].headWidth = 72


menu[1][0] = new String("&nbsp;&nbsp;mortgage brokers")
menu[1][0].href = "/content/brokers/index.asp"
menu[1][0].target = "_self"

menu[1][1] = new String("&nbsp;&nbsp;TPO at a glance?")
menu[1][1].href = "/content/brokers/TPOcert/tpocert.asp"
menu[1][1].target = "_self"

menu[1][2] = new String("&nbsp;&nbsp;what is Sysdome U-9?")
menu[1][2].href = "/content/brokers/SysdomeU9/SysdomeU9.asp"
menu[1][2].target = "_self"



/*become a client*/
menu[2] = new Array()

menu[2].left = 272
menu[2].top = 114
menu[2].width = 173
menu[2].endImage = "/images/header/curve_165.gif"
menu[2].headImage = "/images/bk.gif" 
menu[2].headHref = "/content/companyinformation/companyinformation.asp" 
menu[2].headWidth = 72


menu[2][0] = new String("&nbsp;&nbsp;corporate information")
menu[2][0].href = "/content/companyinformation/companyinformation.asp"
menu[2][0].target = "_self"


menu[2][1] = new String("&nbsp;&nbsp;fact sheet")
menu[2][1].href = "/content/services/services.asp"
menu[2][1].target = "_self"

menu[2][2] = new String("")
menu[2][2].href = "/content/companyinformation/ourexecteam.asp"
menu[2][2].target = "_self"


createMenus(menu)

function createMenus(mArr){
	function getClick(e){
		clearMenus(mArr)
		return (e) ? routeEvent(e) : true
	}
	if (document.layers){
		window.captureEvents(Event.CLICK)
		window.onclick = getClick
		for (i = 0; i < mArr.length; i++){
			document.write("<layer class=\"menu\" name=\"menu" + i + "\" left=\"" + mArr[i].left + "\" top=\"" + mArr[i].top + "\" visibility=\"hidden\" width=\"" + mArr[i].width + "\">")
			document.write("<ilayer width=\"100%\"><a href=\"" + mArr[i].headHref + "\"><img src=\"" + mArr[i].headImage + "\" border=\"0\" height=\"" + mArr.headHeight + "\" width=\"" + mArr[i].headWidth + "\"><\/a><\/ilayer><br>")
			for (j = 0; j < mArr[i].length; j++){
				document.write("<ilayer width=\"100%\" bgcolor=\"" + mArr.bgColor + "\">&nbsp;&nbsp;<a href=\"" + mArr[i][j].href + "\" target=\"" + mArr[i][j].target + "\"><font color=\"" + mArr.aColor + "\" face=\"" + mArr.aFont + "\" size=\"" + mArr.aSizeNS + "\">" + mArr[i][j] + "<\/font><\/a><\/ilayer><br>")
				
			}
			if (mArr[i].length > 0){
				document.write("<a href=\"\" onclick=\"hideMenu(" + i + "); return false\"><img src=\"" + mArr[i].endImage + "\" border=\"0\"><\/a>")
			}
			document.write("<\/layer>")
		}
	} else if (document.all){
		document.onclick = getClick
		for (i = 0; i < mArr.length; i++){
			document.write("<div class=\"menu\" id=\"menu" + i + "\"  style=\"{position: absolute; left: " + mArr[i].left + "px; top: " + mArr[i].top + "px; visibility: hidden; width: " + mArr[i].width + "}\">")
			document.write("<span style=\"{width: 100%}\"><a href=\"" + mArr[i].headHref + "\"><img src=\"" + mArr[i].headImage + "\" border=\"0\" height=\"" + mArr.headHeight + "\" width=\"" + mArr[i].headWidth + "\"><\/a><\/span>")
			for (j = 0; j < mArr[i].length; j++){
				document.write("<span style=\"{width: 100%; background-color: " + mArr.bgColor + "; padding: 3px; padding-left: 7px}\"><a href=\"" + mArr[i][j].href + "\" target=\"" + mArr[i][j].target + "\" style=\"{color: " + mArr.aColor + "; text-decoration: none; font-family: " + mArr.aFont + "; font-size: " + mArr.aSizeIE + "}\" onMouseOver=\"this.style.color='#FF6633'\"  onMouseOut=\"this.style.color='" + mArr.aColor + "'\">" + mArr[i][j] + "<\/a><\/span>")
				
			}
			if (mArr[i].length > 0){
				document.write("<a onclick=\"hideMenu(" + i + "); return false\"><img src=\"" + mArr[i].endImage + "\" border=\"0\"><\/a>")
			}
			document.write("<\/div>")
		}
	}
}

function hideMenu(menuID){
	if (document.layers){
		eval("document.layers.menu" + menuID + ".visibility = \"hide\"")
	} else if (document.all){
		eval("document.all.menu" + menuID + ".style.visibility = \"hidden\"")
	}
}

function showMenu(mArr, menuID){
	if (this.t){
		clearTimeout(this.t)
	}
	if (document.layers){
		eval("document.layers.menu" + menuID + ".visibility = \"show\"")
	} else if (document.all){
		eval("document.all.menu" + menuID + ".style.visibility = \"visible\"")
	}
	this.t = setTimeout("hideMenu(" + menuID + ")", mArr.timeOut)
}

function clearMenus(mArr){
	for (i = 0; i < mArr.length; i++){
		hideMenu(i)
	}
}

function toggleMenu(mArr, menuID){
	clearMenus(mArr)
	showMenu(mArr, menuID)
}
/*document.write("<img src=\"/images/spacer_blue.gif\" width=\"" + mArr[i].width + "\" height=\"1\">")*/