$(document).ready(function(){

  $("#headerMenu img").hover(
    function(){
      if($(this).attr("src").indexOf("_active") == -1) {
        var newSrc = $(this).attr("src").replace(".jpg","_active.jpg");
        $(this).attr("src",newSrc);
      }
    },
    function(){
      if($(this).attr("src").indexOf("_active.jpg") != -1) {
        var oldSrc = $(this).attr("src").replace("_active.jpg",".jpg");
        $(this).attr("src",oldSrc);
      }
    }
  );


  $('#headerMenu li.headlink').hover(
    function() { $('ul', this).css('display', 'block'); },
    function() { $('ul', this).css('display', 'none'); });


      $('a[rel*=facebox]').facebox({
        loadingImage : 'http://static.amydiamond.se/data/jquery/facebox/loading.gif',
        closeImage   : 'http://static.amydiamond.se/data/jquery/facebox/closelabel.gif'
      });

      $('area[rel*=facebox]').facebox({
        loadingImage : 'http://static.amydiamond.se/data/jquery/facebox/loading.gif',
        closeImage   : 'http://static.amydiamond.se/data/jquery/facebox/closelabel.gif'
      });



});


$(function() {
  $.sifr({
    path: 'http://static.amydiamond.se/data/jquery/sifr/',
    save: true
  });
  $('body.vip h2').sifr({ font: 'You Are Loved', fontSize: '36px' });
});



