var ie4                 = false;
var ie5                 = false;
var ns4                 = false;
var ns6                 = false;
var mac                 = false;
var running             = false;
var timerId             = null;
var delay               = 500;
var currentMenu         = null;
var previousMenu        = null;
var pageId              = null;
var loaded              = false;
var testing             = false;
var homepage            = false;
var dir_images          = 'images/';
var emailpop            = 'Communication by you via this Site does not establish an attorney-client relationship with Deats Durst Owen & Levy, p.l.l.c. or any individual attorney at Deats Durst Owen & Levy, p.l.l.c. Therefore, Deats Durst Owen & Levy, p.l.l.c.  and its attorneys cannot agree to maintain the confidentiality of communications sent through this Site. Please do not send any information about your legal problem. Attorney\'s professional obligations require that before accepting any new client or new matter, the attorney must determine whether there are any actual or potential conflicts with any existing or former clients. If you wish to inquire about becoming a client of Deats Durst Owen & Levy, p.l.l.c., please request a personal interview. We will not consider any e-mail regarding new client representation other than a request for a personal interview.  Transmitted messages are not confidential and are not protected by the attorney-client relationship. No attorney-client relationship is created by sending an e-mail or message using this Site. You do not become the client of Deats Durst Owen & Levy, p.l.l.c. by sending an e-mail or sending a comment using this page of the Site or by sending an email directly to any of our individual attorneys at Deats Durst Owen & Levy, p.l.l.c.';

if(document.layers){origWidth=innerWidth;origHeight=innerHeight;onresize=function(){if(innerWidth!=origWidth||innerHeight!=origHeight)location.reload()}}else{onresize=function(){window.location.reload();}}
function Popup(title,filename,w,h,scroll,resizable,menubar){if (title == ''){ title = 'popup'; }if (menubar == 'menubar'){ menubar = 'yes'; }else{ menubar = 'no'; }if (scroll == 'scroll'){ scroll = 'yes'; }else{ scroll = 'no'; }if (resizable == 'lock'){ resizable = 'no'; }else{ resizable = 'yes'; }winOptions = eval("'width="+w+",height="+h+",toolbar=no,location=no,directories=no,status=no,menubar="+menubar+",scrollbars="+scroll+",resizable="+resizable+",copyhistory=no'");window.open(filename,title,winOptions);return;}
function safemail(name,domain,display,this_class) {displayed = (typeof(display) == "undefined") ? name+"@"+domain : display;displayed_class = (typeof(this_class) == "undefined") ? '' : 'class="'+this_class+'"';document.write('<a href=mailto:'+name+'@'+domain+displayed_class+'>'+displayed+'</a>');}
function safemail_disc(name,domain) {document.write(name+'@'+domain);}
function disclaimer (name,domain) {
  alert('Communication by you via this Site does not establish an attorney-client relationship with Deats Durst Owen & Levy, p.l.l.c. or any individual attorney at Deats Durst Owen & Levy, p.l.l.c. Therefore, Deats Durst Owen & Levy, p.l.l.c.  and its attorneys cannot agree to maintain the confidentiality of communications sent through this Site. Please do not send any information about your legal problem. Attorney\'s professional obligations require that before accepting any new client or new matter, the attorney must determine whether there are any actual or potential conflicts with any existing or former clients. If you wish to inquire about becoming a client of Deats Durst Owen & Levy, p.l.l.c., please request a personal interview. We will not consider any e-mail regarding new client representation other than a request for a personal interview.  Transmitted messages are not confidential and are not protected by the attorney-client relationship. No attorney-client relationship is created by sending an e-mail or message using this Site. You do not become the client of Deats Durst Owen & Levy, p.l.l.c.  by sending an e-mail or sending a comment using this page of the Site or by sending an email directly to any of our individual attorneys at Deats Durst Owen & Levy, p.l.l.c.');
  window.location.href = 'mailto:'+name+"@"+domain;
}
//////////////////////////
//////////////////////////
function Init(id) {
  SetBrowser();
  LoadImages();
  pageId = id;
  loaded = true;
}
function SetBrowser() {
  agent = navigator.userAgent.toLowerCase();
  mac   = (agent.indexOf("mac")!=-1);
  ie4   = (document.all && !document.getElementById) ? true : false;
  ie5   = (document.all && document.getElementById)  ? true : false;
  ns4   = (document.layers)                          ? true : false;
  ns6   = (document.getElementById && !document.all) ? true : false;
  if (testing){ alert("agent: "+agent+"\nmac: "+mac+"\nie4: "+ie4+"\nie5: "+ie5+"\nns4: "+ns4+"\nns6: "+ns6+"\n"); }
}
function LoadImages() {
  var num_images = 6;
  NavOff = new Array(num_images);
  for (var i=0; i<num_images; i++){ NavOff[i] = new Image(); }
  NavOff[0].src = "images/nav_overview_a.gif";
  NavOff[1].src = "images/nav_attorneylist_a.gif";
  NavOff[2].src = "images/nav_practiceareas_a.gif";
  NavOff[3].src = "images/nav_clients_a.gif";
  NavOff[4].src = "images/nav_login_a.gif";
  NavOff[5].src = "images/nav_contact_a.gif";
  
  NavOn = new Array(num_images);
  for (var i=0; i<num_images; i++){ NavOn[i] = new Image(); }
  NavOn[0].src = "images/nav_overview_b.gif";
  NavOn[1].src = "images/nav_attorneylist_b.gif";
  NavOn[2].src = "images/nav_practiceareas_b.gif";
  NavOn[3].src = "images/nav_clients_b.gif";
  NavOn[4].src = "images/nav_login_b.gif";
  NavOn[5].src = "images/nav_contact_b.gif";
}

function Show(id) {
  if (ie4) {
    eval('document.images["nav'+id+'"].src = NavOn[id].src');
  } else if (ns4) {
    eval('document.images["nav'+id+'"].src = NavOn[id].src');
  } else {
    eval('document.getElementById("nav'+id+'").src = NavOn['+id+'].src');
  }
}
function Hide(id) {
  if (id == null) { return; }
  if (ie4) {
    if (id != pageId) { eval('document.images["nav'+id+'"].src = NavOff[id].src'); }
  } else if (ns4) {
    if (id != pageId) { eval('document.images["nav'+id+'"].src = NavOff[id].src'); }
  } else {
    if (id != pageId) { eval('document.getElementById("nav'+id+'").src = NavOff['+id+'].src'); }
  }
}

