jQ(function(){

	/* wrap buttons */
	jQ("a.button").wrap("<div class=\"button_container\"></div>");
	jQ("a.button").after("<div class=\"clear\"></div>");
	jQ('#logo_bar ul li .dropdown').hide();
	jQ("#logo_bar ul li").mouseover(function(){
		jQ(this).find('.dropdown').show();
	});
	jQ("#logo_bar ul li").mouseout(function(){
		jQ('#logo_bar ul li .dropdown').hide();
	});
    jQ("#logo_bar ul li ul li").unbind('mouseout');

	/* generic show/hide */
	jQ('.hidden_content').hide();
	jQ('a.show_content').append("<small>Show</small>");
	jQ('a.show_content').click(function() {
		if (jQ(this).find("small").html() == "Show"){ jQ(this).find("small").html("Hide"); } else { jQ(this).find("small").html("Show"); };
		jQ(this).parents().next("div").slideToggle();
		jQ(this).find("small").toggleClass("showing");
		return false;
	});

	/* open links in new windows */
	jQ('a.new_window').click(function() {
		window.open(this.href);
		return false;
	});

	/* random_quotes */
	var randomQuote = Math.floor(Math.random()*jQ("div#random_quotes > div").size());
	jQ('div#random_quotes div.women_callout_quotes').css("display", "none");
	jQ('div#random_quotes div:eq(' + randomQuote + ')').css("display", "block");

});