/*
$(function() {
	$("#eb_1_start").hover(function () {
		$("#p0_u").fadeIn("slow");
	},
	function () {
		$("#p0_u").fadeOut("slow");
	});
});


$('#eb_1_startxx').hover(function() {
  $('#p0_uxx').toggle('slow', function() {
    // Animation complete.
  });
});


$('#eb_1_start').hover(function() {
  $('#p0_u').toggle('slow', function() {
    // Animation complete.
  });
});
*/


/*
$(document).ready(function(){
	
	//$(".toggle_container").hide();

	$("#eb_1_start").hover(function(){
		//$(this).toggleClass("active").next().slideToggle("slow");
		
		
		//$('#p0_u').toggle();
		
	  //$('#p0_u').toggle('slow', function() {
	  	
	    // Animation complete.
	  //});
	  $('#p0_u').fadeToggle();
	  
		
		
	});
	

});

(function($){
	$.fn.fadeToggle = function(speed, callback) {
		return this.each(function() {
			if($(this).css('display') == 'none') $(this).fadeIn(speed, callback);
			else $(this).fadeOut(speed, function() {
				$(this).css('display','none');
				if(callback != undefined) callback();
			});
		});
	}
})(jQuery)

jQuery.fn.fadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
*/

$(document).ready(function(){
  
	$("#eb_1_start").hover(function () {
		$("#p0_u").stop().fadeTo(500, 1);
	},
	function () {
		$("#p0_u").stop().fadeOut("slow");
	});  
});




function shwo_content_part_f(type,ID){
	$('#navi1-mf .sel').removeClass("sel");
	$(ID).addClass('sel');
  $('#spalte2-f').slideUp('slow', function() {
		$('#spalte2-f').load("/show_content.php?versicherung="+type,function(){
	  	$('#spalte2-f').slideDown("slow");
	  });
  });
	return false;	
}

function show_content_part_v(type,ID){
	$('#navi2-mv .sel').removeClass("sel");
	$(ID).addClass('sel');	
	
  $('#spalte3').slideUp('slow', function() {
		$('#spalte3').load("/show_content.php?versicherung="+type,function(){
	  	$('#spalte3').slideDown("slow",function(){
				tb_init('a.thickbox, area.thickbox, input.thickbox');
				imgLoader = new Image();
				imgLoader.src = tb_pathToImage;	  		
	  	});
	  });
  });
	return false;	
}



function show_content(type,ID,eb2)
{
	$('#nav .sel').removeClass("sel");
	
	if (ID=='sel_st')
	{
		$('#nav li:first').addClass('sel');
	}
	else if (ID<4)
	{
		$('#nav :nth-child('+ID+')').addClass('sel');		
	}
	else
		$(ID).addClass('sel');
	
	if(type!='team')
	{
		$('#content-team').slideUp('slow', function() {
			$('#content-team').remove();
		});		
	}
					
  $('#content-inner').slideUp('slow', function() {
  	if (eb2!='') zusatz='&ebv1='+eb2
  	
		$('#content-inner').load("/show_content.php?versicherung="+type+zusatz,function(){
	  	$('#content-inner').slideDown("slow");

			if(type=='team')
			{
				if ($('#content-team').length==0)
					$('#content').after('<div id="content-team" style="display:none;"></div>');
				
				$('#content-team').load("/show_content.php?versicherung=team&teamTyp=list",function(){
			  	$('#content-team').slideDown("slow");
			  });				
			}	
	  });
  });
	
	
	/*	
	$("#content-inner").fadeOut("slow").animate({opacity: 1.0});
	setTimeout(function() {
		$('#content-inner').load("/show_content.php?versicherung="+type+"&id="+ID,function(){
	  	$("#content-inner").fadeIn("slow").animate({opacity: 1.0});
	  });
	}, 300);
	*/
	
	/*
	$('#content-inner').fadeOut('fast');

	setTimeout(function() {
		$('#content-inner').load("/show_content.php?versicherung="+type+"&id="+ID,function(){
	  	$('#content-inner').fadeIn("slow");
	  });
	}, 500);
	*/
	/*
		$('#content-inner').load("/show_content.php?versicherung="+type+"&id="+ID,function(){
	  	//$('#content-inner').fadeIn("slow");
	  	 $("#content-inner").show("slow").animate({opacity: 1.0}, 4000).hide("slow")
	  });*/
  return false;
}
