$(document).ready(function() {

	//When page loads...
	$("div.tab_content").hide(); //Hide all content
	$("ul#navigation li.first").addClass("selected").show(); //Activate first tab
	$("div.tab_content.first").show(); //Show first tab content

	//On Click Event
	$("ul#navigation li").click(function() {

		$("ul#navigation li").removeClass("selected"); //Remove any "active" class
		$(this).addClass("selected"); //Add "active" class to selected tab
		$("div.tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});


$(document).ready(function(){$.preloadCssImages();}); 



var Newsletter = {
	init : function(){$("h3.newsletter").one('click',this.clickIt);},
	clickIt : function(){
		$("div.newsletter_box").addClass("div.newsletter_box_show").slideDown("slow");
		eval(this.parentNode.childNodes[0].nodeValue);
		$(this).fadeOut('fast')
		}
	};

$(document).ready(function(){Newsletter.init();});

