$(document).ready(function(){

  // hover on footer links
  $(".left_links ul li").each(function(){
    li =  $(this);
    $(this).hover(function () {
      var re = new RegExp("off\.png");
      offImgSrc = $(this).find("img").attr("src");
      onImgSrc = offImgSrc.replace(re, "on.png");
      $(this).find("img").attr("src", onImgSrc);
    },
    function () {
      var re2 = new RegExp("on\.png");
      onImgSrc = $(this).find("img").attr("src");
      offImgSrc = onImgSrc.replace(re2, "off.png");
      $(this).find("img").attr("src", offImgSrc);
    });
  });

  //rss bubble
  $("img.rss").mouseenter(function(){
    $(".rss_bubble").show();
  });

  $(".rss_bubble").mouseleave(function(){
    $(this).hide();
  });

  //newsletter
  $("a.fancyboxNewsletter").each(function(){
    $(this).fancybox({
      showCloseButton: false,
      showNavArrows: false,
      padding: 0,
      margin: 0,
      width: 710,
      height: 180,
      titleShow: false
    });
  });

  //IEBMS
  $("a.fancybox").fancybox({
    'width'         : 800,
    'height'        : 700,
    'autoScale'     : false,
    'transitionIn'  : 'none',
    'transitionOut' : 'none',
    'type'          : 'iframe'
  });
});
