/***********************************************
		* 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 menu 1
		var menu1=new Array()
		menu1[0]='<a href="/listings/AtlasSearch.php?" class="d_nav">Atlas Search</a>'
		menu1[1]='<a href="/listings/?" class="d_nav">Advanced Home Search</a>'
		menu1[2]='<a href="/listings/query.php?cidonly=1" class="d_nav">Our Listings</a>'
		menu1[3]='<a href="/openhouse/?" class="d_nav">Open Houses</a>'
		menu1[4]='<a href="/listings/query.php?newlisting=yes&" class="d_nav">New Listings</a>'
		menu1[5]='<a href="/listings/query.php?elegant=yes&" class="d_nav">Fine Homes</a>'
		menu1[6]='<a href="/listings/index.php?&searchtype=3&" class="d_nav">Lots and Land</a>'
		menu1[7]='<a href="/commercial/?" class="d_nav">Commercial Listings</a>'
		menu1[8]='<a href="/leasing/?" class="d_nav">Properties for Lease</a>'
		menu1[9]='<a href="/company/auction.php?" class="d_nav">Auction Properties</a>'
		menu1[10]='<a href="/listings/index.php?&searchtype=5&" class="d_nav">Search by MLS#</a>'
		menu1[11]='<a href="/new_construction/index.php?" class="d_nav">New Construction</a>'
		
		//Contents for menu 8
		var menu8=new Array()
		menu8[0]='<a href="/getagent/?" class="d_nav">Office Map</a>'
		menu8[1]='<a href="/getagent/list.php?temp=&oid=019500001" class="d_nav">Broken Arrow Office</a>'
		//menu8[2]='<a href="/getagent/list.php?temp=&oid=019500005" class="d_nav">Corporate Office</a>'
		menu8[3]='<a href="/getagent/list.php?temp=&oid=019500004" class="d_nav">Jenks Office</a>'
		menu8[4]='<a href="/getagent/list.php?temp=&oid=019500209" class="d_nav">Grove / Langley Office</a>'
		menu8[5]='<a href="/getagent/list.php?temp=&oid=019500002" class="d_nav">Owasso Office</a>'
		menu8[6]='<a href="/getagent/list.php?temp=&oid=019500003" class="d_nav">Tahlequah Office</a>'
		menu8[7]='<a href="/getagent/list.php?temp=&oid=019500000" class="d_nav">Tulsa Office / Corporate Office</a>'
		
		//Contents for menu 2
		var menu2=new Array()
		menu2[0]='<a href="/company/buyers.php?" class="d_nav">Tips for Buyers</a>'
		menu2[1]='<a href="/getagent/?" class="d_nav">Find an Agent</a>'
		menu2[2]='<a href="/listings/?" class="d_nav">Find a Home</a>'
		menu2[3]='<a href="http://eblast.netmovein.com/mktg/closingflash/index.html" class="d_nav" target="_blank">What to Expect at Closing</a>'
		
		//Contents for menu 3
		var menu3=new Array()
		menu3[0]='<a href="/company/sellers.php?" class="d_nav">Tips for Sellers</a>'
		menu3[1]='<a href="/company/ready_to_sell.php?" class="d_nav">Is Your Home Ready to Sell?</a>'
		menu3[2]='<a href="/getagent/?" class="d_nav">Find an Agent</a>'
		menu3[3]='<a href="/listings/VMA.php?" class="d_nav">Market Analysis</a>'
		
		//Contents for menu 4
		var menu4=new Array()
		menu4[0]='<a href="/company/relocation.php?" class="d_nav">Relocation Assistance</a>'
		menu4[1]='<a href="/company/community.php?" class="d_nav">Our Communities</a>'
		<!--menu4[2]='<a href="/getagent/Pages.php?Page=0000520224" class="d_nav">John Hausam Forms</a>'-->
		
		//Contents for menu 5
		var menu5=new Array()
		menu5[0]='<a href="/company/sellers.php?" class="d_nav">Seller Resources</a>'
		menu5[1]='<a href="/company/buyers.php?" class="d_nav">Buyers Resources</a>'
		menu5[2]='<a href="/company/relocation.php?" class="d_nav">Relocation Services</a>'
		menu5[3]='<a href="/company/checklist.php?" class="d_nav">Moving Checklist</a>'
		menu5[4]='<a href="/calculators/?" class="d_nav">Calculators</a>'
		menu5[5]='<a href="https://www6.bankofamerica.com/mortgage/process.action?redirFlag" class="d_nav" target="_blank">Mortgage Services</a>'
		menu5[6]='<a href="http://www.ahswarranty.com/" class="d_nav" target="_blank">Home Warranty</a>'
		menu5[7]='<a href="/company/property_management.php?" class="d_nav">Property Management</a>'
		menu5[8]='<a href="http://espanol.era.com/" target="_blank" class="d_nav">Habla Espanol?</a>'
		menu5[9]='<a href="/company/vendors.php?" class="d_nav">Preferred Vendors</a>'
		
		//Contents for menu 6
		var menu6=new Array()
		<!--menu6[0]='<a href="/company/career.php?" class="d_nav">Careers in Real Estate</a>'-->
		menu6[0]='<a href="/images/layout/New_Associate_Presentation.pdf" class="d_nav">Careers in Real Estate</a>'
		menu6[1]='<a href="/company/re_school.php?" class="d_nav">JH Real Estate School</a>'
		menu6[2]='<a href="/company/career_form.php?" class="d_nav">Contact Us</a>'
		menu6[3]='<a href="http://www.era.com/media/teamerapreview/index.html" class="d_nav" target="_blank">Why ERA</a>'
		
		//Contents for menu 7
		var menu7=new Array()
		menu7[0]='<a href="/contact/?" class="d_nav">Contact Form</a>'
		menu7[1]='<a href="/company/career_form.php?" class="d_nav">Contact Careers</a>'
		menu7[2]='<a href="/company/relo_form.php?" class="d_nav">Contact Relocation</a>'

		
		
		var menuwidth='150px' //default menu width
		var menubgcolor='#F5ECC7'  //menu bgcolor
		var menubackground='url(/images/layout/menu_bg.png)'  //menu background
		var disappeardelay=300  //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+';background:'+menubackground+'" 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