﻿$(document).ready(function() {
  $("#ctl00_cphHeader_ucHeader_imgFacebook").hover(function() {
    $(this).attr("src", path + "/assets/images/icons/seagate_social_fb_icon_hdr_on.gif");
  }, function() {
    $(this).attr("src", path + "/assets/images/icons/seagate_social_fb_icon_hdr_off.gif");
  });

  $("#ctl00_cphHeader_ucHeader_imgTwitter").hover(function() {
    $(this).attr("src", path + "/assets/images/icons/seagate_social_fb_icon_hdr_on-05.gif");
  }, function() {
    $(this).attr("src", path + "/assets/images/icons/seagate_social_twit_icon_hdr_off.gif");
  });
});

function disableEnterKey(e) {
  var key;

  if (window.event)
    key = window.event.keyCode;     //IE
  else
    key = e.which;     //firefox

  if (key == 13)
    return false;
  else
    return true;
}

function getHash(url) {
  var hashPos = url.lastIndexOf('#');
  return url.substring(hashPos + 1);
}


