//	SoundManagerJ for JavaScript	Release 1	2004/4/17
//			Copyright 2004 Isawo-Kikuchi All rights reserved

var soundid = 0;
function Sound( num ){
	this.id = "snd"+soundid++;
	this.num = num;
	document.write( "<applet code=\"Audio.class\" id=\""+this.id+"\" width=0 height=0 style=\"position:absolute;visibility:hidden;\"><param name=\"num\" value=\""+num+"\"></applet>" );
	this.set = function( n, filename ){
		document.getElementById( this.id ).SetFileName( n, filename );
	}
	this.play = function( n ){
		document.getElementById( this.id ).Play( parseInt(n) );
	}
	this.stop = function( n ){
		document.getElementById( this.id ).Stop( parseInt(n) );
	}
}
