$(document).ready(function(){
	$("a.logo:not(.logo-aktiv)").css( {backgroundPosition: "0 0"} ).hover(function() {
		$(this).stop().animate({backgroundPosition:"(0 -58px)"}, {duration:400});
	}, function() {
		$(this).stop().animate({backgroundPosition:"(0 0px)"}, {duration:500});
	});
		
	
	$("a.graphic:not(.graphic-aktiv)").css( {backgroundPosition: "0 0"} ).hover(function() {
	  	$(this).stop().animate({backgroundPosition:"(0 -58px)"}, {duration:400});
	}, function() {
	  	$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:500});
	});
	$("a.web:not(.web-aktiv)").css( {backgroundPosition: "0px 0px"} ).hover(function() {
	  	$(this).stop().animate({backgroundPosition:"(0px -58px)"}, {duration:400});
	}, function() {
		  $(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:500});
	});

	$("a.rss").css( {backgroundPosition: "-313px 0"} ).hover(function() {
		$(this).stop().animate({backgroundPosition:"(-313px -100px)"}, {duration:400});
	}, function() {
	 	$(this).stop().animate({backgroundPosition:"(-313px 0px)"}, {duration:500});
	});

	// Scroll to Top     
    $('a[href*=#top]').bind("click", function(event) {
        event.preventDefault();
        var ziel = $(this).attr("href");

        $('html,body').animate({
                scrollTop: $(ziel).offset().top
        }, 500);
        return false;
    });
	
	$(".image-block img").mouseover(function(){
		$(this).stop(true,true);
		$(this).fadeTo(300, 0.2);
	});
	
	$(".image-block img").mouseout(function(){
		$(this).fadeTo(400, 1.0);
	});
	
	$("#tagcloud-button").click(function() {
     	$("div#cloud").stop(false,true).slideToggle();     
    });

	$('.st-tags').css('font-size', '15px');
});

