

function newsFader()	{
	/* 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("newsFlash")) return false;
	
	
	/* get the reference to the stocknav 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 fadeImage and restoreImage functions. */	
	
	var menu = document.getElementById("newsFlash");
	var menulinks = menu.getElementsByTagName("a");
		for(i = 0; i < menulinks.length; i++) {
		
			menulinks[i].onmouseover = function() {
										

				return fadeNews(this)		
		
			}
			
			
			menulinks[i].onmouseout = function() {
			
				return restoreNews(this)		
					
			}
			
			
			
		}
}


function fadeNews(thisElement)	{

	 	
			
				//alert(thisElement.getAttribute("name"))

			thisElement.firstChild.nodeValue = newsTitle
			thisElement.style.color = "#FFFFFF"
			thisElement.parentNode.style.backgroundImage = "url(images/latestNews_blue.jpg)"			
			
			//alert("url(images/blue_" + thisElement.getAttribute("class") + "_gradient.jpg)")
			
			
			//thisElement.parentNode.style.backgroundImage = "url(images/blue_right_gradient.jpg)"			
			
			
			
			//alert(thisElement.parentNode.nodeName)
}


function restoreNews(thisElement)	{


			thisElement.firstChild.nodeValue = "Latest News"
			thisElement.style.color = "#FFFFFF"
			thisElement.parentNode.style.backgroundImage = "url(images/latestNews_blueSmall.jpg)"			

}
