<!--
/* Global functions
Printing - printPage
NN4 resize bug - resizeFix
The javascript function printPage() is called from /_gb/includes/footer.asp, 
and it opens a window with content formatted such that it that will fit on a 
standard 8.5x11 sheet of paper when printed.  
*/
var printWin;
function printPage(thePath) {
printWin = window.open(thePath, 'printableWin','width=570,height=400,menubar=yes,toolbar=yes,scrollbars=yes');
printWin.focus();
}
/*
Workaround for a Netscape 4 bug that causes stylesheets to be corrupted when the window is resized.
*/
if (document.layers) {
var widthCheck = window.innerWidth;
var heightCheck = window.innerHeight;
window.onResize = resizeFix;
}
function resizeFix() {
with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
document.location.href = document.location.href;
}}
}
function doClear(theText) {
if (theText.value == theText.defaultValue) {
theText.value = ""
}
}
function findhome(){
document.F1.submit();
}
function findhome2(){
document.F2.submit();
}
function swapPhoto(imgTo){
document.photo.src = document[imgTo].src;
}
function swapPhoto1(imgTo){
document.photo1.src = document[imgTo].src;
}
function swapPhotoX(imgTo){
document.photoX.src = document[imgTo].src;
}
function swapPhotoZ(imgTo){
document.photoZ.src = document[imgTo].src;
}

/***********************************************
* 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]='<table cellpadding=2 cellspacing=0 border=0><tr><td class="subnav">'
menu1[1]='<table cellpadding=0 cellspacing=0 border=0><tr><td class="subnav" nowrap height=18><a href="/buying/" target=_top>Buying Info</a></td></tr>'
menu1[2]='<tr><td class="subnav" nowrap height=18><a href="/thirdparty/search.asp" target=_top>Find A Home</a></td></tr>'
menu1[3]='<tr><td class="subnav" nowrap height=18><a href="/open_house.asp" target=_top>Open Houses</a></td></tr>'
menu1[4]='<tr><td class="subnav" nowrap height=18><a href="/buying/buyers_guide.asp" target=_top>Buyer&#8217;s Guide</a></td></tr></table></td></tr></table>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<table cellpadding=2 cellspacing=0 border=0><tr><td class="subnav">'
menu2[1]='<table cellpadding=0 cellspacing=0 border=0><tr><td class="subnav" nowrap height=18><a href="/selling/" target=_top>Selling Info</a></td></tr>'
menu2[2]='<tr><td class="subnav" nowrap height=18><a href="/selling/home_worth.asp" target=_top>What Is My Home Worth?</a></td></tr>'
menu2[3]='<tr><td class="subnav" nowrap height=18><a href="/selling/sellers_guide.asp" target=_top>Seller&#8217;s Guide</a></td></tr></table></td></tr></table>'


//Contents for menu 2, and so on
var menu3=new Array()
menu3[0]='<table cellpadding=2 cellspacing=0 border=0><tr><td class="subnav">'
menu3[1]='<table cellpadding=0 cellspacing=0 border=0><tr><td class="subnav" nowrap height=18><a href="/financing/" target=_top>Financing Info</a></td></tr>'
menu3[2]='<tr><td class="subnav" nowrap height=18><a href="/financing/loanapplication.asp" target=_top>Quick Loan Quote</a></td></tr>'
menu3[3]='<tr><td class="subnav" nowrap height=18><a href="/financing/mortgage_center.asp">About Bank of America</a></td></tr>'
menu3[4]='<tr><td class="subnav" nowrap height=18><a href="/images/augusta_financial.pdf" target=_blank>About Augusta Financial</a></td></tr></table>'


//Contents for menu 2, and so on
var menu4=new Array()
menu4[0]='<table cellpadding=2 cellspacing=0 border=0><tr><td class="subnav">'
menu4[1]='<table cellpadding=0 cellspacing=0 border=0><tr><td class="subnav" nowrap height=18><a href="/relocating/" target=_top>Relocating Info</a></td></tr>'
menu4[2]='<tr><td class="subnav" nowrap height=18><a href="/relocating/relocatingtip.asp" target=_top>Relocation Kit</a></td></tr>'
menu4[3]='<tr><td class="subnav" nowrap height=18><a href="/local_info.asp" target=_top>Community Info</a></td></tr>'
menu4[4]='<tr><td class="subnav" nowrap height=18><a href="/school_info.asp" target=_top>School Info</a></td></tr></table></td></tr></table>'


//Contents for menu 2, and so on
var menu5=new Array()
menu5[0]='<table cellpadding=2 cellspacing=0 border=0><tr><td class="subnav">'
menu5[1]='<table cellpadding=0 cellspacing=0 border=0><tr><td class="subnav" nowrap height=18><a href="/about/agents.asp" target=_top>Meet Our Executives</a></td></tr>'
menu5[2]='<tr><td class="subnav" nowrap height=18><a href="/about_us.asp" target=_top>About Realty Executives</a></td></tr>'
menu5[3]='<tr><td class="subnav" nowrap height=18><a href="/about/offices.asp" target=_top>Office Locations</a></td></tr>'
menu5[4]='<tr><td class="subnav" nowrap height=18><a href="/careers.asp" target=_top>Join Our Team</a></td></tr></table></td></tr></table>'

//Contents for menu 2, and so on
var menu6=new Array()
menu6[0]='<table cellpadding=2 cellspacing=0 border=0><tr><td class="subnav">'
menu6[1]='<table cellpadding=0 cellspacing=0 border=0><tr><td class="subnav" nowrap height=18><a href="/contact_us.asp" target=_top>Contact Us</a></td></tr>'
menu6[2]='<tr><td class="subnav" nowrap height=18><a href="/about/offices.asp" target=_top>Office Locations</a></td></tr></table></td></tr></table>'


var menuwidth='' //default menu width
var menubgcolor=''  //menu bgcolor
var disappeardelay=250  //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;z-index:101;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=-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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
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
//-->