	
	/*
	JS
	--------------------------------------------------------------------------------------------  
	@site			sho.com/thebigc
	@file			Randomize.js
	@author			ncavanagh
	@desc			randomizes masthead image on secondary pages, but not for IE6
	@depend			prototype, sho
	
	/* =:Randomize
	-------------------------------------------------------------------------------------------- */  
	Randomize = function()
	{	
		/* =:Private
		  -----------------------------------------------------------------------------------------*/  
		function init()
		{	
			if( $('series-masthead-inner') ) { 
				randomizeMastheadImg(); 
			}
		}

		function randomizeMastheadImg()
		{	
			if( !sho.core.Utils.isIE6() ) {
				var idx = Math.floor( Math.random() * 6 );
				idx++;
				var masthead = $('series-masthead-inner');
				masthead.addClassName('masthead0'+idx);
				Effect.Appear(masthead, { duration: 0.5 });
			}
		}
			
		/* =:Public
		  -----------------------------------------------------------------------------------------*/  
		return {
			init:init
		}
	
	}();
	
	document.observe("dom:loaded", function() { 
		Randomize.init();
	});	
	
	
