$(document).ready(function(){
//Home News Hover on Content change Background Image
	$('.news_home').hover(
		function() {
			$(this).addClass('news_home_hover');
			},
		function() {
			$(this).removeClass('news_home_hover');
	});

//Events Grid Hover on Content change Background Image
	$('.events_grid_box').hover(
		function() {
			$(this).addClass('events_grid_box_hover');
			},
		function() {
			$(this).removeClass('events_grid_box_hover');
	});

//Changing text in input fields of forms
	$('input[type="text"]').addClass("idleField");
		$('input[type="text"]').focus(function() {
			$(this).removeClass("idleField").addClass("focusField");
	    if (this.value == this.defaultValue){ 
	    	this.value = '';
		}
		if(this.value != this.defaultValue){
			this.select();
		}
	});
	$('input[type="text"]').blur(function() {
		$(this).removeClass("focusField").addClass("idleField");
	    if ($.trim(this.value) == ''){
	    	this.value = (this.defaultValue ? this.defaultValue : '');
		}
	});
});
