//requires jquery scrollto $(document).ready(function () { var jumpPointId = -1; $(".jumppoint_link").click(function (e) { $.scrollTo('#presentation_title', 1200); try { Main.setTimeCode("flash_player", $(this).attr("tc")); } catch (err) {} }).mouseover(function (e) { $(this).css('cursor', 'pointer') .parents() .each(function (intIndex) { if ($(this).hasClass('jcontainer')) { jumpPointId = $(this).attr('id'); } }); if (jumpPointId != -1) { $('#' + jumpPointId + ' .jumppoint_image').addClass('hover'); } }).mouseout(function (e) { $(this).css('cursor', 'auto'); if (jumpPointId != -1) { $('#' + jumpPointId + ' .jumppoint_image').removeClass('hover'); } jumpPointId = -1; }); $(".jumppoint_image").click(function (e) { $.scrollTo('#presentation_title', 1200); try { Main.setTimeCode("flash_player", $(this).attr("tc")); } catch (err) {} }).mouseover(function (e) { $(this).css('cursor', 'pointer'); $(this) .parents() .each(function (intIndex) { if ($(this).hasClass('jcontainer')) { jumpPointId = $(this).attr('id'); } }); if (jumpPointId != -1) { $('#' + jumpPointId + ' a.jumppoint_link').addClass('selected'); } }).mouseout(function (e) { $(this).css('cursor', 'auto'); if (jumpPointId != -1) { $('#' + jumpPointId + ' a.jumppoint_link').removeClass('selected'); jumpPointId = -1; } }); });