jQuery(function () {
  $("#bottomWrap div.grid_3").mouseover(function() {
    $(this).addClass("over");
  }).mouseout(function() {
    $(this).removeClass("over");
  });
  $(".tx-mp3list-pi1 .sermondownloaditem").mouseover(function() {
    $(this).addClass("ro");
  }).mouseout(function() {
    $(this).removeClass("ro");
  }).click(function() {
      var link = $(this).find("a").attr("href");
      parent.location=link;
  });

  $("#credits a img").mouseover(function() {
    var sti = $(this).attr("src");
    var nysti = sti.replace(".", "_ro.");
    $(this).attr("src",nysti);
  }).mouseout(function() {
    var sti = $(this).attr("src");
    var glsti = sti.replace("_ro.", ".");
    $(this).attr("src",glsti);  
  });
  
  $("#kalender ul li .eventWrap").mouseover(function() {
    $(this).addClass("ro");
    Cufon.refresh();
  }).mouseout(function() {
    $(this).removeClass("ro");
    Cufon.refresh();
  });


});

//FONT REPLACEMENT
Cufon.replace('#mainMenu ul li a, #content h1, #content h2, #content h3, #kalender .items .day, #kalender .items .event .time, #frise div#overlay p a, #mereom h1, #mereom h2, #mereom ul li a, #kalender ul li .eventWrap .title, #kalender h1, #kalender h2, #kalender a.all, #aktuelt h1, #aktuelt a.all, #content .sermondownloaditem span a', { fontFamily: 'DIN 1451 Std', hover:true });

