$(function() {
				$('#featured').slideGallery({
					'bullets': true,
					'timer' : true,
					'animation' : 'fade'
				});
			$("#img-area li:last, #nev_bg li:last, #wildlift li:last").addClass("lastChild");
			$("#wildlift li:first-child").addClass("firstChild");
					$("a").each(function() {
			var title = $(this).text();
		    $(this).attr('title', title);
   		 });
			$("img").each(function() {
			var title = $(this).attr('alt');
			if(title ==''){
				 $(this).attr('alt', 'Delta Farmland and Wildlife Trust');
				 $(this).attr('title', 'Delta Farmland and Wildlife Trust');
				}
			 else{
				 $(this).attr('title', title);
				 }
		 });
			
			$("a").each(function() {
			var urlCheck = $(this).attr('href');
			if(urlCheck =='#'){
				 $(this).attr('href', 'javascript:void(0);');
				}
		 });
			});
(function($) {
	$.fn.equalHeights = function(minHeight, maxHeight) {
		tallest = (minHeight) ? minHeight : 0;
		this.each(function() {
			if($(this).height() > tallest) {
				tallest = $(this).height();
			}
		});
		if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
		return this.each(function() {
			$(this).height(tallest).css("overflow","visible");
		});
	}
})(jQuery);
$(document).ready(function(){
$("#content-area .eqHeight").equalHeights();
$("#wildlift li").equalHeights();
 $("#nev_bg li a").hover(
      function () {
        $(this).parent().prev().addClass("noBg");
      }, 
      function () {
          $(this).parent().prev().removeClass("noBg");
      }
    );
});


