$(document).ready(function()
{
	slide("#sliding-navigation", 25, 15, 150, .8);
});

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

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




/* Image Re-Sizing */

 $(document).ready(function(){
       $('#imgManolo').width(100);
       $('#imgManolo').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgManolo').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
 
  $(document).ready(function(){
       $('#imgBrenda').width(100);
       $('#imgBrenda').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgBrenda').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
  
    $(document).ready(function(){
       $('#imgJenay').width(100);
       $('#imgJenay').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgJenay').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
	
	$(document).ready(function(){
       $('#imgBianka').width(100);
       $('#imgBianka').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgBianka').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
	
	$(document).ready(function(){
       $('#imgSajines').width(100);
       $('#imgSajines').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgSajines').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
	
	$(document).ready(function(){
       $('#imgNeo').width(100);
       $('#imgNeo').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgNeo').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
	
	
	$(document).ready(function(){
       $('#imgSoto').width(100);
       $('#imgSoto').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgSoto').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
	
	$(document).ready(function(){
       $('#imgDora').width(100);
       $('#imgDora').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgDora').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
	
	$(document).ready(function(){
       $('#imgKerensa').width(100);
       $('#imgKerensa').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgKerensa').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
	
	$(document).ready(function(){
       $('#imgAlabi').width(100);
       $('#imgAlabi').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgAlabi').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
	
	$(document).ready(function(){
       $('#imgMercedes').width(100);
       $('#imgMercedes').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "300px"}, 'slow');
       });
    
    $('#imgMercedes').mouseout(function()
      {   
          $(this).animate({width: "100px"}, 'slow');
       });
   });
