// Moxy's jQuery stuff

// Drawer Sliders:
// Format should be an h3, followed by a Div
//The trailing Div opens and closes upon clicking of the h3
jQuery(document).ready(function(){
	
    jQuery(".accordion div").hide();
    
	jQuery(".accordion h3").click(function(){
		jQuery(this).next("div").slideToggle("slow")
		.siblings("div:visible").slideUp("slow");
		jQuery(this).toggleClass("active");
		jQuery(this).siblings("h3").removeClass("active");
	});

});

// other stuff...

jQuery(document).ready(function(){
    		    		
    		// shelf slider
    	jQuery(".btn-slide").click(function(){
		jQuery("#subscribe-drawer").slideToggle("slow");
		jQuery(this).toggleClass("active"); return false;
	});
    		// close it when the Submit button is clicked
    		jQuery(".scrabble").click(function(){
		jQuery("#subscribe-drawer").slideToggle("slow");
		jQuery(this).toggleClass("active"); return false;
	});
	
		
		jQuery('#container-1').tabs({ fx: { opacity: 'toggle' } });
		jQuery('#container-2').tabs({ fx: { opacity: 'toggle' } });
	
	
	
	//show all links top row 
	jQuery(".show_all_links").click(function(){
	  jQuery(this).hide()
	  jQuery(".show_recent_only").show()
	  jQuery("div#fragment-knowledge li ul.blogroll li:gt(4),div#fragment-innovation li ul.blogroll li:gt(4),div#fragment-lawpractice li ul.blogroll li:gt(4)").slideDown()
	  return false;
	});
	
	//show recent links only top row 
	jQuery(".show_recent_only").click(function(){
	  jQuery(this).hide()
	  jQuery(".show_all_links").show()
	  jQuery("div#fragment-knowledge li ul.blogroll li:gt(4),div#fragment-innovation li ul.blogroll li:gt(4),div#fragment-lawpractice li ul.blogroll li:gt(4)").slideUp()
	  return false;
	});
	
	//show all links row 2 
	jQuery(".show_all_links2").click(function(){
	  jQuery(this).hide()
	  jQuery(".show_recent_only2").show()
	  jQuery("div#fragment-strategy li ul.blogroll li:gt(4),div#fragment-newlawyers li ul.blogroll li:gt(4),div#fragment-technology li ul.blogroll li:gt(4)").slideDown()
	  return false;
	});
	
	//show recent links only row 2 
	jQuery(".show_recent_only2").click(function(){
	  jQuery(this).hide()
	  jQuery(".show_all_links2").show()
	  jQuery("div#fragment-strategy li ul.blogroll li:gt(4),div#fragment-newlawyers li ul.blogroll li:gt(4),div#fragment-technology li ul.blogroll li:gt(4)").slideUp()
	  return false;
	});
	
	// height hack for middle column
		jQuery(".show-frag-butt").click(function(){
		jQuery("#fragment-2 ul").toggleClass("fragment-height"); return false;
    });
    
    
    			
   });
