function load_animations(){
		
			if (!$.browser.msie) {
				$('#header_images').css({height: '260px', opacity:'0'})
							
				$('#header_controls_left').animate({opacity:'1'});
				$('#header_controls_right').animate({opacity:'1'});
				
				$('#header_images').stop().animate({opacity:'1'},400,'easeOutQuad');
				$('#header_images > .header_image:first-child').stop().animate({opacity: '1'},400,'easeOutQuad');
				$('#aside2').stop().animate({opacity:'1'},400,'easeOutQuad');
				
			}
			else{
				$('#header_images').css({height: '260px'});
				$('#header_images .header_image').stop().animate({opacity:'0'},0);
				$('#header_images .header_image:first-child').stop().animate({opacity:'1'},0);
			}
    
		/// end animation in ///		
		var header_count = $("#header_images > .header_image").size();
		var current_project = 1;
 		
		
		function animate_header(direction,project){
		if (!$.browser.msie) {
			$('#header_images > .header_image:nth-child('+current_project+')').stop().animate({opacity:'0',width:'1050px',height:'320px'},350,'easeInQuad', function(){
			$(this).css({marginLeft:'0',marginTop:'0',width:'953px',height:'260px'})			

			
						
			if(direction == 'logo'){current_project = project};
			if(direction == 'left'){current_project--};
			if(direction == 'right'){current_project++};
			if(current_project>header_count){current_project=1};
			if(current_project<1){current_project=header_count};
			
			
		
			//$('#aside2').animate({backgroundColor:new_color},80,'easeOutQuart');
		
			$('#header_images > .header_image:nth-child('+current_project+')').stop().animate({opacity: '1',marginLeft:'0',marginTop:'0',width:'953px',height:'260px'},1000,'easeOutQuad');
			});
		}
		else{
			$('#header_images > .header_image:nth-child('+current_project+')').stop().animate({opacity:'0'},300,'easeInQuad', function(){

			if(direction == 'logo'){current_project = project};
			if(direction == 'left'){current_project--};
			if(direction == 'right'){current_project++};
			if(current_project>header_count){current_project=1};
			if(current_project<1){current_project=header_count};
			
	
			$('#header_images > .header_image:nth-child('+current_project+')').stop().animate({opacity: '1'},300,'easeInQuad');
			});
		}
		}

		var interval_header = setInterval(timerFunction, 5000);
		
		function timerFunction(){
		animate_header('left',0);
		}
}


$(function(){
/*	$('tr.nav td:nth-child(5)').css('background','none');*/
	
	function visible(dropdown) {
		$('ul',dropdown).css("visibility","visible")
	} 

	function invisible(dropdown) {
		$('ul',dropdown).css("visibility","hidden")
	} 

	$('.nav td').hover(function() {
		var current_dropdown = $(this).find('.dropdown');
		var five_dropdown = $(this).find('#dropdown_five');
		current_dropdown.show(500, function() {
  			visible(current_dropdown);
		});
		$(this).find('.fade_block').show(500);
	},function() {
		var current_dropdown = $(this).find('.dropdown');
		  	invisible(current_dropdown);
		current_dropdown.hide(500);		
		$(this).find('.fade_block').hide(500);
	});
	
	
	$('tr.nav td ul li a').hover(function() {
			$(this).toggleClass('hovering');
	});
		
		
 });
 

 

