$(document).ready(function() {
			$("#sideEmailSent").hide(); 
			
			// Getting the columns to get the same height
			var contentH = $('.LeftColumnMid').height();
			$('.sideBarMid').height(contentH+41);

			// Preloading some hover images. ugly, but I was too lazy for sprites w/ all those transparent PNG's.
			jQuery.preloadImages = function()
			{
			  for(var i = 0; i<arguments.length; i++)
			  {
			    jQuery("<img>").attr("src", arguments[i]);
			  }
			}

			$.preloadImages("http://blog.thewwqgame.com/wp-content/themes/wwq/images/commentButtonDown.png", "http://blog.thewwqgame.com/wp-content/themes/wwq/images/commentButtonHover.png", "http://blog.thewwqgame.com/wp-content/themes/wwq/images/sideEmailDown.png", "http://blog.thewwqgame.com/wp-content/themes/wwq/images/sideEmailHover.png", "http://blog.thewwqgame.com/wp-content/themes/wwq/images/sideEmailSent.png", "http://blog.thewwqgame.com/wp-content/themes/wwq/images/rss_on.png", "http://blog.thewwqgame.com/wp-content/themes/wwq/images/twitter_on.png");
			// Done preloading...
});

$(function() {  
$("#rightcolumn p").dropShadow({left: -41, top: -1, opacity: 1.0, blur: 0, color: "black"});
$("#rightcolumn h3").dropShadow({left: -41, top: -1, opacity: 1.0, blur: 0, color: "black"});
$("#rightcolumn span.black").dropShadow({left: -1, top: -1, opacity: 1.0, blur: 0, color: "black"});
$("#rightcolumn li a").dropShadow({left: -1, top: -1, opacity: 1.0, blur: 0, color: "black"});
$("#topStrip li a span").dropShadow({left: -1, top: -1, opacity: 1.0, blur: 0, color: "black"});
//$("#footer p").dropShadow({left: -1, top: -1, opacity: 1.0, blur: 0, color: "black"});
//$("#footer p a").dropShadow({left: -61, top: 21, opacity: 1.0, blur: 0, color: "black"});
$("#sendnotify span").dropShadow({left: -1, top: -1, opacity: 1.0, blur: 0, color: "black"});
$(".commentButton span").dropShadow({left: -1, top: -1, opacity: 1.0, blur: 0, color: "black"});
$(".thanks").removeShadow();
 });

$(document).ready(function() {
	
	$(".getNotified").mouseover(function() {
		$("#sideEmail").css("backgroundImage","url(http://blog.thewwqgame.com/wp-content/themes/wwq/images/sideEmailHover.png)").mouseout(function() {
			$("#sideEmail").css("backgroundImage","url(http://blog.thewwqgame.com/wp-content/themes/wwq/images/sideEmail.png)");
		});
	});
	$("#sideEmail input").focus(function() {
		$(this).val('');
	});
	$("#commentform input").focus(function() {
		$(this).val('');
	});
	$("#comment").focus(function() {
	  var commentFocus = $("textarea#comment").val();  
		if (commentFocus == "Your Comment") {
			$(this).val('');
		}
	});
	
	
	
	$("#contactForm input").focus(function() {
		$(this).val('');
	});
	$("#message").focus(function() {
		$(this).val('');
	});
	$("#message").focus(function() {
	  var commentFocus = $("textarea#message").val();  
		if (commentFocus == "Your Message") {
			$(this).val('');
		}
	});
	
	$(".commentButton").mouseover(function() {
		$(".commentButton").css("backgroundImage","url(http://blog.thewwqgame.com/wp-content/themes/wwq/images/commentButtonHover.png)").mouseout(function() {
			$(".commentButton").css("backgroundImage","url(http://blog.thewwqgame.com/wp-content/themes/wwq/images/commentButton.png)");
		});
	});
	$(".commentButton").click(function() {
		$(".commentButton").css("backgroundImage","url(http://blog.thewwqgame.com/wp-content/themes/wwq/images/commentButtonDown.png)"); return false;
	});

	$("#goToComment").click(function() {
		var targetOffset = $('#addComment').offset().top;
		$('html, body').animate({scrollTop: targetOffset}, 1200, 'easeOutBack'); return false;
	});
});