
var valore = "Seleziona"
function alza(){

	if (MediaPlayer.Volume != 0)

		MediaPlayer.Volume = MediaPlayer.Volume + 200

}
function abbassa(){

	if (MediaPlayer.Volume != -10000)

		MediaPlayer.Volume = MediaPlayer.Volume - 200

}

function sel(){
	if (staz.value != "")	
		window.setTimeout("ascolta()",50)
	else
		MediaPlayer.FileName = staz.value 
	stat.innerHTML  = "&nbsp;Loading..";
	kbps.innerHTML  = "&nbsp;Loading.";
	perc.innerHTML  = "&nbsp;Loading..";

}
function ascolta(){

MediaPlayer.SendOpenStateChangeEvents = "true";
	MediaPlayer.FileName = staz.value;
	MediaPlayer.AutoStart = "True";
	window.setInterval ("stato()",800);
}

function stato(){
	kbps.innerHTML  = "&nbsp;" + parseInt(MediaPlayer.Bandwidth / 1024) + " Kbps";
	perc.innerHTML  = "&nbsp;" + MediaPlayer.BufferingProgress + " %";
	valore = MediaPlayer.OpenState;
	if (valore == 0){

		valore = "&nbsp;Stop";
	}
if (valore == 1){
		valore = "Download..";
			}
	if (valore == 2){
		valore = "Apro..";
	}
	if (valore == 3){
		valore = "Ricerca..";
	}

	if (valore == 4){

		valore = "Connesso..";

		

	}

	if (valore == 5){

		valore = "Buffering..";

		

	}

	if (valore == 6){

		valore = "OK!!";

		

	}

	

	stat.innerHTML =  valore;

}



function noright() {

if (event.button==2) 

	alert('Tasto Disabilitato')

}



function girasu(img){

	volsu.src = img	

}

function giragiu(img){

	volgiu.src = img	

}