$(document).ready(function(){
			
	
         $("#logo").hide().fadeOut('fast');
                        

         $("#menu_items .button,#menu_section_active,#last_projects .project").hide();
         
          //$("#menu_items").css('zIndex', 52);

		 $('#menu_section').animate({

			height: ['55px', 'easeOutSine'],
			width: '940px'
			}, { duration: 2000, 
					complete: function() {

                          $('.project').show().animate({
							width: '258px',
							height: ['62px', 'easeOutQuad'],
                            marginTop:'5px'                                        
						  }, {  duration: 1500 });

						
						  $('#menu_section_active').show().animate({

							width: ['940px', 'easeInBounce'],
							height: ['55px', 'easeOutSine']
                			}, { duration: 2000, 
                					complete: function() {
                
                                    //$("#menu_items").fadeIn('slow');
                                    
                            		//show items one next one
                            		jQuery(this).find("#menu_items .button").each(function() {
                            		  
                                        //alert(jQuery(this).attr('id'));
                                        //$("#menu_items").fadeIn('slow');                                                                    		  
                        		        jQuery(this).fadeIn(2000);
                                                                                
                            		});
                                    			  

						  $("#logo").fadeIn('slow');
						
						  $('#vertical_line').show().animate({
							opacity: 0.9,
							width: ['505px', 'easeOutBounce'],
							height: '1px'
						  }, { duration: 1200, 
                					complete: function() {
                
                                		//show items one next one .exists()
                                        if($("#overscroll").length){
                                            
                                            QueryLoader.selectorPreload = "#wrapper";
                                        	QueryLoader.init();        
                                            
                                        }
                                                                             
                                    }
                                    
                               }); // end menu_section_active
                               
                               
                        }
                        
                   }); // end menu_section_active
														
					}
				}
		  ); //end menu_section
		  
//		  $('#caption_border').show().animate({
//							opacity: 0.9
//		  });  
		  
            

            
           //$("#lavaLamp").lavaLamp({ fx: "backout", speed: 700});		
           
            $("#lavaLamp").lavaLamp({
                fx: "easeOutBack",
                speed: 700,
                click: function(event, menuItem) {
                    return false;
                }
            });


																									
});


