//window.addEvent('domreadys', function() {

//soundManager.url = '/projects/pianist/resources/js/soundmanager/'; // directory where SM2 .SWFs live

// disable debug mode after development/testing..
// soundManager.debugMode = false;
	
addOnLoad( function() {	
	if($('menu'))
		var Menu = new SlideList($E('ul', 'menu'), {transition: Fx.Transitions.backOut, duration: 700, onClick: function(ev, item) { /*ev.stop();*/ }});
	var obc = $('center') ;
	if( obc ) {		// rozciagniecie tresci
		var c_height = $('content').offsetHeight ;
		if( c_height > obc.offsetHeight ) obc.style.height = c_height+'px' ;
		else obc.style.height = obc.offsetHeight + 20 +'px' ; //alert(obc.offsetHeight);//
	}
		
	//Bach-Hess - Jesu Bleibet meine Freude.mp3	
//	soundManager.createSound('helloWorld','project/pianist/resources/application/sounds/main/Bach-Hess - Jesu Bleibet meine Freude.mp3');
//  	soundManager.play('helloWorld');	
	FLIR.init();
	/*alert($('header').innerHTML);*/
	//FLIR.replace($('header'));
	FLIR.auto(['h1']);	
});

/*soundManager.onload = function() {
  // SM2 has loaded - now you can create and play sounds!
  soundManager.createSound('helloWorld','projects/pianist/resources/application/sounds/main/Bach-Hess - Jesu Bleibet meine Freude.mp3');
  soundManager.play('helloWorld');
}*/



