$(document).ready(function() {											   
///hides dropped portions of menu						   
		$('#menu>ul>.item2>a').hide();$('#menu>ul>.item3>a').hide();$('#menu>ul>.item6>a').hide();				   
///controls menu animations						   
		$('#item2').hover(
		function()
		{			
			$('#item2').animate({height:145}, 350);
			$('#menu>ul>.item2>a').fadeIn(350);		
		},		
		function()
		{
			$('#menu>ul>.item2>a').fadeOut(350);
			$('#item2').animate({height:30}, 350);		
		});
		$('#item3').hover(
		function()
		{
			$('#item3').animate({height:203}, 350);			
			$('#menu>ul>.item3>a').fadeIn(350);
		},		
		function()
		{
			$('#menu>ul>.item3>a').fadeOut(350);			
			$('#item3').animate({height:30}, 350);
		});		
		$('#item6').hover(
		function()
		{
			$('#item6').animate({height:115}, 350);			
			$('#menu>ul>.item6>a').fadeIn(350);
		},		
		function()
		{
			$('#menu>ul>.item6>a').fadeOut(350);
			$('#item6').animate({height:30}, 350);		
		});
		
		$('img.moveMe').css("margin-left","-900px");
		$('img.moveMe').delay(1000).animate({marginLeft:"35px"}, 500);$('img.moveMe').animate({marginLeft:"0px"}, 100);
		$('.fadeMe').delay(1500).fadeTo("slow", .4);
		$('.fadeMe').hover(
						  function(){
							  $(this).fadeTo("slow", 1);
							  },
						  function(){
							  $(this).fadeTo("slow", .4);
							  });
						   
});




function slide(navigation_id, pad_out, pad_in, time, multiplier)
{
/// creates the target paths
	var list_elements = navigation_id + " ul";
	var link_elements = list_elements + " a";
	
/// initiates the timer used for the sliding animation
	var timer = 0;
	
/// creates the slide animation for all list elements 
	$(list_elements).each(function(i)
	{
/// margin top
		$(this).css("margin-top","-180px");
/// updates timer
		timer = (timer*multiplier + time);
		$(this).animate({ marginTop: "21px" }, timer);
		$(this).animate({ marginTop: "0" }, timer);
	});
};
	
