$(document).ready(function(){slide("#page",1,1,1,1);slide("#gright",11,7,11,7);slide("#rlinks",11,7,11,7);slide("#foo",11,7,11,7);slide("#menu-b",11,7,11,7);slide("#menu-t",11,7,11,7);slide("#slid1",11,7,11,7);slide("#slid2",11,7,11,7)});function slide(M,I,P,L,J){var N=M+" li.slide";var O=N+" a";var K=0;$(N).each(function(A){$(this).css("margin-left","-2px");K=(K*J+L);$(this).animate({marginLeft:"0"},K);$(this).animate({marginLeft:"2px"},K);$(this).animate({marginLeft:"0"},K)});$(O).each(function(A){$(this).hover(function(){$(this).animate({paddingLeft:I},157)},function(){$(this).animate({paddingLeft:P},157)})})};