var PP_CONFIG = {
    flashVersion: 9,       // version of Flash to tell SoundManager to use - either 8 or 9. Flash 9 required for peak / spectrum data.
    usePeakData: true      // L/R peak data
}

// <![CDATA[

var isHome = true;
soundManager.useFlashBlock = false;
soundManager.bgColor = '#ffffff';
soundManager.wmode = 'transparent';
soundManager.debugMode = false;
soundManager.url = '/swf/';

/*
if (!navigator.userAgent.match(/msie 6/i)) {
    threeSixtyPlayer.config.imageRoot = '/components/demo/360-player/';
}
*/
soundManager.onready(function() {
    if (soundManager.supported()) {
        //_id('sm2-support').style.display = 'none';
        //doChristmasLights();
    }
});

soundManager.onerror = function() {
    // failed to load
/*    var o = _id('sm2-support');
    o.innerHTML = smLoadFailWarning;
    if (soundManager.getMoviePercent()) {
        // movie loaded at least somewhat, so don't show flashblock things
        _id('flashblocker').style.display = 'none';
    }
    o.style.marginBottom = '1.5em';
    o.style.display = 'block';
 */   /*
    o.style.borderColor = '#ff3333';
    o.style.backgroundColor = '#fff6f0';
    */
    /*
    o.style.borderColor = _id('demo-header').style.borderColor = '#ff3333';
    o.style.backgroundColor = _id('demo-header').style.backgroundColor = '#fff6f0';
    */
    // _id('demo-header').innerHTML = '';
    // _id('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.
// 	]]>
	
/*
(function($){
	$.fn.imgCenter = function() {
		return this.each(function(i){
			var org_image = $(this);

			var theParent = org_image.parent();
			var parHeight = parseInt(theParent.height());
			
			if(org_image[0].complete){
				imgMath(org_image);
			} else {
				var loadWatch = setInterval(watch, 500);
			}
			
			function watch(){
				if(org_image[0].complete){
					clearInterval(loadWatch);
					imgMath(org_image);
				}
			}

			function imgMath(org_image) {
				var imgHeight = parseInt(org_image.height());
				org_image.css({"margin-top":Math.round((parHeight - imgHeight) / 2) +"px"});
			}
		});
	}
})(jQuery);

$(document).ready(function() {
    $(".imgJSCenter").imgCenter();
});
*/

