$(document).ready(function() {
	
	// the variable cancelFlashIntroduction is set to true if the flash should not display the intro
	// and instead go straight to the carousel
	
	var so = new SWFObject("/workspace/assets/flash/randomizingintro.swf", "intro", "901", "484", "8", "#fff");
	so.addParam("scale", "noscale");
	so.addParam("salign", "lt");
	so.addParam("wmode", "transparent");
	
	if (window.location.hash.indexOf("home") != -1) {
		so.addVariable("cancelFlashIntroduction", "true");
	}
		
	$('#wrapper').css('opacity', 0);
		
	if (! so.write("intro-movie") ) {
		startRotate();
	}
});

function introStart() { }

function introEnd() {
	$('#wrapper').animate({ opacity: .99999 }, 1000);
}