	$(document).ready(function() {
		//display first product on initial load 
		document.getElementById("default_info").style.display = "block"
		
		//hide all category content divs and show the correct one
		$(".rollover").hover(function() {
			$("#category_content div").hide();
			document.getElementById(this.id+"_info").style.display = "block";
		})
		
		//expand subnav area and change class on link to show minus
		$(".rollover").click(function() {
			if(document.getElementById("sub_nav_"+this.id) != null)	{
				
				//if nav is already open, close
				if($(this).hasClass("rollover_selected")){
					$(this).removeClass("rollover_selected");
					$("#sub_nav_"+this.id).hide();
					return;
				}
				
				//hide all other subnav blocks
				$("#category_navigation ul").not("#sub_nav_"+this.id).hide();
				
				//remove selected class from all nav
				$("a.rollover").each(function(i){
					$(this).removeClass("rollover_selected");
				});
				
				//toggle visibility on subnav
				$("#sub_nav_"+this.id).toggle();
				
			
				//change class to swith plus and minus icon
				$(this).toggleClass("rollover_selected");

			}
		})
		
		//hide all category content divs and show the correct one for subnav
		$(".sub_nav a").hover(function() {
			$("#category_content div").hide();
			document.getElementById(this.id+"_info").style.display = "block";
		})
		
	});
