$(document).ready(function() {
	
	// Employees
	// --------------------------------------------------------------------
	$(".employee .show").click(function(){
		
		$(".employee_detail").hide();
		
		var name = $(this).parent().find(".empl_name").text();
		var job = $(this).parent().find(".empl_job").text();
		var mail = $(this).parent().find(".empl_mail").html();
		var tel = $(this).parent().find(".empl_tel").text();
		var pic = $(this).parent().find(".empl_pic").html();
		
		$(".employee_detail .empl_det_name").text(name);
		$(".employee_detail .empl_det_mail").html(mail);
		$(".employee_detail .empl_det_tel").text(tel);
		$(".employee_detail .empl_det_pic").html(pic);
		$(".employee_detail:first").css('display', 'inline');
		return false;
	});
	
	$(".close").click(function(){
		$(".employee_detail").hide();
		return false;
	});
	
	// References
	// --------------------------------------------------------------------
	$(".tx-ongoingreferences-pi1 .references_cont").hide();
	
	
	$(".tx-ongoingreferences-pi1 .ref_show").click(function(){
		
		$(".tx-ongoingreferences-pi1 .part").css({'margin-bottom':'25px'});
		
		if( $(this).parent().parent().find(".references_cont").is(":visible") ){
			$(this).css({'background-image':'url(/fileadmin/templates/css/image/more.png)'});
			$(this).parent().parent().find(".references_cont").slideUp("slow");
			//$(this).css({'background-image':'url(/fileadmin/templates/css/image/more.png)'});
		}else{
			$(".tx-ongoingreferences-pi1 .ref_show").css({'background-image':'url(/fileadmin/templates/css/image/more.png)'});
			$(this).css({'background-image':'url(fileadmin/templates/css/image/minus.png)'});
			$(".tx-ongoingreferences-pi1 .references_cont").slideUp("slow");
			$(this).parent().parent().find(".references_cont").slideDown("slow");
			
		}		
		
		return false;
	});

});

function printContent() {
	window.print();
}

