        soundManager.url = 'assets/flash/'; // directory where SM2 .SWFs live.
	soundManager.debugMode = false;
	// Note that SounndManager will determine and append the appropriate .SWF file to the URL.

	// disable debug mode after development/testing..
	// soundManager.debugMode = false;

	// Option 2: More flexible createSound method (recommended)
	var mySound;
	function playStream() {
if (ip=="79.98.162.226") {
		mySound = soundManager.createSound({
		    id: 'stream',
		    url: 'http://192.168.28.32:443/;'
		  });
}
else {
		mySound = soundManager.createSound({
		    id: 'stream',
		    url: 'http://oscar-radio.org:8000/;'
		  });
}
		  mySound.play();
		  document.getElementById("buttonimg").src="/assets/images/listenbut/playingbut.png";
	}
	function killStream() {
		soundManager.destroySound('stream');
	}
	
function init() {

	document.getElementById("buttonimg").src="/assets/images/listenbut/listenbut.png"
	function startStream() {
		document.getElementById("buttonimg").src="/assets/images/listenbut/loadingbut.png"
		playStream();
		document.getElementById("button").onclick = stopStream;
		
	}
	function stopStream() {
		killStream()
		document.getElementById("buttonimg").src="/assets/images/listenbut/listenbut.png"
		document.getElementById("button").onclick = startStream;
	}
	var buttonObj=document.getElementById("button");
	buttonObj.onclick=function(){
			startStream();
	}
}
soundManager.onload=function(){init();}
