// This file controls the rollover effects for the main menu navigation buttons.

if (document.images) {
var aboutusoff = new Image()
var aboutuson = new Image()
var servicesoff = new Image()
var serviceson = new Image()
var serviceareasoff = new Image()
var serviceareason = new Image()
var providerinfooff = new Image()
var providerinfoon = new Image()
var educationoff = new Image()
var educationon = new Image()
var careersoff = new Image()
var careerson = new Image()
var specialtyoff = new Image()
var specialtyon = new Image()

aboutusoff.src = '../../images/about_us_off.gif'
aboutuson.src = '../../images/about_us_on.gif'
servicesoff.src = '../../images/services_off.gif'
serviceson.src = '../../images/services_on.gif'
serviceareasoff.src = '../../images/service_areas_off.gif'
serviceareason.src = '../../images/service_areas_on.gif'
providerinfooff.src = '../../images/provider_info_off.gif'
providerinfoon.src = '../../images/provider_info_on.gif'
educationoff.src = '../../images/education_off.gif'
educationon.src = '../../images/education_on.gif'
careersoff.src = '../../images/careers_off.gif'
careerson.src = '../../images/careers_on.gif'
specialtyoff.src = '../../images/specialty_off.gif'
specialtyon.src = '../../images/specialty_on.gif'
}

else  {
  aboutusoff = ""
  aboutuson = ""
  servicesoff = ""
  serviceson = ""
  serviceareasoff = ""
  serviceareason = ""
  providerinfooff.src = ""
  providerinfoon.src = ""
  educationoff.src = ""
  educationon.src = ""
  careersoff.src = ""
  careerson.src = ""
  specialtyoff.src = ""
  specialtyon.src = ""
}

function actButton(img1, img2) {
              act(img1)
              inact(img2)
}
                        
function inactButton(img1, img2) {
              act(img1)
              inact(img2)
}

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')
            }
