$(document).ready(function() { 
	
	// cycle through and create rollovers
	$("#sidebar .rollover").each(function() { 
		
		$(this).mouseover(function(){
			var src = $(this).attr("src").replace("_normal", "_over");
			$(this).attr("src", src);
		}).mouseout(function(){
			var src = $(this).attr("src").replace("_over", "_normal");
			$(this).attr("src", src);
		})
	});	
	
	// go through again, for exapnding menus (no sub menus)
	$("#sidebar #nav .rollover").each(function() { 
		
		$(this).click(function(){
			// expand the menu
			var menu = $(this).parent().parent().find("ul.sub-menu");
			$(menu).slideToggle(500);
		})
	});	
	
	var image = $("#billpay").attr("src");
	$(".map_over").mouseover(function() {

		$("#billpay").attr("src", image.replace("_normal", "_over"));				  
	}).mouseout(function() {
	
		$("#billpay").attr("src", image.replace("_over", "_normal"));
	});
});