/*	AVAILABLE DATA
	thisCommand_obj
		data						This command's data
		run()						This function
		nextEvent()			Function that triggers the next sibling command
		storeTimeout()	Function that stores this command's timeout ID   (used to stop the script)
			var waitId = setTimeout( parentScript.nextEvent, thisCommand_obj.data.value*1000 );
			thisCommand_obj.storeTimeout( waitId );
*/
// run()
define_fadeMusic = function( thisCommand_obj ){
	
	
	if(TRACE_SCRIPT)
		trace("fadeMusic");
	// music fade
	var endVolume = thisCommand_obj.data.volume;
	var seconds = thisCommand_obj.data.duration;
	MUSIC.fadeTo( endVolume, seconds );
	
	
	// instantly done
	return VOW.make().keep();
	
	
}// define_fadeMusic()