
// »ç¶óÁö´Â ¸Þ´º
var height = (window.screen.availWidth == 1280)?700:(window.screen.availWidth == 1024)?500:100;
var progressHeight = 0;
var bStatus = true;

function moveDiv()
{			
		if(bStatus)
		{
			document.all('mymenu').style.visibility = "visible";					
			document.all("mymenu").style.top = height;
		
			if(progressHeight < 80)
			{
				height = height - 0.5;
				progressHeight += 1;				
			}
			else
			{
				Hide('mymenu')
				bStatus = false;
			}
		}
		
		timeID = setTimeout("moveDiv(),4000");
	
}

function alertwav()
{
	var snd = "/Common/wav/login.wav";
	var body = document.getElementById('bg').src = snd;	
}

function Operation()
{	
	if(getCookie('ck_Alarm') == '1')	
	{
		moveDiv();
		alertwav();
	}
}

function Hide(divid) {
	var oDiv = document.getElementById(divid);		
	oDiv.filters.blendTrans.apply();				
	oDiv.style.visibility = "hidden"; 
	oDiv.filters.blendTrans.play();
}
			
function getCookie(keyName)
{
	tmp = document.cookie + ";";
	index1 = tmp.indexOf(keyName, 0);
	if(index1 != -1){
		tmp = tmp.substring(index1, tmp.length);
		index2 = tmp.indexOf("=", 0) + 1;
		index3 = tmp.indexOf(";",index2);
		return (unescape(tmp.substring(index2, index3)));
	}
	return "";			
}
