


function courseLinks()	{
	
	/* check the browser is capable of recognising the DOM objects
	   we need to implement the script - otherwise return false and allow the normal link to be executed */
	   
	if(!document.getElementsByTagName) return false;
	if(!document.getElementById) return false;
	if(!document.getElementById("availableCourses")) return false;
	
	
	/* get the reference to the availableCourses object and then create an array 
	   of all the <a> tags found in the array. To each tag assign a function to
	   the onmouseover and onmouseout events - which calls the swapEnquireBullet and restoreEnquireBullet functions. */	
	
	var menu = document.getElementById("availableCourses");
	var menulinks = menu.getElementsByTagName("a");
	
		for(i = 0; i < menulinks.length; i++) {
		
			
			menulinks[i].onmouseover = function() {
			
					  return swapEnquireBullet(this);		
			}
			
			
			menulinks[i].onmouseout = function() {
			
					 return  restoreEnquireBullet(this)		
				
			}
			
			
			
		}
}


function swapEnquireBullet(thisImage)	{

			thisImage.childNodes[0].src = "images/enquire_on.gif";
			
						
}


function restoreEnquireBullet(thisImage)	{
	

			thisImage.childNodes[0].src = "images/enquire.gif";
			
		
}