// JavaScript Document

/**************************************************/
/* SET EVENT
/**************************************************/

function onload_fnc()
{
	if (document.getElementsByTagName)
		btn_array = document.getElementsByTagName('button');
	else if (document.all)
		btn_array = document.all.tags('button');
	
	if (btn_array)
	{
		for (i = 0; i < btn_array.length; i++)
		{
			switch (btn_array[i].name)
			{
				case 'btn_login':
				case 'btn_logout':
				case 'btn_password':
				case 'btn_accept':
				case 'btn_decline':
				case 'btn_regist':
				case 'btn_cancel':
				case 'btn_close':
				case 'btn_back':
					btn_array[i].onmouseover = input_img_over; 
					btn_array[i].onmouseout = input_img_out; 
					btn_array[i].onmouseup = input_img_out; 
					break;
			}
		}
	}
}

/**************************************************/
/* EVENT METHOD
/**************************************************/

function input_img_over()
{
	//this.src = this.src.replace("ml","mo");
	this.className = this.className.replace("ml","mo");
}

function input_img_out()
{
	//this.src = this.src.replace("mo","ml");
	this.className = this.className.replace("mo","ml");
}

addEventToObject(this, "onload", onload_fnc);