$(document).ready(function(){

	/*$("a.green").mouseover(function(event){
		$("a.green").css("background-image","url(gfx/buttons/green_active.jpg)");
	});
	$("a.green").mouseout(function(event){
		$("a.green").css("background-image","");
	});

	$("a.orange").mouseover(function(event){
		$("a.orange").css("background-image","url(gfx/buttons/orange_active.jpg)");
	});
	$("a.orange").mouseout(function(event){
		$("a.orange").css("background-image","");
	});

	$("a.pink").mouseover(function(event){
		$("a.pink").css("background-image","url(gfx/buttons/pink_active.jpg)");
	});
	$("a.pink").mouseout(function(event){
		$("a.pink").css("background-image","");
	});

	$("a.light_blue").mouseover(function(event){
		$("a.light_blue").css("background-image","url(gfx/buttons/light_blue_active.jpg)");
	});
	$("a.light_blue").mouseout(function(event){
		$("a.light_blue").css("background-image","");
	});

	$("a.dark_blue").mouseover(function(event){
		$("a.dark_blue").css("background-image","url(gfx/buttons/dark_blue_active.jpg)");
	});
	$("a.dark_blue").mouseout(function(event){
		$("a.dark_blue").css("background-image","");
	});

	$("a.yellow").mouseover(function(event){
		$("a.yellow").css("background-image","url(gfx/buttons/yellow_active.jpg)");
	});
	$("a.yellow").mouseout(function(event){
		$("a.yellow").css("background-image","");
	});*/
	
	var colors = ['green', 'pink', 'orange', 'light_blue', 'dark_blue', 'yellow'];
	var activeClass = null;
	
	$('#buttons a').mouseover(function(e){
		
		var klassen = $(this).attr('class').split(' ');
		jQuery.each(klassen, function(i, klas){
			if(jQuery.inArray(klas, colors) >= 0){
				$('a.'+ klas).css('background-position', '0 -126px');
				activeClass = klas;
			}
		});
	}).mouseout(function(e){
		if(activeClass){
			$('a.'+ activeClass).css('background-position', '0 0');
		}
	});

});