$(document).ready(function() {

	// Premium Content pulldowns
	$("#premiumContentNav>ul").children("li").hoverIntent(function() {
		$("#premiumContentNav ul ul").hide();
		$(this).children("ul").slideDown(200);
		if (typeof document.body.style.maxHeight == "undefined") {
			$("p.priceSelect select").hide();
		}
	},function(){
		$(this).children("ul").hide();
		if (typeof document.body.style.maxHeight == "undefined") {
			$("p.priceSelect select").show();
		}
	});
	$("#premiumContent").children("li").hoverIntent(function() {
		$("#premiumContent li").removeClass("highlighted");
		$(this).addClass("highlighted");
	},function(){
	});

	$("#newsletterSignUp").click(function() {
		if ($(this).hasClass("off")){
			$(this).removeClass("off");
			$(this).attr("value", "");
		}
	})
	$("#sb_homeProjectsList tr").each(function (){
		$(this).children("td:first").addClass("firstCol");
	});
	$("#projectDatabase tr").each(function (){
		$(this).children("td:first").addClass("firstCol");
	});

	$("#showKey").click(function (e){
		e.preventDefault();
		$(".keyBody").slideDown(200);
		$(this).hide();
		$("#hideKey").show();
	});
	$("#hideKey").click(function (e){
		e.preventDefault();
		$(".keyBody").slideUp(200);
		$(this).hide();
		$("#showKey").show();
	});

});
