$(document).ready(function() {
	
	// compliant new window code
	$('a[rel="external"]').attr('target', '_blank');
	
	// header promo panel
	$('#slideshow').after('<div id="slideshow-nav"></div>').cycle({ 
		fx:     'fade', 
		speed:  1000, 
		timeout: 7000, 
		pager:  '#slideshow-nav',
		pause: 1 
	});
	
		
	// fancybox
	$("a.fancy-image").fancybox();
	
	// video section tabs
	$(".video-list-tabs li a").click(function(){
		$(".video-list-tabs li a").removeClass('selected'); // kill selected tab state
		$("ul.video-list").hide(); // hide all video thumbs
		$(this).addClass('selected'); // highlight current tab
		var current_video_section = $(this).attr('href'); // grab the section to show
		$("ul#"+current_video_section).fadeIn('fast'); // show the current section
		//do the omniture on the selected tab
		
		return false;
	});
	
	// form placeholder text removal
	$('form input').focus(function(){
		if($(this).val() == "Email Address" || $(this).val() == "Zip Code"){
			$(this).val('');
		}
	});
	$('.attraction').click(function(){
		s=s_gi(s_account);
		s.linkTrackVars='prop18,events';
		s.linkTrackEvents = 'event16';
		s.events = 'event16';
		s.prop18 = $(this).attr('name').toLowerCase();
		s.tl(this, 'o', 'Attractions Clicks');
		});
});
