/**
 * @author Dennis Weggemann
 */
$(document).ready(function(){
	
	/*
	 * POPUP fuer Aktion
	 */
	
	$("#popup").delay(1500).animate({"opacity":"1","filter":"alpha(opacity=100)"},1000);
	$("#popup").bind("mouseenter",function(){
		$("#popup").append("<img id=\"cancel\" src=\"files/cross-icon.png\"/>");
		$("#cancel").click(function(){
			$("#popup").remove();
		});
	}).bind("mouseleave",function(){
		$("#cancel").remove();
	});
///////MOUSEOVER HOME-PICS : CHANGE TITLE
		$("#hc1 div:eq(1)").bind("mouseenter", function(){
					$("#title div").stop().animate({"opacity":"0"},200);
					$("#title div:eq(1)").stop().animate({"opacity":"1"},200);
			
		}).bind("mouseleave", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
		});
		
		
		$("#hc2 div:eq(1)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(2)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc2 div:eq(2)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(3)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc3 div:eq(0)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(4)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc3 div:eq(1)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(5)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc3 div:eq(2)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(8)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc3 div:eq(3)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(7)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc4 div:eq(0)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(9)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc4 div:eq(1)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(10)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc4 div:eq(2)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(11)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
		
		$("#hc4 div:eq(3)").bind("mouseenter", function(){
			$("#title div").stop().animate({"opacity":"0"},200);
			$("#title div:eq(6)").stop().animate({"opacity":"1"},200);
	
}).bind("mouseleave", function(){
	$("#title div").stop().animate({"opacity":"0"},200);
	$("#title div:eq(0)").stop().animate({"opacity":"1"},200);
});
		
});
