// Menu based on http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html
        
$(document).ready(function(){
			
	$("#nav .dropdown").click(function() { //When trigger is clicked...
				
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.sub_menu").slideDown('fast').show(); //Drop down the subnav on click
		
		$(this).parent().hover(function() {
		}, function(){	
			$(this).parent().find("ul.sub_menu").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
		});
		
		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() { 
			$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
		
});
    



// Twitter integration via http://tweet.seaofclouds.com/
	
		$(document).ready(function(){
            $(".tweet").tweet({
                join_text: "auto",
                avatar_size: null,
                count: 2,
                auto_join_text_default: "I said,",
                auto_join_text_ed: "I",
                auto_join_text_ing: "I was",
                auto_join_text_reply: "I replied to",
                auto_join_text_url: "I was checking out",
                loading_text: "loading tweets..."
            });
        });

		
	
