$(document).ready(function() {

/*
	$("a.more-link").click(function () { 
       $(this).css("background", "-webkit-gradient(linear, left top, left bottom, from(#8e8e8e), to(#bdbdbd), color-stop(0, #f7f7f7), color-stop(0.05, #8e8e8e))");
      
    });
*/

        // Comment Validation
    
    $("#commentform").validate({
    	errorPlacement: function(error, element) {
    		// None
    	},
    	highlight: function(element, errorClass) {
    		$(element).css({'backgroundColor' : '#f7c8c8' });
    	},
    	unhighlight: function(element, errorClass) {
    		$(element).css({'backgroundColor' : 'white' });
    	}
    });

	// Comment placeholders
	
	$('#author').focus(function(){
		if ($(this).val() =='Name') {
			$(this).val('');
			
		}
	});
  
	$('#author').blur(function(){
		if($(this).val() == '') {
			$(this).val('Name');
		}
	});
	
	
	$('#email').focus(function(){
		if ($(this).val() =='Email') {
			$(this).val('');
	
		}
	});
  
	$('#email').blur(function(){
		if($(this).val() == '') {
			$(this).val('Email');
		}
	});

	$('#url').focus(function(){
		if ($(this).val() =='Website') {
			$(this).val('');
			
		}
	});
  
	$('#url').blur(function(){
		if($(this).val() == '') {
			$(this).val('Website');
		}
	});
				
});
