/***********************************************
* 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 Buyer Tell Me More Menu
var menu1=new Array()
menu1[0]='<a href="includes/b-TMMagents.html" target="buyerframe"> Agents </a>'
menu1[1]='<a href="includes/b-TMMprocess.html" target="buyerframe">Buying Process</a>'
menu1[2]='<a href="includes/b-Communities.html" target="buyerframe">Community Info</a>'
menu1[3]='<a href="http://www.abag.ca.gov/abag/local_gov/schools.html" target="buyerframe">Public School Info</a>'
menu1[4]='<a href="http://www.baprivateschools.com/schllist.htm" target="buyerframe">Private School Info</a>'
menu1[5]='<a href="includes/b-TMMwhatelse.html" target="buyerframe">What Else Should I Know?</a>'

//Contents for Buyer Loan Center Menu
var menu5=new Array()
menu5[0]='<a href="includes/b-LoanType.html" target="buyerframe">Loan ABCs</a>'
menu5[1]='<a href="http://www.mtgprofessor.com/Tutorials%20on%20Mortgage%20Features/tutorial_on_selecting_mortgage_features.htm" target="buyerframe">Mortgage Professor</a>'
menu5[2]='<a href="includes/b-PQualvsPApprov.html" target="buyerframe">Pre-qualification vs Pre-approval </a>'
menu5[3]='<a href="calculators/MortgageRentvsBuy.html" target="buyerframe"><strong> &nbsp; &nbsp; &nbsp; &nbsp; CALCULATORS</strong> <br>Rent vs. Buy</a>'
menu5[4]= '<a href="http://www.mortgage-calculators.org/calculators/template3.php3?calc_type=28" target="buyerframe" > Monthly Mortgage Payment</a>'
menu5[5]='<a href="http://www.mortgage-calculators.org/calculators/template3.php3?calc_type=23" target="buyerframe">Mortgage Qualifier</a>'
menu5[6]='<a href="http://www.mortgage-calculators.org/calculators/java/calculator.html" target="buyerframe">Loan Calculator</a>'
menu5[7]='<a href="calculators/ShouldIRefi.html" target="buyerframe">Refinance Calculator</a>'
menu5[8]='<a href="calculators/MortgageConsolidate.html" target="buyerframe">Mortgage/Loan Consolidation</a>'


//Contents for Seller Menu
var menu2=new Array()
menu2[0]='<a href="includes/s-WhereToStart.html" target="sellframe">Where to Start</a>'
menu2[1]='<a href="includes/s-SellingProcess.html" target="sellframe">The Selling Process</a>'		
menu2[2]='<a href="includes/s-WhatElseShouldIKnow.html" target="sellframe">What Else Should I Know?</a>'

//Contents for Investor Menu
var menu3=new Array()
menu3[0]='<a href="includes/i-TMMPriorToInvestment.html" target="investframe">Prior to Investment</a>'
menu3[1]='<a href="includes/i-TMMGoingAhead.html" target="investframe">Going Ahead With A Transaction</a>'
menu3[2]='<a href="includes/i-TMMWhatElseShouldIKnow.html" target="investframe">What Else Should I Know?</a>'

		
//Contents for Investor Loan Center Menu
var menu6=new Array()
menu6[0]='<a href="includes/i-LoanType.html" target="investframe">Loan ABCs</a>'
menu6[1]='<a href="http://www.mtgprofessor.com/Tutorials%20on%20Mortgage%20Features/tutorial_on_selecting_mortgage_features.htm" target="investframe">Mortgage Professor</a>'
menu6[2]='<a href="calculators/InvestmentVariables.html" target="investframe"><strong> &nbsp; &nbsp; &nbsp; &nbsp; CALCULATORS</strong> <br>Investment Goals</a>'
menu6[3]='<a href="http://www.mortgage-calculators.org/calculators/java/calculator.html" target="investframe">Loan Calculator</a>'
menu6[4]='<a href="http://www.mortgage-calculators.org/calculators/template3.php3?calc_type=30"  target="investframe"  width="550" height="450"> Rental Mortgage</a>'
menu6[5]='<a href="http://www.mortgage-calculators.org/calculators/template3.php3?calc_type=3" target="investframe">Prepayment / Investment Calculator</a>'
menu6[6]='<a href="calculators/InvestmentReturn.html" target="investframe">Investment Returns</a>'


//Contents for Agent Loan Center Menu
var menu9=new Array()
menu9[0]='<a href="https://www.cwbc.com/" target="agentframe">Countrywide</a>'
menu9[1]='<a href="http://www.wloconnect.com/" target="agentframe">WLO Connect</a>'
menu9[2]='<a href="https://www.wfbroker.com/wfibroker/login.aspx" target="agentframe">Wilmington Finance</a>'
menu9[3]='<a href="http://www.junosource.com/home/" target="agentframe">Junosource</a>'
menu9[4]='<a href="http://www.calcoastcredit.com/" target="agentframe">Cal Coast Credit</a>'

//Contents for Agent Escrow Menu
var menu10=new Array()
menu10[0]='<a href="http://www.chicagotitle.com/DesktopDefault.aspx" target="new">Chicago Title CMA</a>'
menu10[1]='<a href="http://www.fidelitypassport.com" target="agentframe">Fidelity National CMA</a>'
menu10[2]='<a href="https://fwprodweb1.firstam.com/fastweb/fwlogin.asp" target="agentframe">First American Title</a>'
menu10[3]='<a href="http://www.ortc.com/web/" target="agentframe">Old Republic CMA</a>'
menu10[4]='<a href="https://www.agentxtra.net/anon/login.aspx?ReturnUrl=%2fCustomDialogs%2fEmptyChannel.aspx%3fNRMODE%3dPublished%26NRORIGINALURL%3d%252f%26NRNODEGUID%3d%257b32B83E75-C747-4753-B2D4-88AA24BB6C36%257d%26NRCACHEHINT%3dGuest&NRMODE=Published&NRORIGINALURL=%2f&NRNODEGUID=%7b32B83E75-C747-4753-B2D4-88AA24BB6C36%7d&NRCACHEHINT=Guest" target="agentframe">Commonwealth Title</a>'

//Contents for Agent Tell Me
var menu4=new Array()

menu4[0]='<a href="http://www.realtor.org/rmomag.nsf/pages/feature1sep07?OpenDocument" target="agentframe">Full Spectrum Real Estate</a>'
menu4[1]='<a href="http://www.zillow.com/learnmore/WhyUseZillowAgents.htm" target="agentframe">Market yourself for free on Zillow.com</a>'

menu4[2]='<a href="http://youtube.com/watch?v=dIQtP9uA8Pw" target="agentframe">&nbsp; &nbsp;Part 1 of 4</a>'
menu4[3]='<a href="http://youtube.com/watch?v=fSEqFMV9nrM" target="agentframe">&nbsp; &nbsp;Part 2 of 4</a>'
menu4[4]='<a href="http://youtube.com/watch?v=Q7iz-Wgqooc" target="agentframe">&nbsp; &nbsp;Part 3 of 4</a>'
menu4[5]='<a href="http://youtube.com/watch?v=uFRCKXN7jXo" target="agentframe">&nbsp; &nbsp;Part4 of 4</a>'

menu4[6]='<a href="http://www.trulia.com/voices/" target="agentframe">Trulia Voices</a>'
menu4[7]='<a href="http://activerain.com/" target="agentframe">Active Rain</a>'

//Contents for Broker Calculators Menu
var menu12=new Array()
menu12[0]='<a href="http://www.homefair.com/homefair/servlet/ActionServlet?pid=2&cid=homestorefinancervb" target="brokerframe">Home Affordability</a>'
menu12[1]='<a href="http://www.homefair.com/homefair/servlet/ActionServlet?pid=43&cid=homestorefinancervb" target="brokerframe">Morgtage Qualifier</a>'
menu12[2]='<a href="http://www.homefair.com/homefair/servlet/ActionServlet?pid=48&previousPage=47&cid=homestorefinancervb&mortgageRate=7.500&taxBracket=25.0&propertyTaxRate=1.0&appreciation=2.0&rent=3000&housePrice=600000&condoFee=0&occupy=3" target="brokerframe">Rent vs. Buy</a>'
menu12[3]='<a href="http://www.homefair.com/homefair/servlet/ActionServlet?pid=33&cid=homestorefinancervb" target="brokerframe" >Mortgage Payment Calculator</a>'
menu12[4]='<a href="http://www.homefair.com/homefair/servlet/ActionServlet?pid=45&cid=homestorefinancervb" target="brokerframe">Refinance Calculator</a>'

//Contents forBroker Loan Center Menu
var menu14=new Array()
menu14[0]='<a href="http://www.wloconnect.com/site/forms_downloads/" target="brokerframe">Loan Forms</a>'
menu14[1]='<a href="https://www.wloconnect.com/site/ratesheets/" target="brokerframe">Rate Sheets</a>'
menu14[2]='<a href="https://www.wloconnect.com/site/guidelines/" target="brokerframe">Product Guidelines</a>'
menu14[3]='<a href="http://app.wloconnect.com/pe/pricingInput.wlo?userID=6864078&userName=" target="brokerframe">Price New Loan</a>'
menu14[4]='<a href="http://www.wloconnect.com/site/pricing_query/" target="brokerframe">Pricing Query</a>'
menu14[5]='<a href="https://www.junosource.com/portal/BRAdmin.aspx" target="brokerframe">Processor/Underwriter</a>'

//Home Careers Menu
var menu15=new Array()
//menu15[0]='<a href="http://careers.cimpler.com/Careers.html" target="new">Careers</a>'
//menu15[1]='<a href="http://www.realestatesimulator.com/leads/requestaccount.aspx?rcid=Cimpler" target="hmframe">Simulator</a>'
menu15[0]='<a href="http://www.rockwellinstitute.com/demo/CA_Principles_Link.asp?xid=7F52DA8ED2CC" target="hmframe">Real Estate Principles Course</a>'
menu15[1]='<a href="http://www.rockwellinstitute.com/demo/CA_18MCondLic_Link.asp?xid=D5D66171494F" target="hmframe">Continued Education Courses</a>'

var menu17=new Array()
menu17[0]='<a href="includes/b-FeeBasedServices.html" target="hmframe">for Buyers</a>'
menu17[1]='<a href="includes/s-FeeBasedServices.html" target="hmframe">for Sellers</a>'

//Contents for Broker Menu
var menu7=new Array()
menu7[0]='<a href="../includes/b-comingSoon.html" target="brokerframe">Broker\'s Policy Manual</a>'
menu7[1]='<a href="http://www.car.org/index.php?id=MjcxNw" target="brokerframe">RET Magazine</a>'
menu7[2]='<a href="http://www.realtor.org/realtororg.nsf/pages/pastnewsletters?OpenDocument" target="brokerframe">Realtor.org Essentials</a>'

var menuwidth='180px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=50  //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
