// JavaScript code for Social Media Links

$(document).ready(function() {

// When the mouse hovers over an img, switch it with its '-hover.gif' equivalent.
$(".social-media-links img").hover(
  function() { 
	var src = $(this).attr("src").match(/[^\.]+/) + "-hover.gif";
	$(this).attr("src", src);
  },
  function() {
	var src = $(this).attr("src").replace("-hover", "");
	$(this).attr("src", src);
  });
})


// When mouse hovers over text link, change corresponding image
function roll(img_name1, img_src1)
{
document[img_name1].src = img_src1;
}

