$(document).ready(function() {
	$("#s").focus(function(){
		if ($(this).val() == "Search") {
			$(this).val("");
		}
	});
	$("#s").blur(function(){
		if ($(this).val() == "") {
			$(this).val("Search");
		}
	});
	if ($("#splash img").size() > 1) {
		$("#splash").cycle({
			timeout: 6000, // milliseconds between slide transitions (0 to disable auto advance) 
			speed: 1000 // speed of the transition (any valid fx speed value) 
		});
	}
	$("#firstname").focus(function(){
		if ($(this).val() == "First Name") {
			$(this).val("");
		}
	});
	$("#firstname").blur(function(){
		if ($(this).val() == "") {
			$(this).val("First Name");
		}
	});
	$("#lastname").focus(function(){
		if ($(this).val() == "Last Name") {
			$(this).val("");
		}
	});
	$("#lastname").blur(function(){
		if ($(this).val() == "") {
			$(this).val("Last Name");
		}
	});
	$("#streetaddress").focus(function(){
		if ($(this).val() == "Street Address") {
			$(this).val("");
		}
	});
	$("#streetaddress").blur(function(){
		if ($(this).val() == "") {
			$(this).val("Street Address");
		}
	});
	$("#city").focus(function(){
		if ($(this).val() == "City") {
			$(this).val("");
		}
	});
	$("#city").blur(function(){
		if ($(this).val() == "") {
			$(this).val("City");
		}
	});
	$("#state").focus(function(){
		if ($(this).val() == "State") {
			$(this).val("");
		}
	});
	$("#state").blur(function(){
		if ($(this).val() == "") {
			$(this).val("State");
		}
	});
	$("#zipcode").focus(function(){
		if ($(this).val() == "Zip Code") {
			$(this).val("");
		}
	});
	$("#zipcode").blur(function(){
		if ($(this).val() == "") {
			$(this).val("Zip Code");
		}
	});
	$("#phone").focus(function(){
		if ($(this).val() == "Phone") {
			$(this).val("");
		}
	});
	$("#phone").blur(function(){
		if ($(this).val() == "") {
			$(this).val("Phone");
		}
	});
	$("#email").focus(function(){
		if ($(this).val() == "Email") {
			$(this).val("");
		}
	});
	$("#email").blur(function(){
		if ($(this).val() == "") {
			$(this).val("Email");
		}
	});
	$("#casedescription").focus(function(){
		if ($(this).text() == "Case Description") {
			$(this).text("");
		}
	});
	$("#casedescription").blur(function(){
		if ($(this).text() == "") {
			$(this).text("Case Description");
		}
	});
	$("#staff a").click(function() {
		return false;
	});
	$("#staff-list ul").hover(
		function () {
	},
	function () {
		$("#staff a img.staff-fade").fadeIn(500);
	});
	$("#staff-list a").hoverIntent(
		function () {
			var x =$(this).attr("class");
			$("#staff img.staff-fade").each(function(){
				//alert($(this).parent().attr("class"));
				
				if ($(this).parent().hasClass(x)) {
					$(this).fadeIn();
				}
				else {
					$(this).fadeOut();
				}
			});
	},
	function () {});
	$(".default p.more a").click(function(){
		if ($(this).text() == "Read more") {
			$(this).text("Read less");
			$(this).parent().next("div").slideDown();
		}
		else {
			$(this).text("Read more");
			$(this).parent().next("div").slideUp();
		}
		return false;
		
	});
});
