// iMenu v1.0 -- DOM based menu navigation
// Setup and Browser Filtering File
// Approved for use on Advocatehealth.com
// Copyright (c) 2004-2006 Imaginary Landscape, LLC <http://www.imagescape.com/>
// Reuse or edit without permission prohibited
// Developed by: Puna Tannehill
// Revised by: Jake Kronika <jkronika@imagescape.com>
// Last Updated: 2006-09-27

// Global variables
var iMenuPath;

if (iMenuPath == '') {
  iMenuPath = '/system';
}

// Settings for initial look and setup (required values):
var loc = window.location,
    iMenuServer = loc.href.match(/\/\/(dev|www)\./),
    iMenuDomain = 'http://' + loc.hostname,
//    iMenuHomeURI = loc.protocol + '//'
//      + (iMenuServer && iMenuServer[1] ? iMenuServer[1] : 'www')
//      + '.advocatehealth.com',
    iMenuHomeURI = loc.protocol + '//' + loc.hostname + (parseInt(loc.port) != 80 ? ':' + loc.port : ''),
    iMenuScriptURI = iMenuHomeURI + '/etc/js/imenu',
    iMenuArrayURI = (iMenuPath && typeof(iMenuPath) == 'string'
      ? iMenuPath
      : iMenuScriptURI); // AHC-specific
    iMenuSubMenuAdjX = -14,
    iMenuSubMenuAdjY = 4;

/* DO NOT EDIT BELOW HERE */

function iMenuShow() { return false; }
function iMenuHide() { return false; }

function iMenuSniff() {
	if (document.getElementById) {
		var iMUA = navigator.userAgent.toLowerCase();
		var iMAV = navigator.appVersion.toLowerCase();
		if (iMUA.indexOf('opera')!=-1) {
		   var opv = iMUA.split('opera');
			if (parseInt(opv[opv.length-1])>6) { return true; }
		} else if (iMUA.indexOf('gecko')!=-1) { return true;
		} else if (iMUA.indexOf('netscape')!=-1) { return true;
		} else if (iMUA.indexOf('msie')!=-1) {
			if (iMAV.indexOf('windows')!=-1) { return true; }
		}
	} return false;
}

if(iMenuSniff()) {
 var domscr = '<scr'+'ipt type="text/javascript" language="JavaScript1.2" '+
  'src="'+iMenuScriptURI+'/iMenuDOMLib.js" defer><\/scr'+'ipt>'+"\n"+
  '<scr'+'ipt type="text/javascript" language="JavaScript1.2" '+
  'src="'+iMenuArrayURI+'/iMenuArrays.js"><\/scr'+'ipt>'+"\n";
 document.write(domscr);
}