// JavaScript Document
var isHome = true;
	soundManager.bgColor = '#000000';
	soundManager.wmode = 'transparent';
	if (navigator.platform.match(/win32/i) && !navigator.userAgent.match(/msie/i)) {
	  // special case: Windows and wmode transparent don't get along. Sacrifice background color.
	  soundManager.bgColor = '#f9f9f9';
	}	
	soundManager.debugMode = false;
	soundManager.url = 'swf/';

if (!navigator.userAgent.match(/msie 6/i)) {
	threeSixtyPlayer.config.imageRoot = 'demo/360-player/';
}
	soundManager.onready(function() {
	  doChristmasLights();
	});
	soundManager.onerror = function() {
	  // failed to load
	  var o = $('sm2-support');
	  o.innerHTML = smLoadFailWarning;
      o.style.marginBottom = '1.5em';
	  o.style.display = 'block';
	  o.style.borderColor = $('demo-header').style.borderColor = '#ff3333';
	  o.style.backgroundColor = $('demo-header').style.backgroundColor = '#fff6f0';
      $('demo-header').innerHTML = '';
	  $('demos').style.display = 'none';
	}	
	pagePlayer.events.metadata = function() {
	  // video-only stuff
	  var sm = soundManager;
	  // set the SWF width and height..
	  var sm2c = document.getElementById('sm2-container');
	  sm2c.style.width = '100%';
	  sm2c.style.height = parseInt(this.height*(parseInt(sm2c.offsetWidth)/this.width))+'px';
	}	
	// side note: If it's not december but you want to smash things, try #christmas=1 in the homepage URL.	
