
/*===============================================================================
	featuredFilms.js
	John Larson
	5/07/08
	
	All page-specific JavaScript for featuredFilms.asp

===============================================================================*/


window.addEvent('domready', function() {
	dbug.enable();
	
	$$('#movieMenu img').each(function(theButton, index) {
		theButton.addClass('clickable');
		theButton.addEvent('click', function() {
			loadMovie(index);
		});
	});
	
	if (window.ie6) {
		$$('#usesMenu div').each(function(theButton, index) {
			theButton.addEvent('mouseenter', function() {
				theButton.addClass('hover');
			});
			theButton.addEvent('mouseleave', function() {
				theButton.removeClass('hover');
			});
		});
		
	}
	
});


/****************************************************************************
//	SECTION::Movie Display Transition
*/
	
	var currentMovieID = 0;
	function loadMovie(movieID) {
		if (movieID == currentMovieID)
			return;
		
	//	$('useButton' + currentMovieID).removeClass('current');
		swapSections('movieDetails' + currentMovieID, 'movieDetails' + movieID);
		currentMovieID = movieID;
	//	$('useButton' + movieID).addClass('current');
	}
	
/*
//	End SECTION::Movie Display Transition
****************************************************************************/