// JavaScript Document


<!--

if (document.images)
{
	var home_off = new Image()
	home_off.src = "images/home_off.gif"
	var offices_off = new Image()
	offices_off.src = "images/offices_off.gif"
	var physicians_off = new Image()
	physicians_off.src = "images/physicians_off.gif"
	var ent_off = new Image()
	ent_off.src = "images/ent_off.gif"
	var fps_off = new Image()
	fps_off.src = "images/fps_off.gif"
	var allergy_off = new Image()
	allergy_off.src = "images/allergy_off.gif"
	
	var audiology_off = new Image()
	audiology_off.src = "images/audiology_off.gif"
	var speech_off = new Image()
	speech_off.src = "images/speech_off.gif"
	
	
	var insurance_off = new Image()
	insurance_off.src = "images/insurance_off.gif"
	var affiliations_off = new Image()
	affiliations_off.src = "images/affiliations_off.gif"
	var patients_off = new Image()
	patients_off.src = "images/patients_off.gif"

	var home_on = new Image()
	home_on.src = "images/home_on.gif"
	var offices_on = new Image()
	offices_on.src = "images/offices_on.gif"
	var physicians_on = new Image()
	physicians_on.src = "images/physicians_on.gif"
	var ent_on = new Image()
	ent_on.src = "images/ent_on.gif"
	var fps_on = new Image()
	fps_on.src = "images/fps_on.gif"
	var allergy_on = new Image()
	allergy_on.src = "images/allergy_on.gif"
	
	
	
	var audiology_on = new Image()
	audiology_on.src = "images/audiology_on.gif"
	var speech_on = new Image()
	speech_on.src = "images/speech_on.gif"
	
	var insurance_on = new Image()
	insurance_on.src = "images/insurance_on.gif"
	var affiliations_on = new Image()
	affiliations_on.src = "images/affiliations_on.gif"
	var patients_on = new Image()
	patients_on.src = "images/patients_on.gif"
}

var isMenuAct = false; // the menu is not active yet

function actMenuItem(img1, img2) 
{
  isMenuAct = true // the menu is now active
  act(img1)
  inact(img2)
}

function inactMenuItem(img1, img2) 
{
  isMenuAct = false // the menu is no longer active
  if (document.images) {
    inact(img1)
    timerID = setTimeout('if (!isMenuAct) act("' + img2 + '")', 50)
  }
}

function act(imgName) 
{
  if (document.images) 
    document[imgName].src = eval(imgName + '_on.src')
}

function inact(imgName) 
{
  if (document.images)
    document[imgName].src = eval(imgName + '_off.src')
}

//-->
