
//for stylesheet
var w = (navigator.platform=="Win32" && navigator.appName=="Microsoft Internet Explorer") ? "ie_style.css" : "nn_style.css";
document.write('<link rel="STYLESHEET" type="text/css" href="../stylesheet/' + w + '">');

//Email Magic
function proceed(by)	{
BY = /^(.+)\*(.+)$/;
var launch = by.replace(BY,"mailto:$1@$2");
window.location = launch;
}
//hide menu
function show( id )
	{
	document.getElementById(id).style.display = 'block';
}
function hide( id )
	{
	document.getElementById(id).style.display = 'none';
}
//layers support file
  
menuTimeOut = 1000; //time in milliseconds
iamloaded = false;

var v = navigator.appVersion;
var a = navigator.appName;
var NN2 = false;
var NN3 = false;
var NN4 = false;
var NN6 = false;
var IE2 = false;
var IE3 = false;
var IE4 = false;
if (a.indexOf('Netscape')> -1 )
{
	if (v.indexOf('2')> -1)
	{
		NN2 = true;
	} else if (v.indexOf('3')> -1)
	{
		NN3 = true;
	} else if (v.indexOf('4')> -1 && document.layers)
	{
		NN4 = true;
	} else 
	{
		NN6 = true;
	}

} else



{
	if (v.indexOf('4')> -1 && document.all)	{
		IE4 = true;	
	} 
}

var menuOK = (NN4 | IE4 | NN6);

function imgobj(on,off)
{
    this.on = on;
    this.off = off;
}
//src references and preload images
	var b_img = new Array();
	b_img[0] = new 	imgobj("images/redo_on.gif","images/redo_off.gif");



	    redo_on = new Image();
        redo_on.src = b_img[0].on;
        redo_off = new Image();
        redo_off.src = b_img[0].off;

function styleRef(layerID, nestRef) {
	if(NN4) {
		if(nestRef) {
			return document.layers[nestRef].document.layers[layerID];
		} else {
			return document.layers[layerID];
		}
	} else if(IE4) {
		return document.all[layerID].style;
	} else if(NN6){
		return document.getElementById(layerID).style;	
	}
}

// returns a reference to an image object on a layer.

function imageRef(layerID, imgName, nestRef) {
	if(NN4) {
		if(nestRef) {
			return document.layers[nestRef].document.layers[layerID].document.images[imgName];
		} else {
			return document.layers[layerID].document.images[imgName];
		}
	} else if(IE4) {
		return document.images[imgName];
	} else if(NN6) { 
		return document.images[imgName];	
	}
}

function killMenu(which) 
{
	if (typeof(aTimer)!='undefined')
	{
		//alert(typeof(aTimer));
		clearTimeout(aTimer);
	}
	imageRoll(which, 'off');
	if(which == intActiveMenu) {
		// get the list of menu layers
		arMenuList = eval("arMenu" + which + "List");
	
		// loop through the list, hiding all the menu layers
		for(i=0; i<arMenuList.length; i++) {
			strCurrLayer = arMenuList[i];
			styleRef(strCurrLayer).visibility = strHide;
		}
	}
}

function killSub(which)
{
    arMenuList = eval("arMenu" + which + "List");
    // loop through the list, hiding all the submenu layers
    for(i=1; i<arMenuList.length; i++) {
        strCurrLayer = arMenuList[i];
        styleRef(strCurrLayer).visibility = strHide;
    }
}

function doMenu() 
{
    killSub(intActiveMenu);
	intActiveMenu = arguments[0];
	
	 // show the top level menu
	strMenuItem = "menu" + arguments[0];
	styleRef(strMenuItem).visibility = strShow;
	
	// show the lower level menus
	for(i=1; i<arguments.length; i++) {
		strMenuItem += "sub" + arguments[i];
		styleRef(strMenuItem).visibility = strShow;
	}
}

function activateMenu(which) {
    if (intActiveMenu != 0)
    {
        killSub(intActiveMenu);
    }
	if(which != intActiveMenu) {
		if((!which) | (typeof which == "object")) {
			which = intActiveMenu;
		}	
		if(intActiveMenu != 0) {
			killMenu(intActiveMenu);
			if(which == intActiveMenu) {
				intActiveMenu = 0;
				which = 0;
			}
		}		
		if(which != intActiveMenu) {
			styleRef("menu" + which).visibility = strShow;
			intActiveMenu = which;
		}	
	}
}

function init() {
	strHide = "hidden";
	strShow = "visible";

	if(document.all) {
//		strHide = "hidden";
//		strShow = "visible";
		document.body.onclick = activateMenu;
	} else if(document.layers) {
		strHide = "hide";
		strShow = "show";
		window.captureEvents(Event.MOUSEUP);
		window.onmouseup = activateMenu;
	} else {
	//	alert('nn 6');
	}

	strLastCommand = "";
	intActiveMenu = 0;

	arMenu1List = new Array("menu1");
	arMenu2List = new Array("menu2");
	arMenu3List = new Array("menu3");
	arMenu4List = new Array("menu4");
	arMenu5List = new Array("menu5");
	arMenu6List = new Array("menu6");
	iamloaded= true;
}

	

