
jQuery().ready(function (){
	console.log("READY");				
	var overItems = $("#topLinks A IMG");
	console.log(overItems);
	overItems.each(											 
		function(i){
			$(this).mouseover( function() { showOver(this); } );
			$(this).mouseout( function()  { showOff(this); } );
 	});	
	
	if (tabSection) {
		var tabLoc = "#tab"+ tabSection + " A IMG";
		var activeTab = $(tabLoc);
		
		console.log(activeTab);
		activeTab.attr("src",activeTab.attr("src").replace("off","on"));
		
	}
}
);

function showOver(wImg) {
	wImg.src = wImg.src.replace("off","over");
	
}

function showOff(wImg) {
	wImg.src = wImg.src.replace("over","off");
}
