$(document).ready(function(){
			$(".menu")
			.superfish({
				animation : { opacity:"show",height:"show", delay: 0},
				 autoArrows:    false
			});
});

$(document).ready(function(){
	var windowHeight = $(window).height();
	windowHeight = windowHeight + 1;
	$("#outerwrapper").css({'height':windowHeight+'px'})
});

$(document).ready(function(){
	$("ul.menu li:last").css({'background':'none'});
});

$(document).ready(function() {
	if ($("#usp").is(":hidden")) 
	{
		$('#usp').show();
	}
});

$(document).ready(function() {
	if ($("#imageGallery").is(":hidden")) 
	{
		$('#imageGallery').show();
	}
});

$(document).ready(function(){
	$('#imageGallery').cycle({
   	fx:    'fade', 
    speed:2500,
    timeout: 5000,
    before: onBefore,
    after: onAfter
    });   
});

function onBefore() { 
    $(".gallerytext").fadeOut("slow");
} 
function onAfter() { 
  	var altext = $(this).attr("alt");
 	$("<div class='gallerytext'>"+altext+"</div>").css({opacity:0.6}).prependTo("#imageGallery").hide().fadeIn("slow");
 
}

$(document).ready(function(){
	$('#usp').cycle({
    fx:    'fade', 
    speed:  1500,
    timeout: 8000
    });
});

$(document).ready(function() {
  $('#charityList').find('dd').hide().end().find('dt').click(function() {
     $(this).next().slideToggle();
 	$('#charityList').find('dd').hide().end();
   });   
});

$(document).ready(function() {
  $('#charityList dt').css({'color':'#777dac','cursor':'pointer'}); 
});



