document.write('<link rel="StyleSheet" href="/assets/css/intosomersetjavascript.css" type="text/css" media="screen" />');



function swapVideos(){
      var $active = $('.view-content-featured-videos .active');
      var $next = ($('.view-content-featured-videos .active').next().length > 0) ? $('.view-content-featured-videos .active').next() : $('.view-content-featured-videos li:first');
      $active.fadeOut(function(){
      $active.removeClass('active');
      $next.fadeIn().addClass('active');
      });
    }

    $(document).ready(function(){
		$('.view-content-featured-videos li').hide();
		$('.view-content-featured-videos li:first').show();
		$('.view-content-featured-videos li:first').addClass("active");
      // Run our swapImages() function every 5secs
      setInterval('swapVideos()', 10000);
    });
	
	
function swapHeroes(){
      var $active = $('#block-cck_blocks-field_right_column .active');
      var $next = ($('#block-cck_blocks-field_right_column .active').next().length > 0) ? $('#block-cck_blocks-field_right_column .active').next() : $('#block-cck_blocks-field_right_column p:first');
      $active.fadeOut(2000,function(){
      $active.removeClass('active');
      $next.fadeIn(2000).addClass('active');
      });
    }

	
	
/* Flash Map Show/Hide */

// set show/hide defaults
$(document).ready(function(){
	toggleArea("area0");
});
// hide all
function resetToggleArea(){
	$(".areaTxt").hide();
}
// show area specified from flash
function toggleArea(area){
	resetToggleArea();
	$("div#"+area).show();
}


/* Show/hide Area text for non-flash users */

$(document).ready(function(){
	//onclick of anchor link
	$('#altFlashMap li a').click(function(){
		//get id from url on href
		var targId = this.href.split('#');
		toggleArea(targId[1]);
		return false;
	});
});