$(document).ready(function() {
	$("#search1").attr("value", "Search");
	
	var text = "Search";
	
	$("#search1").focus(function() {
		$(this).addClass("active");
		if($(this).attr("value") == text) $(this).attr("value", "");
	});
	
	$("#search1").blur(function() {
		$(this).removeClass("active");
		if($(this).attr("value") == "") $(this).attr("value", text);
	});
});


$(document).ready(function() {
	$("#get_involved_name").attr("value", "Name");
	
	var text = "Name";
	
	$("#get_involved_name").focus(function() {
		$(this).addClass("active");
		if($(this).attr("value") == text) $(this).attr("value", "");
	});
	
	$("#get_involved_name").blur(function() {
		$(this).removeClass("active");
		if($(this).attr("value") == "") $(this).attr("value", text);
	});
});


$(document).ready(function() {
	$("#get_involved_email").attr("value", "Email");
	
	var text = "Email";
	
	$("#get_involved_email").focus(function() {
		$(this).addClass("active");
		if($(this).attr("value") == text) $(this).attr("value", "");
	});
	
	$("#get_involved_email").blur(function() {
		$(this).removeClass("active");
		if($(this).attr("value") == "") $(this).attr("value", text);
	});

	var height = $(window).height();
        var height_document = $(document).height();
	
	if(height==height_document){
                var resize = 253;
		$('#footer').css({'height':resize+'px'});
		$('#footer_noise').css({'height':resize-22+'px'});
	}
	else {
		$('#footer').css({'height':'103px'});
		$('#footer_noise').css({'height':'81px'});
	}
});

