    function tieroneover() 
		{
			document.tiermovie.tier1over();
		}
	function tiertwoover() 
		{
			document.tiermovie.tier2over();
		}
	function tierthreeover() 
		{
			document.tiermovie.tier3over();
		}
	function tierreset() 
		{
			document.tiermovie.allreset();
		}

/* Index Page Tier Anchor Fading */
function tier1up() {
   $('#tier1').stop().animate({
		opacity: 1
	}, 250);
	$('#tier2').stop().animate({
		opacity: .2
	}, 250);
	$('#tier3').stop().animate({
		opacity: .2
	}, 250);
}

function tier2up() {
   $('#tier1').stop().animate({
		opacity: .2
	}, 250);
	$('#tier2').stop().animate({
		opacity: 1
	}, 250);
	$('#tier3').stop().animate({
		opacity: .2
	}, 250);
}

function tier3up() {
   $('#tier1').stop().animate({
		opacity: .2
	}, 250);
	$('#tier2').stop().animate({
		opacity: .2
	}, 250);
	$('#tier3').stop().animate({
		opacity: 1
	}, 250);
}

function allup() {
   $('#tier1').stop().animate({
		opacity: 1
	}, 250);
	$('#tier2').stop().animate({
		opacity: 1
	}, 250);
	$('#tier3').stop().animate({
		opacity: 1
	}, 250);
};


/* Crossfade */

// wrap as a jQuery plugin and pass jQuery in to our anoymous function
(function ($) {  
	$.fn.cross = function (options) {
		return this.each(function (i) { 
			// cache the copy of jQuery(this) - the start image
			// similar effect as single image technique, except using .animate 
			// which will handle the fading up from the right opacity for us
			$('#tier1').hover(function () {
				tier1up();
			}, function () {
				allup();
			});
			$('#tier2').hover(function () {
				tier2up();
			}, function () {
				allup();
			});
			$('#tier3').hover(function () {
				tier3up();
			}, function () {
				allup();
			});
		});
	};
	
})(jQuery);

// note that this uses the .bind('load') on the window object, rather than $(document).ready() 
// because .ready() fires before the images have loaded, but we need to fire *after* because
// our code relies on the dimensions of the images already in place.
$(window).bind('load', function () {
	$('#tier1').cross();
	$('#tier2').cross();
	$('#tier3').cross();
});
