$(document).ready(function() {
	$('#slideshow').nivoSlider({
		pauseTime:6000
	});
	$('.contracted .arrow').live('click', function(){
		$(this).parents('.contracted').addClass('expanded').removeClass('contracted').animate({width:580},'fast');
		
	});
	$('.expanded .arrow').live('click', function(){
		$(this).parents('.expanded').animate({width:101},'fast',function(){
			$(this).addClass('contracted').removeClass('expanded');
		});
	});
});
$(document).ready(function() {
	$('.datepicker').datepicker({
		changeMonth: true,
		changeYear: true,
		yearRange: '-60:+0',
	});
});
$(document).ready(function(){
	
	$('body.home #mc_mv_EMAIL').attr('value', 'email address').focus(function(){
		if($(this).attr('value') == 'email address'){
			$(this).attr('value', '');
		}
		
		$(this).blur(function(){
			if($(this).attr('value') == ''){
				$(this).attr('value','email address');	
			}
		});
		
	});
	
	$('body.home #mc_mv_FNAME').attr('value', 'first name').focus(function(){
		if($(this).attr('value') == 'first name'){
			$(this).attr('value', '');
		}
		
		$(this).blur(function(){
			if($(this).attr('value') == ''){
				$(this).attr('value','first name');	
			}
		});
		
	});
	
	$('body.home #mc_mv_LNAME').attr('value', 'last name').focus(function(){
		if($(this).attr('value') == 'last name'){
			$(this).attr('value', '');
		}
		
		$(this).blur(function(){
			if($(this).attr('value') == ''){
				$(this).attr('value','last name');	
			}
		});
		
	});
	
	$('body.home #mc_signup_form').submit(function(){
		if($('body.home #mc_mv_FNAME').attr('value') == 'first name'){
			$('body.home #mc_mv_FNAME').attr('value', '');	
		}
		if($('body.home #mc_mv_LNAME').attr('value') == 'last name'){
			$('body.home #mc_mv_LNAME').attr('value', '');	
		}
		if($('body.home #mc_mv_EMAIL').attr('value') == 'email address'){
			$('body.home #mc_mv_EMAIL').attr('value', '');	
		}
	});
	
});
