var volume_status = 60;

function btn_rollover (btn_id,ch_img,ch_alt)
{
	eval(btn_id).src=ch_img;
	if (ch_alt !='') {eval(btn_id).alt=ch_alt;}
}

function webplayer_btn_play (btn_id,fir_img,sec_img)
{
	if ((webplayer.playstate == 3) | (webplayer.playstate == 6)) {
		if (eval(btn_id).alt!="") {btn_rollover (btn_id,fir_img,"Á¤Áö");}
		else {btn_rollover (btn_id,fir_img,"");}
	}
	else  {
		if (eval(btn_id).alt!="") {btn_rollover (btn_id,sec_img,"µè±â");}
		else {btn_rollover (btn_id,sec_img,"");}
	}
}
function webplayer_act_play ()
{
	if((webplayer.playstate == 3) | (webplayer.playstate == 6)) {
		webplayer.controls.stop();
	}
	else {
		webplayer.controls.play();
	}
}
function webplayer_play ()
{
	webplayer.controls.play();
}
function webplayer_stop ()
{
	webplayer.controls.stop();
}
function webplayer_volup ()
{
	if( webplayer.settings.Volume < 100)
		volume_status = webplayer.settings.Volume +=10;
}
function webplayer_voldown ()
{
	if( webplayer.settings.Volume > 0)
		volume_status = webplayer.settings.Volume -=10;
}
function webplayer_ch_vol_to (vol)
{
	volume_status = webplayer.settings.Volume = vol;
}
function webplayer_mute (img1,img2)
{
	if(!webplayer.settings.mute) {
		webplayer.settings.mute='true';
		btn_rollover (btn_mute,img1,'À½¼Ò°Å ÇØÁ¦');}
	else {
		webplayer.settings.mute='false';
		btn_rollover (btn_mute,img2,'À½¼Ò°Å');}
}

function initializedragie() {
	iex=event.clientX;
	iey=event.clientY;
	tempx=document.all.volcontrol.style.pixelLeft;
	tempy=document.all.volcontrol.style.pixelTop;
	dragapproved=true;
	document.onmousemove=drag_dropie;
	if (document.all)	{
		document.onmouseup=new Function('dragapproved=false');
	}
}
function drag_dropie() {
	vol_length=vollength;
	vol_startpoint=volminposition;
	if (dragapproved==true) {
		var mov = tempx+event.clientX-iex-vol_length;
		if (mov <= vol_startpoint  && mov > vol_startpoint-vol_length)	{
			document.all.volcontrol.style.pixelLeft=tempx+event.clientX-iex;
			per=((mov-vol_startpoint)/vol_length);
			volume=per*100 + 100;
			if (volume <= 2) {volume=0;}
			volume_status = webplayer.settings.Volume =  volume;
		}
		return false;
	}
}

