$(document).ready( 
		function() 
		{	

			var offset= 0;
			$('#gallery_big_pic').hide();
			
			var src = $('.gallery ul li:eq(0) img').attr("src");
			$('#gallery_big_pic').animate(	{"opacity": "show",} , 3000, function() {} );
			$('#gallery_big_pic').html('<img src="' + src + '"/>');
			
			
			jQuery.fn.exists = function(){return jQuery(this).length>0;}

			if ($('#gallery_big_pic').exists()) {
				offset=$('#gallery_big_pic').offset();
				$('.gallery ul').css({"margin-top": offset.top-78 + "px",});
			}
			

			pageHeight=$(document).height()-88;
			$('div.main-holder .content_right .short-news').height( pageHeight );
			$('div.main-holder .content_right .short-info').height( pageHeight );

			
			status = 0;
					
			$('.gallery ul li').hover(function() 
			{
				$('.gallery ul li:hover').stop(true, true);
				$('#gallery_big_pic').stop(true,true);
				$('.gallery ul li:hover').animate( {paddingLeft: '0',} , 200 , function() {} );
				var src = $('.gallery ul li:hover img').attr("src");
				// $('#gallery_big_pic').animate(	{"opacity": "show",} , 550, function() {} );
				$('#gallery_big_pic').html('<img src="' + src + '"/>');
				if ($('#gallery_big_pic').exists()) {
					offset=$('#gallery_big_pic').offset();
					$('.gallery ul').css({"margin-top": offset.top-78 + "px",});
				}
				pageHeight=$(document).height()-88;
				$('div.main-holder .content_right .short-news').height( pageHeight );
				$('div.main-holder .content_right .short-info').height( pageHeight );

				
			},function()
			{
				$('.gallery ul li').animate( {paddingLeft: '+10',} , 0 , function() {} );
				$('.header').html('');
			}
			);
			
			$('.gallery ul').hover(function() 
			{
			},function()
			{
				$('.gallery ul li:hover').stop(true, true);
				$('#gallery_big_pic').stop(true,true);
				// $('#gallery_big_pic').animate(	{"opacity": "hide",} , 850, function() {} );
				$('.gallery ul li').animate( {paddingLeft: '+10',} , 0 , function() {} );
				$('.header').html('');
			}
			);
	
			$('.mitarbeiter ul li').hover(function() 
			{
				$('.mitarbeiter ul li:hover').stop(true, true);

				$('.mitarbeiter ul li:hover').animate( {paddingLeft: '+34',} , 200 , function() {} );
			},function()
			{
				$('.mitarbeiter ul li').animate( {paddingLeft: '+10',} , 0 , function() {} );
			}
			);
			
			$('.mitarbeiter ul').hover(function() 
			{
				$('.mitarbeiter_frame').stop(true,true);
				$('.partner_frame').stop(true,true);
				$('.short-info h3').stop(true,true);
				$('.short-info h3').animate(	{"opacity": "hide",} , 250, function() {} );
				$('.partner_frame').animate(	{"opacity": "hide",} , 250, function() {
						$('.mitarbeiter_frame').animate(	{"opacity": "show",} , 550, function() {} );
				} );
			},function()
			{
				$('.mitarbeiter_frame').stop(true,true);
				$('.partner_frame').stop(true,true);
				$('.short-info h3').stop(true,true);
				$('.mitarbeiter_frame').animate(	{"opacity": "hide",} , 250, function() {
						$('.partner_frame').animate(	{"opacity": "show",} , 550, function() {} );
						$('.short-info h3').animate(	{"opacity": "show",} , 550, function() {} );
				} );
			}
			);	
	});

