$(document).ready(function() {

	$("#nav li").hover(function(){ $(this).addClass("over"); },function(){ $(this).removeClass("over"); });	
	$("ul.dropdown").hover(function(){ $(this).parent().find("a").addClass("over"); },function(){ $(this).parent().find("a").removeClass("over"); });		

	if (jQuery.browser.safari) { 		
			$("ul.dropdown").mouseout(function(){ $(this).parent().find("a").removeClass("over"); });
		}

	$("button").hover(function(){
	 	  $(this).css("background-position", "0 -37px");
	 	},function(){
	 	  $(this).css("background-position", "0 0");
		});

	$("#actions div.col").hover(function(){
	 	  $(this).css("background", "#ffe0ef");
	 	},function(){
	 	  $(this).css("background", "#ffeaf2");
		});
		// 	
		// $("#actions div.col-nl").click( function() {
		// 	$("div#newsletter").show();
		// 	return false;
		// 	});

		$("#actions div.col-friend").click( function() {
			$("div.col-nl").hide();
			$("div#friend").show();
			return false;
			});


	$("form#nl input").focus(function() { if( this.value == this.defaultValue ) { this.value = ""; } }).blur(function() { if( !this.value.length ) { this.value = this.defaultValue; } });
	$("form#taf input#youremail").focus(function() { if( this.value == this.defaultValue ) { this.value = ""; } }).blur(function() { if( !this.value.length ) { this.value = this.defaultValue; } });
	$("form#taf input#friendemail").focus(function() { if( this.value == this.defaultValue ) { this.value = ""; } }).blur(function() { if( !this.value.length ) { this.value = this.defaultValue; } });
	$("form#taf input#yourname").focus(function() { if( this.value == this.defaultValue ) { this.value = ""; } }).blur(function() { if( !this.value.length ) { this.value = this.defaultValue; } });
	$("form#taf input#friendname").focus(function() { if( this.value == this.defaultValue ) { this.value = ""; } }).blur(function() { if( !this.value.length ) { this.value = this.defaultValue; } });
	$("form#taf input#msg").focus(function() { if( this.value == this.defaultValue ) { this.value = ""; } }).blur(function() { if( !this.value.length ) { this.value = this.defaultValue; } });


		
	$("#actions a.close").click( function() {
		$("div#newsletter").hide();
		$("div#ClientValidationSummary").hide();
		$("div.col-nl:hidden").show();
		$(this).parent().hide();
		return false;
		});
	

	$(".stripeMe tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
	$(".stripeMe tr:even").addClass("alt");

}); //ready
