$(document).ready(function(){
			
			//Remove
			$(".news:last").css('margin-bottom', '0px');
			$(".ngg-galleryoverview:last").css('margin-bottom', '0px');
			
			// Events
			$('table tr:even').addClass('even');
      $('table tr:odd').addClass('odd'); 			
			
			
			// Equal Height Columns
			equalHeight($("#main-content, #sidebar"));

			// Form Focus/Blur
			 $("input, textarea").addClass("inputBlur");
			 
       $("input, textarea").focus(function()
       {
            $(this).addClass("inputFocus").removeClass("inputBlur");
		    }).blur(function(){
		            $(this).removeClass("inputFocus").addClass("inputBlur");
		   });
		   
		   // Submit and upload btn text
		   $('#uploadimage_btn').val('Subir');
		   $('#frm_form_3_container input[type=submit]').val('Someter');

		   
		   $('input[type=file]').customFileInput();	
		   
});

function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).innerHeight();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}


