// JavaScript Document

window.addEvent('domready', function(){

new SmoothScroll({ duration: 1000, transition: Fx.Transitions.Cubic.easeInOut});

/*
var playVideo = false;
var index = document.URL.indexOf('#');
if (document.URL.substr(index+1) == 'video'){
	playVideo = true;
};
var play = $('btn-play');
var overlay = $('overlay');
if (playVideo){
	overlay.setStyle('display', 'block');
	var topFlash = new SWFObject("video.swf", "overlay-video", "360", "320", "8");
	topFlash.addParam("wmode","transparent");
	topFlash.write("overlay");
} else {
	play.addEvent('click', function(event){
		var event = new Event(event);
		overlay.setStyle('display', 'block');
		var topFlash = new SWFObject("video.swf", "overlay-video", "360", "320", "8");
		topFlash.addParam("wmode","transparent");
		topFlash.write("overlay");
	});
}
*/
if ($('video-container')){
	swfobject.embedSWF("/flash/video-player.swf", "video", stageW, stageH, "9.0.0", false, flashvars, params, attributes);
}

});
