$(document).ready(function(){
	
	//add javascript dependent interactivity instructions
	//$('.getinteractive h2, .shows h2').append(' &gt; <span>Rollover for more</span>');
	//$('.racetomars h2').append(' &gt; <span>Click pictures to read more</span>');

	//add extra markup and show tooltip on hover
	$('.tooltip').wrapInner('<div class="tooltip2"><div class="tooltip3"></div></div>').append('<div class="tooltip4"><div class="tooltip5"></div></div>');
	
	var t;
	$(".shows div.inner, .getinteractive li").hover(
		function () {
			$(this).addClass('hover');
		}, 
		function () {
			$(this).removeClass('hover');
		}
	);	
	$(".shows li, .getinteractive li").hover(
		function () {
			$(this).children('.tooltip').show();
		}, 
		function () {
			$(this).children('.tooltip').hide();
		}
	);	
	
	//quicklinks
	$('.footnav2 form button').click(function(){
		var url = $('#quicklinks').val();
		if(url) {
			window.location.href= url;
		}
		return false;
	});

	// custom scrollbars
	$('.scroller').jScrollPane({showArrows: true});

	//ie6 image flicker fix
	try {
		document.execCommand("BackgroundImageCache", false, true);
	} catch(err) {}

});