﻿
$(document).ready(function() { $('#thumbs-wrapper img').stop().animate({ opacity: 0.0 }); $('#thumbs-wrapper img').each(function() { $(this).hover(function() { $(this).stop().animate({ opacity: 1.0 }, 500); }, function() { $(this).stop().animate({ opacity: 0.0 }, 500); }); }); $(function() { $("#nav img").hover(function() { if ($(this).attr("id") == "imgArt") { $("#imgStills").show(); } else if (window.parent.location.href.indexOf("stills/") <= 0) { $("#imgStills").hide(); } if ($(this).attr("class") != "selected") { $(this).attr("src", $(this).attr("src").split(".").join("-rollover.")); } }, function() { if ($(this).attr("class") != "selected") { $(this).attr("src", $(this).attr("src").split("-rollover.").join(".")); } if ($(this).attr("id") == "imgStills") { } }); $('#nav-sub img').mouseout(function() { if (window.parent.location.href.indexOf("stills/") <= 0) { $("#imgStills").hide(); } }); }); }); $(document).keydown(function(e) { if (e.keyCode == 37) { $('a[href="#prev-image"]').click(); return false; } }); $(document).keydown(function(e) { if (e.keyCode == 39) { $('a[href="#next-image"]').click(); return false; } });
