function Sound(_1){
this.options=_1;
if(this.options==undefined){
this.options=new Object();
}
if(!this.options.swfLocation){
this.options.swfLocation="js/SoundBridge.swf";
}
if(Sound.id_count==undefined){
Sound.id_count=1;
}else{
Sound.id_count++;
}
if(Sound.instances==undefined){
Sound.instances=new Object();
}
this.object_id="object_id_"+Sound.id_count;
Sound.instances[this.object_id]=this;
movie_swf=this.options.swfLocation;
movie_id=this.object_id;
movie_element="";
movie_element+="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"0\" height=\"0\"";
movie_element+=" id=\""+movie_id+"\"";
movie_element+=" align=\"middle\">";
movie_element+="<param name=\"movie\" value=\""+movie_swf+"\" />";
movie_element+="<param name=\"quality\" value=\"high\" />";
movie_element+="<param name=\"bgcolor\" value=\"#ffffff\" />";
movie_element+="<param name=\"FlashVars\" value=\"id="+movie_id+"\"/>";
movie_element+="<param name=\"allowScriptAccess\" value=\"allowScriptAccess\"/>";
movie_element+="<embed src=\""+movie_swf+"\" FlashVars=\"id="+movie_id+"\"";
movie_element+=" allowScriptAccess=\"always\" quality=\"high\" bgcolor=\"#ffffff\" width=\"0\" height=\"0\"";
movie_element+=" name=\""+movie_id+"\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
movie_element+="</object>";
if(document.getElementById("__sound_flash__")==undefined){
var _2=document.createElement("div");
_2.id="__sound_flash__";
document.body.appendChild(_2);
}
document.getElementById("__sound_flash__").innerHTML+=movie_element;
}
Sound.prototype.loadSound=function(_3,_4){
return Sound.__call("loadSound",this.object_id,_3,_4);
};
Sound.prototype.start=function(){
return Sound.__call("start",this.object_id);
};
Sound.prototype.stop=function(){
return Sound.__call("stop",this.object_id);
};
Sound.prototype.getId3=function(){
return Sound.__call("id3",this.object_id);
};
Sound.prototype.getPan=function(){
return Sound.__call("getPan",this.object_id);
};
Sound.prototype.getTransform=function(){
return Sound.__call("getTransform",this.object_id);
};
Sound.prototype.getVolume=function(){
return Sound.__call("getVolume",this.object_id);
};
Sound.prototype.setPan=function(_5){
return Sound.__call("setPan",this.object_id,_5);
};
Sound.prototype.setTransform=function(_6){
return Sound.__call("setTransform",this.object_id,_6);
};
Sound.prototype.setVolume=function(_7){
return Sound.__call("setVolume",this.object_id,_7);
};
Sound.prototype.start=function(_8,_9){
return Sound.__call("start",this.object_id,_8,_9);
};
Sound.prototype.getDuration=function(){
return Sound.__call("getDuration",this.object_id);
};
Sound.prototype.setDuration=function(_a){
return Sound.__call("setDuration",this.object_id,_a);
};
Sound.prototype.getPosition=function(){
return Sound.__call("getPosition",this.object_id);
};
Sound.prototype.setPosition=function(_b){
return Sound.__call("setPosition",this.object_id,_b);
};
Sound.prototype.getBytesLoaded=function(){
return Sound.__call("getBytesLoaded",this.object_id);
};
Sound.prototype.getBytesTotal=function(){
return Sound.__call("getBytesTotal",this.object_id);
};
Sound.prototype.onLoad=function(_c){
Sound.trace("Sound:onLoad("+_c+") event triggered");
};
Sound.onLoad=function(_d,_e){
Sound.instances[_d].onLoad(_e);
};
Sound.prototype.onSoundComplete=function(){
Sound.trace("Sound:onSoundComplete() event triggered");
};
Sound.onSoundComplete=function(_f){
Sound.instances[_f].onSoundComplete;
};
Sound.prototype.onID3=function(){
Sound.trace("Sound:onID3() event triggered");
};
Sound.onID3=function(_10){
Sound.instances[_10].onID3();
};
Sound.trace=function(_11,_12){
if(document.getElementById("sound_tracer")!=undefined){
if(_12==undefined||_12==true){
document.getElementById("sound_tracer").value+="Javascript: "+_11+"\n";
}else{
document.getElementById("sound_tracer").value+=_11+"\n";
}
}
};
Sound.__thisMovie=function(_13){
if(navigator.appName.indexOf("Microsoft")!=-1){
return window[_13];
}else{
return document[_13];
}
};
Sound.__call=function(){
Sound.trace("Sound.__call "+arguments[0]+" on object_id "+arguments[1]);
var _14=arguments[0];
var _15=arguments[1];
var _16=new Array();
if(arguments.length>1){
for(var i=2;i<arguments.length;i++){
_16.push(arguments[i]);
}
}
return Sound.__thisMovie(_15).proxyMethods(_14,_16);
};

