$(document).ready(function() {
	$('div.signin-form input[type=password]').val('password');
	
	
	$('div.signin-form input.input').each(function() {
		$(this).attr('rel', $(this).val());
		$(this).css('color', '#ccc');
	});
	
	$('div.signin-form input.input').focus(function(event) {
		event.preventDefault();
		$(this).css('color', '#999');
		
		if($(this).val() == $(this).attr('rel')) {
			$(this).val('');
		}	
	});
	
	$('div.signin-form input[type=text]').blur(function(event) {
		event.preventDefault();													
		$(this).css('color', '#ccc');

		if($(this).val() == '' && $(this).attr('type') != 'password') {
			$(this).val($(this).attr('rel'));
		}
	});
	
	
	$('div#article-complete').css('display','none');
	$('a#article-read-more').click(function(event) {
		event.preventDefault();
		if($(this).text() == 'Read more') {
			$('div#article-complete').slideDown(500);
			$(this).text('Read less');
		}
		else {
			$('div#article-complete').slideUp(500);
			$(this).text('Read more');
		}
	});
});
