$(document).ready(function(){
	/*
	$("#main_menu").lavaLamp({
		fx: "backout",
		speed: 700,
		click: function(event, menuItem) {
			return false;
		}
	});
	*/
	
	//Hide menu image
	$("#img_home").hide();
	$("#img_about_us").hide();
	$("#img_gallery").hide();
	$("#img_contact_us").hide();
	$("#img_link").hide();
	$("#img_faq").hide();
	$("#img_map").hide();
	$("#sequentiallist").hide();
	
	$("#footer_container").slideBox({position: "bottom"});
	
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	//Remove outline from links
	$("a").click(function(){
		$(this).blur();
	});
	
	//scroll to anchor
	$('.scroll').click(function(){$('#top').ScrollTo(1000);return false});
	$('.write, .add').click(function(){$('#respond').ScrollTo(1000);return false});


	//toggle .linkprefs
	$(".linkprefs p").hide();
								  
	$(".linkprefs span").click(function(){
		$('.linkprefs p').slideToggle(800);
	});


	//Animated menu - When mouse rolls over
	$("#item_home").mouseover(function(){
		$(this).stop().animate({height:'52px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_home").show()})
	});
	
	$("#item_about_us").mouseover(function(){
		$(this).stop().animate({height:'52px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_about_us").show()})
	});
	
	$("#item_gallery").mouseover(function(){
		$(this).stop().animate({height:'52px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_gallery").show()})
	});
	
	$("#item_contact_us").mouseover(function(){
		$(this).stop().animate({height:'52px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_contact_us").show()})
	});
	
	$("#item_link").mouseover(function(){
		$(this).stop().animate({height:'52px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_link").show()})
	});
	
	$("#item_faq").mouseover(function(){
		$(this).stop().animate({height:'52px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_faq").show()})
	});
	
	$("#item_map").mouseover(function(){
		$(this).stop().animate({height:'52px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_map").show()})
	});

	//Animated menu - When mouse is removed
	$("#item_home").mouseout(function(){
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_home").hide()})
	});
	
	$("#item_about_us").mouseout(function(){
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_about_us").hide()})
	});
	
	$("#item_gallery").mouseout(function(){
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_gallery").hide()})
	});
	
	$("#item_contact_us").mouseout(function(){
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_contact_us").hide()})
	});
	
	$("#item_link").mouseout(function(){
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_link").hide()})
	});
	
	$("#item_faq").mouseout(function(){
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_faq").hide()})
	});
	
	$("#item_map").mouseout(function(){
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce', complete: $("#img_map").hide()})
	});
});


