$jq142(document).ready(function()
{
	slide("#menu-main-menu", -25, 0, 150, .8);
});

function slide(navigation_id, pad_out, pad_in, time, multiplier)
{
	// creates the target paths
	var list_elements = navigation_id + " li.menu-item";
	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 
//	$jq142(list_elements).each(function(i)
//	{
//		// margin left = - ([width of element] + [total vertical padding of element])
//		$jq142(this).css("margin-left","-180px");
//		// updates timer
//		timer = (timer*multiplier + time);
//		$jq142(this).animate({ marginLeft: "0" }, timer);
//		$jq142(this).animate({ marginLeft: "15px" }, timer);
//		$jq142(this).animate({ marginLeft: "0" }, timer);
//	});

	// creates the hover-slide effect for all link elements 		
	$jq142(link_elements).each(function(i)
	{
		$jq142(this).hover(
		function()
		{
			$jq142(this).animate({ marginLeft: pad_out }, 150);
		},		
		function()
		{
			$jq142(this).animate({ marginLeft: pad_in }, 150);
		});
	});
}

