jQuery(document).ready(function(){
	
	// Lightbox
	$(function() {
		$("#centerCol a").lightbox();
		$("#pixbottom a").lightbox();
	});
	
	// Hide/Show Specifications
	$("div.callback").addClass("switchOff").click(function() {
		if($(this).is(".switchOff")) {
			$(this).next().slideDown("slow", function() { 
				$(this).prev().removeClass("switchOff").addClass("switchOn");
			});
		} 
		if ($(this).is(".switchOn")) {
			$(this).next().slideUp("slow", function() { 
				$(this).prev().removeClass("switchOn").addClass("switchOff");
			});
		}
	}).next().hide();
	
	
//Subnav Events
        
		$("#navigation ul li a.realwood-a").hover(function() {
			   $("#wood-dropdown").stop(true, true).slideToggle('medium'); },
			   function() {
			   $("#wood-dropdown").stop(true, true).slideToggle('medium'); 
		});
		
		$("#navigation ul li a.carpets-rugs-a").hover(function() {
			   $("#carpet-dropdown").stop(true, true).slideToggle('medium'); },
			   function() {
			   $("#carpet-dropdown").stop(true, true).slideToggle('medium'); 
		});
		
		$("#wood-dropdown").hover(function() {
			   $(this).stop(true, true).show(); },
		function() {
			   $(this).stop(true,true).slideUp('medium');
			   
		});
		
		$("#carpet-dropdown").hover(function() {
			   $(this).stop(true, true).show(); },
		function() {
			   $(this).stop(true,true).slideUp('medium');
			                      
	});	

});

