$(document).ready(function(){

	jQuery('#nav').accordion({
		active: false,
		header: 'h2',
        selectedClass: 'selected', 
		navigation: true, 
		event: 'click',
		navigation: true,
		fillSpace: true
	/*	animated: 'easeslide' */
	});

	if(jQuery('#galleryarea').length > 0) {
		$(function() {
		$('#galleryarea a').lightBox(); // Select all links in object with gallery ID
		});	
	}
	
	$('#home_link').click(function(){
		location.href = "http://www.ambucopter.org.uk/";
	});

	$('#events_link').click(function(){
		location.href = "http://www.ambucopter.org.uk/events/";
	});

	$('#fundraising_link').click(function(){
		location.href = "http://www.ambucopter.org.uk/fundraising/";
	});
		
	$('#gallery_link').click(function(){
		location.href = "http://www.ambucopter.org.uk/gallery/";
	});
	
	
	$('#news').innerfade({
		animationtype: 'slide',
		speed: 750,
		timeout: 5000,
		type: 'sequence',
		containerheight: '1em'
	});
	
	$('ul#photos').innerfade({
		speed: 1000,
		timeout: 5000,
		type: 'sequence',
		containerheight: '270px'
	});

});
