
$(document).ready(function(){

<!-- LOGO HOVER -->
  $("img.logo-1").hover(
	function() {
	$(this).stop().animate({"opacity": "0"}, 300);
	$("img.logo-2").stop().animate({"opacity": "1"}, 300);
	}, 
	function() {
	$(this).stop().animate({"opacity": "1"}, 300);
	$("img.logo-2").stop().animate({"opacity": "0"}, 300);
	});
  
<!-- PREV. / NEXT BLOG ENTRIES ITEM HOVER -->
  $("#previous_posts a").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#e2e2e2"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#ffffff"}, 300);
	});
  $("#next_posts a").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#e2e2e2"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#ffffff"}, 300);
	});
  
<!-- MORE TWEETS BUTTON HOVER -->
  $("#more-tweets a").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#e2e2e2"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#ffffff"}, 300);
	});

<!-- MENU ITEM HOVER -->
  $("#hauptmenu li a").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#000000", color: "#ffffff"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#ffffff", color: "#000000"}, 300);
	});
  
 

<!-- BUTTON HOVER -->
  $(".button").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#000000"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#ff3c3c"}, 300);
	});
  
 <!-- POST COMMENT HOVER -->
  $(".form-submit input").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#000000"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#ff3c3c"}, 300);
	});
  
 <!-- CLOSE BUTTON HOVER -->
  $(".close").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#000000"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#ff3c3c"}, 300);
	});
  
 <!-- WORK ITEM HOVER -->
  $(".info").hover(
	function() {
	$(this).stop().animate({opacity: "1"}, 300);
	}, 
	function() {
	$(this).stop().animate({opacity: "0"}, 300);
	});

<!-- TAG ITEM HOVER -->
  $(".tags a").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#000000"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#ff3c3c"}, 300);
	});

<!-- SOCIAL SHARE ITEM HOVER -->
  $(".social ul li a.social_facebook").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#ff3c3c"}, 300);
	$(".social ul li a.social_facebook span").stop().animate({opacity: "1"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#000000"}, 300);
	$(".social ul li a.social_facebook span").stop().animate({opacity: "0"}, 300);
	});
  
<!-- SOCIAL SHARE ITEM HOVER -->
  $(".social ul li a.social_twitter").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#ff3c3c"}, 300);
	$(".social ul li a.social_twitter span").stop().animate({opacity: "1"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#000000"}, 300);
	$(".social ul li a.social_twitter span").stop().animate({opacity: "0"}, 300);
	});
  
<!-- SOCIAL SHARE ITEM HOVER -->
  $(".social ul li a.social_mail").hover(
	function() {
	$(this).stop().animate({backgroundColor: "#ff3c3c"}, 300);
	$(".social ul li a.social_mail span").stop().animate({opacity: "1"}, 300);
	}, 
	function() {
	$(this).stop().animate({backgroundColor: "#000000"}, 300);
	$(".social ul li a.social_mail span").stop().animate({opacity: "0"}, 300);
	});
  
<!-- SOCIAL MAIL FORM ACTIVATING -->
  $(".mailformopen").click(
	function() {
	$("#sc1").show("slide", { direction: "left" }, 400);
	});
  $(".mailformclose").click(
	function() {
	$("#sc1").hide("slide", { direction: "left" }, 400);
	});
  
<!-- GERMAN DESCRIPTION ACTIVATING -->
  $(".content1").hover(
	function() {
	$("div.germandescription").stop().animate({"opacity": "1"}, 300);
	}, 
	function() {
	$("div.germandescription").stop().animate({"opacity": "0"}, 300);
	});
  
<!-- UNTAG ACTIVATING -->
  $(".untag").hover(
	function() {
	$(this).stop().animate({"opacity": "1"}, 300);
	}, 
	function() {
	$(this).stop().animate({"opacity": "0"}, 300);
	});
  
<!-- INDEX PAGE IMAGE INFO ACTIVATING -->
  $(".startpageinfobutton").hover(
	function() {
	$(".startpageinfo").stop().animate({"opacity": "1"}, 300);
	$(".startpageinfobutton").stop().animate({"opacity": "0"}, 300);
	},
	function() {});
  $(".startpageinfo").hover(
	function() {},
	function() {
	$(".startpageinfo").stop().animate({"opacity": "0"}, 300);
	$(".startpageinfobutton").stop().animate({"opacity": "1"}, 300);
	});
  
<!-- INDEX PAGE RANDOM IMAGE ON START -->
	var numRand = Math.floor(Math.random()*9);
	if (numRand == 2) {
			$(".page").addClass("startat-2");
	} 
	if (numRand == 3) {
			$(".page").addClass("startat-3");
	} 
	if (numRand == 4) {
			$(".page").addClass("startat-4");
	} 
	if (numRand == 5) {
			$(".page").addClass("startat-5");
	} 
	if (numRand == 6) {
			$(".page").addClass("startat-6");
	} 
	if (numRand == 7) {
			$(".page").addClass("startat-7");
	} 
	if (numRand == 8) {
			$(".page").addClass("startat-8");
	} 
	if (numRand == 9) {
			$(".page").addClass("startat-9");
	} 
	if (numRand == 10) {
			$(".page").addClass("startat-10");
	} 
	else {
		    $(".page").addClass("startat-1");
	};
	
	
	
	
});

