// JavaScript Document
function changeImage(image,div)
{
	$("#"+div).children('img').attr('src','images/'+image);
}

$(document).ready(function() {

	
	
$("#menu").children('ul#menuGen').children('li').hoverIntent(
											
		
function() { 
	if($(this).children('a').attr('class') != "active")
	{
		
		background=$(this).attr('id')+"-o.gif";		
		$(this).children('a').css("display",'none').fadeIn('fast')
		$(this).children('a').css('background','url(images/'+background+')')
	}
},
			
			
function() { 
	if($(this).children('a').attr('class') != "active")
	{
		background=$(this).attr('id')+".gif";				
		
		$(this).children('a').fadeIn('fast')
		$(this).children('a').css('background','url(images/'+background+')')
	}
}
		
	);



});



sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";			
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");			
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

