 $(document).ready(function(){ 

 });
 
 $(window).load(function(){ 
	 $(function() {
		 $("#mainmenu").lavaLamp({
			 fx: "backout",
			 speed: 700,
			 click: function(event, menuItem) {
			 return false;
		 }
		 });
	 });
	 $('li.first ul').css("opacity","0");
	 
	 $('.job a.button').click(function(event) {
		 event.preventDefault();
		 $item = $(this).parent();
		  $($item,'.long').slideDown('slow', function() {
		    // Animation complete.
		 });
	 });
	 	
	 
	 $('.small_img a.img1').addClass('active');
	 $('.small_img a.img1').animate({"margin-left": "0px"}, "fast", "linear");
	 $('.info').fadeOut('fast');
	 
	 $img = "img1";
	 $('.large_img .img1').fadeIn('slow');
	 
	 $('.small_img a').hover(
		function(){
		 $(this).stop(true, true).animate({"margin-left": "0px"}, "fast", "linear");
		 },
		function(){
		 $(this).not('.active').stop(true, true).animate({"margin-left": "-21px"}, "fast", "linear");
		 }
	 );
	 
	 $('.small_img a').click(function(event1){
	    event1.preventDefault();
	    $('.small_img a').removeClass('active');
	    $('.small_img a').not(this).animate({"margin-left": "-21px"}, "fast", "linear");

	    $('.large_img .img').fadeOut('fast', function(){
	    });

	    $img = $(this).attr('class');
	    $image = '.large_img .' + $img;	    
	    
	    $(this).addClass('active');
	    
	    $($image).addClass('active');
	    $($image).fadeIn('slow');
	    
	 });
	 
	 $('.large_img .img').hover(
		function(){
		 $('.info',this).stop(true, true).fadeIn('slow');
		 },
		function(){
		 $('.info',this).stop(true, true).fadeOut('slow');
		 }
	 );
	 
 });
