menu_status = new Array(); 
function MM_jumpMenu(targ,selObj,restore){ //v3.0
if (selObj.options[selObj.selectedIndex].value=="0")
{ location.replace("index.asp");
}
  //eval(targ+".location=offices.asp?officeid='"+selObj.options[selObj.selectedIndex].value+"'");
  location.replace("offices.asp?officeid="+selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}
function jumpoffice(targ,selObj,restore){ //v3.0
if (selObj.options[selObj.selectedIndex].value=="0")
{ location.replace("index.asp");
}
  //eval(targ+".location=offices.asp?officeid='"+selObj.options[selObj.selectedIndex].value+"'");
  location.replace("locations.asp?officeid="+selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}

function ChangeLanguage(targ,selObj,restore){ //v3.0
if (selObj.options[selObj.selectedIndex].value=="0")
{ location.replace("index.asp");
}
  //eval(targ+".location=offices.asp?officeid='"+selObj.options[selObj.selectedIndex].value+"'");
  location.replace("newlang.asp?langid="+selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}


function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}
function showmap(officeid)
{ url="gtmaps.asp?officeid=" + officeid 
window.open(url,"map", "width=520,height=330,scrollbars=yes,resizable=no,status=0")

}
function showpdf(targ,selObj,restore)
{ 
 url=selObj.options[selObj.selectedIndex].value;
  if (restore) selObj.selectedIndex=0;
if (selObj.selectedIndex!="0"){
window.open(url,"pdf", "width=700,height=730,scrollbars=yes,resizable=yes;scrollbars=yes,status=0")
}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}