function winLoad()
{
	try
	{
		window.focus();
		refreshDoc();
		yn17288Ad();
		var time1 = new Date();
		errorProcess("1",(time1 - time0)/1000);
	}
	catch(e)
	{
		
	}
}

function showLeftMenu(imgObj)
{
	try
	{
		var leftMenu = document.getElementById("tdLeftMenu");
		if(leftMenu.style.display == "")
		{
			leftMenu.style.display = "none";
			imgObj.src = "images/btn_menuzoom1.gif";
		}
		else
		{
			leftMenu.style.display = "";
			imgObj.src = "images/btn_menuzoom0.gif";
		}	
	}
	catch(e)
	{
	
	}
}
function resetLayout()
{
	try
	{
		var frmTop		= document.getElementById("topfrm");
		var frmBottom	= document.getElementById("bottom")
		var frmLeft		= document.getElementById("folder");
		var frmMain		= document.getElementById("main");
		
		var baseHeight	= document.body.clientHeight;
		var mainHeight	= baseHeight - frmTop.height - frmBottom.height;
		
		frmLeft.style.height	= mainHeight;
		frmMain.style.height	= mainHeight;
	}
	catch(e)
	{
	
	}
}

function setFrameHeight()
{
	try
	{
		var frmTop		= document.getElementById("topfrm");
		var frmBottom	= document.getElementById("bottom")
		var frmLeft		= document.getElementById("folder");
		var frmMain		= document.getElementById("main");
		var baseHeight	= document.body.clientHeight;
		var frmHeight	= baseHeight - frmTop.height - frmBottom.height;
		
		var docMain		= window.frames["main"].document;
		var docLeft		= window.frames["folder"].document;
		
		var objDivBlank	= docLeft.getElementById("divBlank");
		objDivBlank.style.height = "0px";
		
		var leftHeight	= docLeft.body.scrollHeight > frmHeight ? docLeft.body.scrollHeight : frmHeight;
		var mainHeight	= docMain.body.scrollHeight > frmHeight ? docMain.body.scrollHeight : frmHeight;
		
		frmHeight		= leftHeight > mainHeight ? leftHeight : mainHeight;
		frmLeft.style.height	= frmHeight;
		frmMain.style.height	= frmHeight;
		
		var objDivBottom= docLeft.getElementById("divBottom");
		var objDivTop	= docLeft.getElementById("divTop");
		var objDivRoot	= docLeft.getElementById("divRoot");
		var height		= docLeft.body.offsetHeight - objDivRoot.offsetHeight - objDivBottom.offsetHeight;
		var width		= objDivBottom.offsetWidth - 1;
		objDivBlank.style.cssText = "height:"+ height +"px;background-color:#FFFFFF;width:"+ width +"px;";
		window.frames["main"].scrollTo(0,0);		
	}
	catch(e)
	{
	
	}
}

var tipFrm	= null;
var tipBody	= null;
var speed	= 20;
var top		= 0;
var msec	= 10;
var showMsec= 10000;

var interval=null;
var timeout	= null;
var maxTop	= 0;

function tipInitial()
{
	try
	{
		document.body.style.overflow = "hidden";
		tipFrm				= document.getElementById("tip");
		tipBody				= document.frames["tip"].document.body;
		
		tipFrm.style.display= "";
		tipFrm.style.left	= document.body.offsetWidth - tipBody.offsetWidth - 2;
		maxTop				= document.body.clientHeight - tipBody.offsetHeight - 2;
		top					= document.body.clientHeight;
		tipFrm.style.top	= top;
		interval			= window.setInterval(showTips,msec);
	}
	catch(e)
	{
		
	}	
}

function winResize()
{
	var tipFrm	= document.getElementById("tip");
	if(tipFrm.style.display != "none")
	{
		window.clearInterval(interval);
		tipInitial();
	}
}

function showTips()
{
	try
	{
		top -= speed;
		if(top <= maxTop)
		{
			top = maxTop;
			window.clearInterval(interval);
			window.setTimeout(hideTips,showMsec);
		}
		tipFrm.style.top = top + "px";
	}
	catch(e)
	{
	
	}	
}

function hideTips()
{
	try
	{
		if(document.frames["tip"].isMouseOver)
		{
			window.setTimeout(hideTips,1000);
		}
		else
		{
			interval = window.setInterval(hideTipsInterval,msec);
		}
	}
	catch(e)
	{
	
	}		
}

function hideTipsInterval()
{
	try
	{
		top += speed;
		if(top >= document.body.clientHeight)
		{
			tipFrm.style.display = "none";
			window.clearInterval(interval);
			window.clearTimeout(timeout);
			document.body.style.overflow = "auto";
		}
		tipFrm.style.top = top + "px";
	}
	catch(e)
	{
	
	}	
}

function refreshDoc()
{
	window.setInterval("reloadDoc()",300000);
}

function reloadDoc()
{
	try
	{
		window.frames["frmRefresh0"].document.location.reload(true);
	}
	catch(e)
	{
		document.getElementById("frmRefresh0").src = "/coremail/fcg/loadpage?listpage=blank.htm&sid="+ document.getElementById("hidSid").innerText + "&rnd="+ Math.random();
	}
}
