function abjust_submenu(){
	
	// Set up the Slider
	var sliderid = 1;
	var animation_active = false;
	var totalSlides = 4;
	
	// This initially hides all of the slides except the first one
	for (tempSlideNum=2;tempSlideNum<=totalSlides;tempSlideNum=tempSlideNum+1) 
	{

		$("#slider-"+tempSlideNum).hide();
		$("#slider-"+tempSlideNum).find('.slider-header').hide();
		$("#slider-"+tempSlideNum).find('.slider-p').hide();
		$("#slider-"+tempSlideNum).find('.slider-span').hide();
		$("#slider-"+tempSlideNum).find('.slider-image').hide();

	}
	//alert($("#my_buttons").html())
	// Set up the slider functionality
	$("a").click(function(event){

		idName = this.id;

		if (idName == "one") { trueID = 1; } else
		if (idName == "two") { trueID = 2; } else
		if (idName == "three") { trueID = 3; } else 
		if (idName == "four"){ trueID = 4; } else{
			trueID = sliderid 
		}
		

		if (trueID != sliderid && animation_active == false) {

			animation_active = true;
			
			if (sliderid == 1) { oldidName = "one"; } else
			if (sliderid == 2) { oldidName = "two"; } else
			if (sliderid == 3) { oldidName = "three"; } else
			if (sliderid == 4) { oldidName = "four"; }
			
			

			newsliderid = trueID;


		  $("#slider-"+sliderid ).find('.we-slide-title').animate({ 
			left: '-1200px'
		  }, 1500 );


			$("#slider-"+sliderid).find('.we-slide').animate({left:'-1200px'},600, 'easeInQuint', function(){
															
				$("#slider-"+sliderid).hide();
				
				// Wait until the above has finished, then do the rest
	
				sliderid = newsliderid;
				$("#slider-"+sliderid).find('.we-slide').css("left","1200px");
				$("#slider-"+sliderid).find('.we-slide-title').css("left","1200px");				
				$("#slider-"+sliderid).show();
				$("#slider-"+sliderid).find('.we-slide').show();	
				$("#slider-"+sliderid).find('.we-slide-title').show();				
				
				$("#slider-"+sliderid).find('.we-slide').animate({left:'0'},{duration:500, easing:'easeOutExpo'});
				$("#slider-"+sliderid).find('.we-slide-title').animate({left:'0'},{duration:500, easing:'easeOutExpo'});
				
				animation_active = false;
				
			});
		
		}
		
	});	
}