/**
 * @author Administrator
 */

/**
 * @classDescription Util Class
 */
var Util =
{
	toolWidth : 0,
	toolHeight : 0,
		
	/**
	 * ³»Ã¢ »çÀÌÁî Á¶Àý ÇÔ¼ö
	 * 
	 * @param {int} width
	 * @param {int} height
	 */
	resizeTo : function(width, height)
	{
		if(!height)
		{
			height = document.body.scrollHeight;
		}

		//if(Cookies.get('ToolWidth') && this.toolWidth == 0)
		//{
		//	this.toolWidth = new Number(Cookies.get('ToolWidth'));
		//	this.toolHeight = new Number(Cookies.get('ToolHeight'));
		//}
		
		if(this.toolWidth == 0 || this.toolHeight == 0)
		{
			window.resizeTo(width, height);
			
			var clientWidth = document.body.clientWidth || window.innerWidth || self.innerWidth;
			this.toolWidth = width - clientWidth;
			var clientHeight = document.body.clientHeight || window.innerHeight || self.innerHeight;
			this.toolHeight = height - clientHeight;
			
			this.toolHeight = this.toolHeight - (this.toolWidth > 10 ? 16 : 0);
	
			//Cookies.set('ToolWidth', this.toolWidth);
			//Cookies.set('ToolHeight', this.toolHeight);
		}
		
		//alert(clientWidth)
		window.resizeTo(width + this.toolWidth, height + this.toolHeight);
	}
}
