	$(function(){
		var oldover=null;
		var oldout=null;
		var divs=$('div.subcolumns').children("div");
		divs.mouseover(function(){
			if(this!=oldover){
				$(this).children("h2").children("a").addClass('active');
				$(this).children("div").addClass("bgblock-active");
				//console.log(this);
				oldover=this;
				oldout=null;
			}
		});

		divs.mouseleave(function(){
			if(this!=oldout){
				$(this).children("h2").children("a").removeClass('active');
				$(this).children("div").removeClass("bgblock-active");
				//console.log(this);
				oldout=this;
				oldover=null;
			}
		});	
	
	});





	$('#spalte-c').mouseover(function(){
	
    $(this).animate({ backgroundColor: "#68BFEF" }, 500);
		});

		/*
		$(this).find('.bgblock').animate({opacity: "0.5"}, "fast",function(){
			$(this).animate({opacity: "1"},  "fast");
		});
		*/
		
	

  
  /* Menue */
  //Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	//Remove outline from links
	$("a").click(function(){
		$(this).blur();
	});
	
	//When mouse rolls over
	$("li.swing").mouseover(function(){
		$(this).stop().animate({
		 backgroundPosition: '-184px 0px'
		 },'fast')
	});
	
	//When mouse is removed
	$("li.swing").mouseout(function(){
		$(this).stop().animate({
		 backgroundPosition: '184px 0px'
		},'fast')
	});

	

