function load_animations(){
		
			if (!$.browser.msie) {
				$('#zoomslider_images').css({height: '370px', opacity:'0'})
				$('#aside2').css({height:'370px', opacity:'0'});
				$('#overlay_bg').css({height:'370px'});
							
				/*$('#zoomslider_controls_left').animate({opacity:'0.7'});
				$('#zoomslider_controls_right').animate({opacity:'0.7'});*/
				
				$('#zoomslider_images').stop().animate({opacity:'1'},400,'easeOutQuad');
				$('.zoomslider_image:first-child').stop().animate({opacity: '1'},400,'easeOutQuad');
				$('#aside2').stop().animate({opacity:'1'},400,'easeOutQuad');
				
			}
			else{
				$('#zoomslider_images').css({height: '370px'});
				$('#aside2').css({height:'370px'});
				$('#overlay_bg').css({height:'370px'});
				$('.zoomslider_image').stop().animate({opacity:'0'},0);
				$('.zoomslider_image:first-child').stop().animate({opacity:'1'},0);
			}
    
		/// end animation in ///		
		var header_count = $(".zoomslider_image").size();
		var current_project = 1;
 		var header_color = $('.zoomslider_image').attr('color');		
 		     	
     	$('#aside2').css({'background-image':'none','background-color':header_color});
     	 
		
		$('#overlay_bg').click(function(event){
			window.location=($('.zoomslider_image:nth-child('+current_project+')').attr('link'));
		});
		$('#aside2').hover(
		function(event){
		$('#zoomslider_controls_left').show();
		$('#zoomslider_controls_right').show();
		if (!$.browser.msie) {
			$('#zoomslider_controls_left').stop().animate({left:'0px'},200,'easeOutQuad');
			$('#zoomslider_controls_right').stop().animate({right:'0px'},200,'easeOutQuad');
		}},
		function(event){
		$('#zoomslider_controls_left').hide();
		$('#zoomslider_controls_right').hide();
		if (!$.browser.msie) {
			$('#zoomslider_controls_left').stop().animate({left:'10px'},300,'easeOutQuad');
			$('#zoomslider_controls_right').stop().animate({right:'10px'},300,'easeOutQuad');
		}})
		
		$('#zoomslider_controls_right').click(function(event){animate_header('right',0);clearInterval(interval_header);})
		
		$('#zoomslider_controls_left').click(function(event){animate_header('left',0);clearInterval(interval_header);})
		
		document.onkeyup = handleArrowKeys;
		
		function handleArrowKeys(evt) {
		if (evt.keyCode == 37){animate_header('left',0);clearInterval(interval_header);}
		if (evt.keyCode == 39){animate_header('right',0);clearInterval(interval_header);}
		}
		
		
		function animate_header(direction,project){
		if (!$.browser.msie) {
			$('.zoomslider_image:nth-child('+current_project+')').stop().animate({opacity:'0',marginLeft:'-240px',marginTop:'-92px',width:'1440px',height:'555px'},200,'easeInQuad', function(){
			$(this).css({marginLeft:'0px',marginTop:'0px',width:'960px',height:'370px'})			

			
						
			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};
			
			
			var new_color = $('.zoomslider_image:nth-child('+current_project+')').attr('color')
			//$('#aside2').animate({backgroundColor:new_color},80,'easeOutQuart');
			$('#aside2').css({backgroundColor: new_color});
			$('.zoomslider_image:nth-child('+current_project+')').css({marginLeft:'240px',marginTop:'92px',width:'480px',height:'185px'});
			$('.zoomslider_image:nth-child('+current_project+')').stop().animate({opacity: '1',marginLeft:'0',marginTop:'0',width:'960px',height:'370px'},200,'easeOutQuad');
			});
		}
		else{
			$('.zoomslider_image:nth-child('+current_project+')').stop().animate({opacity:'0'},150,'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};
			
			var new_color = $('.zoomslider_image:nth-child('+current_project+')').attr('color')
			//$('#aside2').animate({backgroundColor: new_color},80,'easeOutQuart');
			$('#aside2').css({backgroundColor: new_color});
			$('.zoomslider_image:nth-child('+current_project+')').stop().animate({opacity: '1'},150,'easeInQuad');
			});
		}
		}

		var interval_header = setInterval(timerFunction, 8000);
		
		function timerFunction(){
		animate_header('right',0);
		}
}
