$(document).ready(function(){
	
	$('form .newsletter-input input.first').focus(function() {
   					 $('.value.first').html("").addClass('focus');
				
	});
	$('form .newsletter-input input.first').focusout(function() {
   					var checkinput = $(this).attr('value');
					if(checkinput == ''){
						 $('.value.first').html("First Name");
						 
					}
					else {
						 $('.value.first').html("");	
					}
	});
	$('form .newsletter-input input.last').focus(function() {
   					 $('.value.last').html("").addClass('focus');
				
	});
	$('form .newsletter-input input.last').focusout(function() {
   					var checkinput = $(this).attr('value');
					if(checkinput == ''){
						 $('.value.last').html("Last Name");
						 
					}
					else {
						 $('.value.last').html("");	
					}
	});
	$('form .newsletter-input input.email').focus(function() {
   					 $('.value.email').html("").addClass('focus');
				
	});
	$('form .newsletter-input input.email').focusout(function() {
   					var checkinput = $(this).attr('value');
					if(checkinput == ''){
						 $('.value.email').html("Email Address");
						 
					}
					else {
						 $('.value.email').html("");	
					}
	});
	var pageHeight = $('#page-content.inner').height();
	$('#page-content.inner .pageinner-right').height(pageHeight);	
	
	
	$('input[type="text"]').addClass('textbox');
	$('textarea').addClass('textarea');
	$('select').addClass('select');
	$('input[type="submit"], input[type="button"]').addClass('submit');
	
	var sidebarHeight = $('#sidebar').height();
	$('.inner #webpage-content').css('min-height',sidebarHeight);
	
	var postlistlink = $('.post-list .post-body a').html();
	if (postlistlink =="Read more"){
		$('.post-list .post-body a').wrap('<div class="more"/>');	
	}
	else {
		$('.post-list .post-body div').removeClass('more');	
	}
	
	$('.post-list .post-body div.links div').removeClass('more');	
	
	
});
