$(document).ready(function() {
	
	
$(".hintergrund_1").addClass("hintergrund");

$('.buttonpic span').click(function () { 
     var wert = $(this).attr("id");
     var wertdata = $(this).attr("id");
     var werthintergrund = $(this).attr("id");
     $('.bilderdaten').hide();
     $('#bild_'+wert).show();
     $('.buttonpic span').removeClass("hintergrund");
     $(".hintergrund_"+wertdata).addClass("hintergrund");
});	
	
	
	$("#commentForm").validate();
	
	$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',slideshow:10000, theme:'dark_rounded'});
	
$("img.a").hover(
	function() {
		$(this).stop().animate({"opacity": "0"}, "slow");
	},
	function() {
		$(this).stop().animate({"opacity": "1"}, "slow");
	});

	
	
$("#icon1").hover(
  function () {
    $("#footerbox1").show();
    $("#footerbox2").hide();
    $("#footerbox3").hide();
    $("#footerbox4").hide();
  }, 
  function () {
    $("#footerbox2").hide();
    $("#footerbox3").hide();
    $("#footerbox4").hide();
  }
);

$("#icon2").hover(
  function () {
    $("#footerbox2").show();
    $("#footerbox1").hide();
    $("#footerbox3").hide();
    $("#footerbox4").hide();
  }, 
  function () {
  $("#footerbox1").show();
    $("#footerbox2").hide();
    $("#footerbox3").hide();
    $("#footerbox4").hide();
  }
);

$("#icon3").hover(
  function () {
    $("#footerbox3").show();
    $("#footerbox1").hide();
    $("#footerbox2").hide();
    $("#footerbox4").hide();
  }, 
  function () {
  $("#footerbox1").show();
    $("#footerbox3").hide();
    $("#footerbox4").hide();
    $("#footerbox2").hide();
  }
);

$("#icon4").hover(
  function () {
    $("#footerbox4").show();
    $("#footerbox1").hide();
    $("#footerbox2").hide();
    $("#footerbox3").hide();
  }, 
  function () {
  $("#footerbox1").show();
    $("#footerbox2").hide();
    $("#footerbox3").hide();
    $("#footerbox4").hide();
  }
);


});

