$(document).ready(function(){
	$('ul.nav').find('li.actv').next('li').addClass('next');
	
	$('ul.nav li').hover(
		function(){
			$(this).next('li').addClass('next');
		},
		function(){
			if($(this).attr('class') != 'actv')
			{
				$(this).next('li').removeClass('next');
			}
		}
	);
	
	$('.btn_get_started').hover(
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_get_started_actv.gif');
		},
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_get_started.gif');
		}
	);
	$('.btn_get_started_small').hover(
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_get_started_small_actv.gif');
		},
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_get_started_small.gif');
		}
	);
	$('.btn_contact_me_small').hover(
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_contact_me_small_actv.gif');
		},
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_contact_me_small.gif');
		}
	);
	$('.btn_send').hover(
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_send_actv.gif');
		},
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_send.gif');
		}
	);
	$('.btn_schedule').hover(
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_schedulenow_actv.gif');
		},
		function(){
			$(this).attr('src', 'http://vivopools.com/images/btn_schedulenow.gif');
		}
	);
	
	/* Schedule Form */
	$('#fname').focus(function(){
		if($(this).attr('value') == 'First Name'){$(this).attr('value', '');}
	});
	$('#fname').blur(function(){
		if($(this).attr('value') == ''){$(this).attr('value', 'First Name');}
	});
	$('#lname').focus(function(){
		if($(this).attr('value') == 'Last Name'){$(this).attr('value', '');}
	});
	$('#lname').blur(function(){
		if($(this).attr('value') == ''){$(this).attr('value', 'Last Name');}
	});
	$('#zip').focus(function(){
		if($(this).attr('value') == 'Zip Code'){$(this).attr('value', '');}
	});
	$('#zip').blur(function(){
		if($(this).attr('value') == ''){$(this).attr('value', 'Zip Code');}
	});
	$('#email').focus(function(){
		if($(this).attr('value') == 'Email'){$(this).attr('value', '');}
	});
	$('#email').blur(function(){
		if($(this).attr('value') == ''){$(this).attr('value', 'Email');}
	});
	$('#comments').focus(function(){
		if($(this).attr('value') == 'Comments'){$(this).attr('value', '');}
	});
	$('#comments').blur(function(){
		if($(this).attr('value') == ''){$(this).attr('value', 'Comments');}
	});
	
	/* Ask Form */
	$('#name').focus(function(){
		if($(this).attr('value') == 'Name'){$(this).attr('value', '');}
	});
	$('#name').blur(function(){
		if($(this).attr('value') == ''){$(this).attr('value', 'Name');}
	});
	$('#email').focus(function(){
		if($(this).attr('value') == 'Email Address'){$(this).attr('value', '');}
	});
	$('#email').blur(function(){
		if($(this).attr('value') == ''){$(this).attr('value', 'Email Address');}
	});
	$('#question').focus(function(){
		if($(this).attr('value') == 'Your Question'){$(this).attr('value', '');}
	});
	$('#question').blur(function(){
		if($(this).attr('value') == ''){$(this).attr('value', 'Your Question');}
	});
});
