$(document).ready(function() {
  $(".header").show(1000, function(){
    $("#navi").show(1000, function(){
      $("#sponsoren").show(1000, function(){
        $("#inhalt").show(1000);
      });
    });
  });
	$(".rennen").hover(function(){
    $("#rennen").show("slow");
  });
  $("#navi").hover(null, function(){
    $("#rennen").hide("fast");
  });
  $("h1,h2,h3,h4,h5,h6").html(function(i, old){
    return '<span class="curvedcontent">'+old+'</span>';
  });
  $("p").addClass("curvedcontent");
  /*$("a").click(function(e){
    if(e.target.toString().indexOf('gregorhoops.de') != -1){
      e.preventDefault();
      $.post(e.target.toString(), {ajax:"true"}, function(data){
        $("#inhalt").hide(1000, function(){
          $("#inhalt").html(data);
          $("#inhalt").show(1000);
        });
      }, 'html');
    }
  });*/
});
