function load_animations(){
		    var $j = jQuery.noConflict();
			if (!$j.browser.msie) {
				$j('#header_images').css({height: '592px', opacity:'0'})
				$j('#overlay_bg').css({height:'592px'});
				$j('#header_controls_left').animate({opacity:'1'});
				$j('#header_controls_right').animate({opacity:'1'});
				$j('#header_images').stop().animate({opacity:'1'},400,'easeOutQuad');
				$j('#header_images > .header_image:first-child').stop().animate({opacity: '1'},400,'easeOutQuad');
				var header_count = $j("#header_images > .header_image").size();
				
			}
			else{
				$j('#header_images').css({height: '592px'});
				$j('#overlay_bg').css({height:'592px'});
				$j('#header_images img').wrap('<div />');
				$j('#header_images div').stop().animate({height: '0px'},0);
				$j('#header_images div:first-child').stop().animate({height: '592px'},0);
				var header_count = $j("#header_images > div").size();
			}
    
		/// end animation in ///		
		var current_project = 1;
 		
		if (!$j.browser.msie) {
			$j('#overlay_bg')
			.click(function(event){
			window.location=($j('#header_images > img:nth-child('+current_project+')').attr('link'));
			});
		}
		else{
			$j('#overlay_bg')
			.click(function(event){
			window.location=($j('#header_images > div:nth-child('+current_project+')').children().attr('link'));
			});
		}
		$j('#slider_outer')
		.hover(
		function(event){
		$j('#header_controls_left').show();
		$j('#header_controls_right').show();
		if (!$j.browser.msie) {
			$j('#header_controls_left').stop().animate({left:'0px'},200,'easeOutQuad');
			$j('#header_controls_right').stop().animate({right:'0px'},200,'easeOutQuad');
		}},
		function(event){
		$j('#header_controls_left').hide();
		$j('#header_controls_right').hide();
		if (!$j.browser.msie) {
			$j('#header_controls_left').stop().animate({left:'5px'},300,'easeOutQuad');
			$j('#header_controls_right').stop().animate({right:'5px'},300,'easeOutQuad');
		}})
		
		$j('#header_controls_right').click(function(event){animate_header('right',0);clearInterval(interval_header);})
		$j('#header_controls_left').click(function(event){animate_header('left',0);clearInterval(interval_header);})
		
		function animate_header(direction,project){
		if (!$j.browser.msie) {
			$j('#header_images > .header_image:nth-child('+current_project+')').stop().animate({opacity:'0',marginLeft:'-100px',marginTop:'-50px',width:'1200px',height:'740px'},250,'easeInQuad', function(){
			$j(this).css({marginLeft:'0px',marginTop:'0px',width:'960px',height:'592px'})
						
			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};
								
			$j('#header_images > .header_image:nth-child('+current_project+')').css({marginLeft:'100px',marginTop:'50px',width:'760px',height:'469px'});
			$j('#header_images > .header_image:nth-child('+current_project+')').stop().animate({opacity: '1',marginLeft:'0',marginTop:'0',width:'960px',height:'592'},250,'easeOutQuad');
			});
		}
		else{
			$j('#header_images > div:nth-child('+current_project+')').stop().animate({height: '0px'},100,'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};
			
			$j('#header_images > div:nth-child('+current_project+')').stop().animate({height: '592px'},250,'easeInQuad');
			});
		}
		}

		var interval_header = setInterval(timerFunction, 4000);
		
		function timerFunction(){
		animate_header('right',0);
		}
}