var laston = 0;
//rollover function
function imageRoll(imgref, state)
{

	if (state=='off')
	{
		menuActive=false;
		aTimer = setTimeout('autoKill()', menuTimeOut);
	} else
	{
		menuActive=true;
	}
    if (imgref > 0)
	{
		//submenu rolls are as 1.1, 1.2, 2.1, 2.2 etc
		imgref = imgref.toString();
		menu_idx = imgref.substring(0,imgref.indexOf('.'));
        if (menu_idx<1) //only a menu rollver, not a submenu rollover
        {
            menu_idx = imgref;
            //not currently used
        } else
        {     
		charset = 'ABCDEFGHIJKLMN';
		submenu_idx = imgref.substring(imgref.indexOf('.')+1);
		submenu_name = charset.charAt(submenu_idx-1);           
		imageRef('menu'+menu_idx,submenu_name+menu_idx).src = b_img[0][state];
        }
	}
	return true;
}

//cover function
menuActive = false;
aTimer = 0;

function menuPower(idx,sub)
{
	if (!(menuOK && iamloaded))
	{
		return true;
	}
	imageRoll(idx, 'on');
    	idx = idx.toString();
    	if (idx.indexOf('.')>=0)
    	{
        	idx = idx.substring(0,idx.indexOf('.'));
    	}   
    	if (arguments.length==1)
    	{
        	activateMenu(idx);            
    	} else 
    	{
        	doMenu(idx,sub);
    	}
	menuActive = true;
	return true;
}


function autoKill(idx)
{
	if (!menuActive)
	{ 	
		activateMenu(0);  
        	if (idx != null)
        	{
            		idx = ''+idx;
           		if (idx.indexOf('.')>=0)
            		{
                		idx = idx.substring(0,idx.indexOf('.'));               
                		killSub(idx);
            		}
        	}
	}
}
function menuOut(idx,sub)
{
	if (!(menuOK && iamloaded))
	{
		return true;
	}
	outFunction = 'autoKill('+idx+')';
	aTimer = setTimeout(outFunction, menuTimeOut);           
	menuActive = false;
    	idx = idx.toString();
    	if (idx.indexOf('.')>=0)
    	{
        	imageRoll(idx, 'off');        
    	}    
	return true;
}

// global var below set the goto URL for popup's msds link

var g_URL = "#"


/* -- script - randomize the image on the home page -- */
myPix = new Array("images/p_empath_02.jpg","images/p_empath_02.jpg")
imgCt = myPix.length

function choosePic() {
  if (document.images) {
    randomNum = Math.floor((Math.random() * imgCt))
    document.myPicture.src = myPix[randomNum]
  }
}


/* -- script - pop up function -- */ 

function text(){
url = "02_press_1.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text1(){
url = "../approach/phase_1_project_flow.htm"
window.open(url,'pop','width=580,height=600,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text02(){
url = "02_press_3.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text2(){
url = "02_press_2.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text3(){
url = "../results/customer_satisfaction.htm"
window.open(url,'pop','width=420,height=600,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text4(){
url = "../results/cycle_times.htm"
window.open(url,'pop','width=420,height=600,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text5(){
url = "../results/revenue.htm"
window.open(url,'pop','width=420,height=600,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text6(){
url = "../results/sustainability.htm"
window.open(url,'pop','width=420,height=600,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text7(){
url = "../projects/project_1.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text8(){
url = "../projects/project_2.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text9(){
url = "../projects/project_3.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text10(){
url = "../projects/project_4.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text11(){
url = "../projects/project_5.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text12(){
url = "../approach/02_phase_1.htm"
window.open(url,'pop','width=470,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text13(){
url = "../approach/02_phase_2.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text14(){
url = "../approach/02_phase_3.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text15(){
url = "../challenges/team_based_care.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text16(){
url = "../challenges/metrics_based.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text17(){
url = "../challenges/reduced_cycle.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text18(){
url = "../challenges/loyalty_satisfaction.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text19(){
url = "../challenges/learning_organization.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text20(){
url = "../approach/01_approach_01.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text21(){
url = "../approach/01_approach_02.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text22(){
url = "../approach/01_approach_03.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text23(){
url = "../approach/01_approach_04.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text24(){
url = "../approach/01_approach_05.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text25(){
url = "../approach/01_approach_05.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text26(){
url = "../results/data_points.htm"
window.open(url,'pop','width=580,height=600,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text27(){
url = "../challenges/results.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text28(){
url = "../about_us/request_info.htm"
window.open(url,'pop','width=460,height=586,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text29(){
url = "02_press_01.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text30(){
url = "02_press_02.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text31(){
url = "article_06_m-hammer.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text32(){
url = "article_m-hammer.htm"
window.open(url,'pop','width=420,height=240,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}




function text41(){
url = "kdm_01.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text42(){
url = "kdm_02.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text43(){
url = "kdm_03.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text44(){
url = "kdm_04.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text45(){
url = "kdm_05.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text46(){
url = "kdm_06.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}
function text47(){
url = "kdm_07.htm"
window.open(url,'pop','width=420,height=500,status=yes,resizable=yes,scrollbars=yes,left=50,top=50,alwaysraised=yes,dependent=yes');
}


/* -- 5 script - popup link -- */ 
function popHandler() { location.href = g_URL }

// Pop Up window with any url
function popUp(url){
window.open(url,'pop','width=440,height=500,status=yes,resizable=yes,scrollbars=yes,top=40,left=50');
}


function popUps(url){
window.open(url,'pop','width=420,height=240,status=yes,resizable=yes,scrollbars=yes,top=40,left=50');
}

<!--// EMPATH -->

