$(document).ready(function() {
	
	$('#suche').focus(function() {
		if ($(this).val() == "Suche")
			$(this).val("");
	});
	$('#suche').blur(function() {
		if ($(this).val() == "")
			$(this).val("Suche");
	});
	
	
	$('.jobitem .date_link').addClass('active');
//	$('.jobitem .description:not(:first)').hide();

  $('.jobitem .description').hide();

	
	/*$('.jobitem .date_link').click(function() {
		$(this).next('.description').slideToggle('slow').siblings('.description:visible').slideUp('slow');
		$(this).toggleClass('active');
		$(this).siblings('.date_link').removeClass('active');
	});*/
	
	$('.jobitem .title').mouseover(function() {
		$(this).css('cursor', 'pointer');
	});
	
	$('.jobitem .title').click(function() {
		if ($(this).next('.description').is(':hidden')) {
			$(this).next('.description').slideToggle('slow').siblings('.description:visible').slideUp('slow');
			$(this).next('.description').slideDown('slow');
			$(this).toggleClass('active');
			$(this).siblings('.date_link').removeClass('active');
		} else {
			$(this).next('.description').slideUp('slow');
		}
	});
	
});
