
var blnIsMac = false
var strPlatform = window.navigator.platform.toLowerCase()



var strLastMenu = "mnu_home"

function showMenu(strMenu) {
	if (!blnIsMac) {

		var objLayer
	
		hideMenu(strLastMenu)
	
		if (document.all) {
			objLayer = document.all[strMenu]
		}
		else if (document.getElementById) {
			objLayer = document.getElementById(strMenu)
		}
		else if (document.layers) {
			objLayer = getLayer(strMenu)
		}
		
//			for (var i=0; i<document.all.length; i++) {
//			o = document.all(i)
//			if (o.name == 'ctl00$mainContent$offices') {
//			if (o.style) o.style.visibility = 'hidden';
//			}
//		}
	
		// show
		if (document.all) {
			objLayer.style.visibility = "visible";
		}
		else if (document.getElementById) {
			objLayer.style.visibility = "visible"
		}
		else if (document.layers) {
			if (parseFloat(navigator.appVersion) >= 4.08) {
				// move to position relative to image
				objImage = getImage("l_" + strMenu.substring(3, strMenu.length))
				intTop = getImagePageTop(objImage)
				intLeft = getImagePageLeft(objImage)
				objLayer.top = intTop + objImage.height
				objLayer.left = intLeft - 1
				
				// show
				objLayer.visibility = "show"
			}
		}
	
		strLastMenu = strMenu
	}
}

function hideMenu(strMenu) {

	if (!blnIsMac) {

		var objLayer
		var isIn = false
		var i = 0
		var blnIsFromFlash = false
		
		if (strMenu == "hideFromFlash")
			blnIsFromFlash = true
	
		if (strMenu == "" || blnIsFromFlash)
			strMenu = strLastMenu
	
		if (document.all) {
			objLayer = document.all[strMenu]
		}
		else if (document.getElementById) {
			objLayer = document.getElementById(strMenu)
		}
		else if (document.layers) {
			objLayer = getLayer(strMenu)
		}
	
		// hide
		if (document.all) {
		
//			for (var i=0; i<document.all.length; i++) {
//			o = document.all(i)
//			if (o.name == 'ctl00$mainContent$offices') {
//			if (o.style) o.style.visibility = 'visible';
//			}
//		}
			if (!blnIsFromFlash) {
				while (!isIn && i < document.all[strMenu].all.length) {
					if (window.event.toElement == document.all[strMenu].all[i])
						isIn = true
					i++
				}
				if (!isIn) {
					document.all[strMenu].style.visibility = "hidden"
				}
			}
			else {
				document.all[strMenu].style.visibility = "hidden"
			}
		}
		else if (document.getElementById) {
			objLayer.style.visibility = "hidden"
		}
		else if (document.layers) {
			if (parseFloat(navigator.appVersion) >= 4.08) {
				objLayer.visibility = "hide"
			}
		}
	}
}

// Determine browser.

var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
                parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;

//-----------------------------------------------------------------------------
// Layer utilities.
//-----------------------------------------------------------------------------

function getLayer(name) {

  if (document.layers)
    return findLayer(name, document);
  if (isMinIE4)
    return eval('document.all.' + name);
  return null;
}

function findLayer(name, doc) {

  var i, layer;

  for (i = 0; i < doc.layers.length; i++) {
    layer = doc.layers[i];
    if (layer.name == name)
      return layer;
    if (layer.document.layers.length > 0)
      if ((layer = findLayer(name, layer.document)) != null)
        return layer;
  }
  return null;
}
function email()
		{
			window.open("/email.aspx", "Email", "width=450,height=430,scrollbars");
		}
		function checkEmail()
		{    
		   return confirm('Please read and accept this Disclaimer before sending your email.\nWhile we would like to hear from you, we cannot represent you until we know that doing so will not create a conflict-of-interest. Accordingly, please do not send us any information about any matter that may involve you until an attorney-client relationship has been established. When you receive an engagement letter from a lawyer, you will be our client, and we may exchange information freely. Additionally, information sent to this site or any Baker & Daniels attorney may be intercepted by third parties, and we will not be held responsible for any such interception.');
		}
		
function email(location)
{
	var l = location.replace(/\*26/gi, '%26').replace(/\*3F/gi, '%3F').replace(/\*3D/gi, '%3D');
	window.open(l, "Email", "width=450,height=430,scrollbars");
}