// Navigation for Gallery used Library jQuery to file = library.jquery.js
$(document).ready(function(){

	$("a").each( function() {
		$(this).focus( function() {
			$(this).blur();
		});
	});
	// Initial Category on Left Side
	if($("#navigator-gallery-category").length > 0) {
		$("#navigator-gallery-category dd").hide();  //:not(:first)
		$("#navigator-gallery-category dt a").click(function() {
			$("#navigator-gallery-category dl").removeClass();

			if($(this).hasClass("active")) {
				$(this).parent().next().slideUp(200);
				$(this).removeClass("active");
			} else {
				$("#navigator-gallery-category dt a").removeClass("active");
				$(this).addClass("active");
				$("#navigator-gallery-category dd:visible").slideUp(200);
				$(this).parent().next().slideDown(220);
			}
			return false;
		});

		if ($("#navigator-gallery-category dl.active").length > 0) {
			$("#navigator-gallery-category dl.active a").click();
		} else {
			$("#navigator-gallery-category dt a:first").click(); /* Display first menu on open */
		}
	}
});
