$(document).ready(function(){
    
    //HoverSwap functionality
	var hoverSwapArray = new Array();
	
	//Add all the image data here
	hoverSwapArray["navigationAlcala"] = "/assets/nav-alcala-";
	hoverSwapArray["navigationPaloVerde"] = "/assets/nav-paloverde-";
	hoverSwapArray["navigationJoin"] = "/assets/nav-registry-";
	hoverSwapArray["navigationAbout"] = "/assets/nav-about-";
  hoverSwapArray["navigationBrokers"] = "/assets/nav-brokers-";
	
	$('.hoverSwap').mouseover(function(){	
		if ($(this).attr('src') != hoverSwapArray[$(this).attr('id')] + 'active.gif')
		{
			$(this).attr('src', hoverSwapArray[$(this).attr('id')] + 'on.gif');
		}
	});
	
	$('.hoverSwap').mouseout(function(){
		if ($(this).attr('src') == hoverSwapArray[$(this).attr('id')] + 'on.gif')
		{
			$(this).attr('src', hoverSwapArray[$(this).attr('id')] + 'off.gif');
		}
	});
	
});