Cufon.replace('h2, h3, #nav a, div.sideNav a, .galleryBig div span, .gallerySmall span', {hover:true});

$(function(){

	//Alternate background colouring for lined blocks
	$('.linedBlock:even').css("background-color", "#F9FBF8");
	
	//Menu animation
	$('#nav a, .sideNav a').hover(function(e) {
		$(this).hoverFlow(e.type, { backgroundColor: "#788F46" }, 200);
	},function(e) {
		$(this).hoverFlow(e.type, { backgroundColor: "#FFFFFF" }, 200);
	});
	
	// Newsletter Archives toggle
	$('#blocks').hide();
	$('#newsletterArchives')
		.addClass('as-button')
		.attr("title","Click to toggle")
		.bind('click', function(){
			$('#blocks', '#newsletter').slideToggle();
			$('.arrow', '#newsletterArchives').toggleClass('arrow-down');
		});
	
	//Gallery thumbnail hover effect
	
	/*---
	
	$('#thumbs li').each(function() {
		
			$(this).hover(function(e) {
				if($(this).hasClass('selected')) {
					//do nothing
				} else {
					$(this).children('img').hoverFlow(e.type, { backgroundColor: "#788F46" }, 200);
				}
			},function(e) {
				if($(this).hasClass('selected')) {
					//do nothing
				} else {
					$(this).children('img').hoverFlow(e.type, { backgroundColor: "#FFFFFF" }, 50);
				}
			});
	});
	
	---*/
	
});
