$(document).ready(function(){
	
	$('.actbg').click(function(){
		$(this).parent('.wact').hide();
	});
	
	
	// Selectfield Start ----------------------------------------
		$("ul.select > li.parent").click(function(){
			$(this).children("ul").toggle();
		});	
		$("ul.value > li:last-child").css("border", "none"); 
	// Selectfield End ----------------------------------------
	
	//-----------------------------------------------------------------
	// png to be fixed in IE6
	//-----------------------------------------------------------------	
	// $(document).pngFix(); <- to fix all .png
	
		$("div.kreuz").pngFix();
	
	//-----------------------------------------------------------------
	// Navigation
	//-----------------------------------------------------------------
	
	// last list elemets need no space
		$("ul#navigation > li:last-child").css("margin", "0"); 
	
	// mouse over and out chnages		
		$("ul#navigation >li").mouseenter(function(){	
			$(this).children(".redline").fadeOut(200).fadeIn(200).fadeOut(200).fadeIn(200).fadeOut(200).fadeIn(200);
			$(this).animate({backgroundPosition: '(20px 42px)'})
		});
		
		$("ul#navigation >li").mouseleave(function(){
			$(this).animate({backgroundPosition: '(0px 42px)'})
		});
		
	// social buttons
		$("ul.socialnet >li").mouseenter(function(){	
			$(this).children("a").children("img").animate({marginTop: '-5px'},{duration:200}).animate({marginTop: '0px'},{duration:200})
			.animate({marginTop: '-5px'},{duration:200}).animate({marginTop: '0px'},{duration:200})
			.animate({marginTop: '-5px'},{duration:200}).animate({marginTop: '0px'},{duration:200});
			
			$(this).animate({backgroundPosition: '(0px 5px)'},{duration:200}).animate({backgroundPosition: '(0px 0px)'},{duration:200})
			.animate({backgroundPosition: '(0px 5px)'},{duration:200}).animate({backgroundPosition: '(0px 0px)'},{duration:200})
			.animate({backgroundPosition: '(0px 5px)'},{duration:200}).animate({backgroundPosition: '(0px 0px)'},{duration:200});
		});
		
		$("ul.socialnet >li").mouseleave(function(){
			$(this).children("img").animate({marginTop: '0px'});
			$(this).animate({backgroundPosition: '(0px 0px)'});
		});		

	//-----------------------------------------------------------------
	// Body
	//-----------------------------------------------------------------
	
	// last list elemets need no space
		//$("div#body > div.col:last").attr({
		//	style: $("div#body > div.col:last").attr("style")+" margin-right:0;"
		//}); 	

	//-----------------------------------------------------------------
	// Foot
	//-----------------------------------------------------------------
	
	// last list elemets need no space
		$("ul#metanav  > li:last-child").css("border", "0"); 
});	
