jQuery(document).ready(function($){

	//note: this will remedy margin problems that would occur in categories that hide breadcrumbs by replacing the value of the CRUMBS tag, rather than using css to hide the containing DOM node.
	try {
		if ( $('#slb_bread_crumbs').text().replace(/\s*/,'') === '' ) {
			$('#slb_bread_crumbs').hide();
		}
	}
	catch(e){}

	$('#top_nav_menu img').hover(
		function(event){
			event.stopPropagation();
			var nonhover_img = $(this).attr('src');
			var hover_img = nonhover_img.replace(new RegExp('/normal/'), '/hover/');
			$(this).attr('src', hover_img);
		},
		function(event){
			event.stopPropagation();
			var hover_img = $(this).attr('src');
			var nonhover_img = hover_img.replace(new RegExp('/hover/'), '/normal/');
			$(this).attr('src', nonhover_img);
		}
	);
});
