//Declare a counter (c) and an array (imgSrc) to cycle the images in the banner

function vachover() {						//Processes the change in appearance of the 'Vacancies' Button, when the mouse hovers over
var strURL=document.URL;				 //Check the location of the main page being loaded
var vac=document.getElementById("vac");					 //The list element containing 'Vacancies' has an ID of "vac"  
  if (strURL.match("CUGG/COSHH")==null)					 
    {  
      vac.style.backgroundImage="url(glossyback2b.gif)";
    }			//was ...2p.gif
    else								 			  //The password protected page is being displayed, so the path to the button images is more complex
    {
      vac.style.backgroundImage="url(../../glossyback2b.gif)";
    }
}


function vacout() {						  //Processes the change in appearance of the 'Vacancies' Button, when the mouse leaves
var strURL=document.URL;				 //Check the location of the main page being loaded
var vac=document.getElementById("vac");					 //The list element containing 'Vacancies' has an ID of "vac"
  if (strURL.match("CUGG/COSHH")==null)
    { 
      vac.style.backgroundImage="url(glossybackp.gif)";
		}
		else  										  //The password protected page is being displayed, so the path to the button images is more complex
		{
      vac.style.backgroundImage="url(../../glossybackp.gif)";
		}
}
