$(document).ready(function() { 
    $("#scroller").simplyScroll({
      autoMode: 'loop'
    });
  });

$(function() {
  $('img[data-hover]').hover(function() {
    $(this).attr('tmp', $(this).attr('src')).attr('src', $(this).attr('data-hover')).attr('data-hover', $(this).attr('tmp')).removeAttr('tmp');    }).each(function() {
    $('<img />').attr('src', $(this).attr('data-hover'));
  });;
});
$(function() {
  $('.rollover').hover(function() {
    var currentImg = $(this).attr('src');
    $(this).attr('src', $(this).attr('hover'));
    $(this).attr('hover', currentImg);
  }, function() {
    var currentImg = $(this).attr('src');
    $(this).attr('src', $(this).attr('hover'));
    $(this).attr('hover', currentImg);
  });
});



      $(document).ready(function()
      {
        if ($.cookie('hidefb')=='1'){$("#SMPopup").hide();}
                        else{
        // Style the FB pop up
        $("#fbPopup").css("background-color","white");
        $("#fbPopup").css("width","320px");
        $("#fbPopup").css("height","320px");
        $("#fbPopup").css("left","800px");
        $("#fbPopup").css("top","320px");
        $("#fbPopup").css("position","absolute");
        $("#fbPopup").css("z-index","999");
  
        // Style the close button        
        $("#fbPopupClose").css("float","right");
        $("#fbPopupClose").css("color","black");
        $("#SMClose").css("cursor","pointer");
      }

        $("#SMClose").click(function ()
        {
          $("#SMPopup").hide();
          $.cookie('hidefb', '1', { expires: 7 });
        });              
      });



