//requires jquery scrollto
var jumpPointId = -1;
$(document).ready(function () {
	$(".jumppoint_link").click(function (e) {
		$.scrollTo('#title', 1200);
		try {
			Framewelder_flash_player_v2_remoting.setTimeCode("flash_player", $(this).attr("alt"));
		} catch (err) {}
	}).mouseover(function (e) {
		$(this).css('cursor', 'pointer');
	}).mouseout(function (e) {
		$(this).css('cursor', 'auto');
	});
	$(".jumppoint_image").click(function (e) {
		$.scrollTo('#title', 1200);
		try {
			Framewelder_flash_player_v2_remoting.setTimeCode("flash_player", $(this).attr("alt"));
		} 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');
		}
	});
});

