function getBrowserWindowSize() { 
	var r = new Array(); 
	r['width'] = 0; 
	r['height'] = 0; 
	if(typeof(window.innerWidth) == 'number' ) { 
	// Non-IE 
	r['width'] = window.innerWidth; 
	r['height'] = window.innerHeight; 
	} 
	else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { 
	// IE 6+ in 'standards compliant mode' 
	r['width'] = document.documentElement.clientWidth; 
	r['height'] = document.documentElement.clientHeight; 
	} 
	else if(document.body && (document.body.clientWidth || document.body.clientHeight)) { 
	// IE 4 compatible 
	r['width'] = document.body.clientWidth; 
	r['height'] = document.body.clientHeight; 
	} 
	return r; 
}

function windowResize() {
	var window_size = getBrowserWindowSize();
	// SET POSITION
	if (minimumWidth >= screen.width || minimumHeight >= screen.height) {
		self.moveTo(0, 0);
	}
	// SET WIDTH
	if (window_size['width'] < minimumWidth || forceWidth == true) {
		window.resizeBy(windowWidth - window_size['width'], 0);
	}
	// SET HEIGTH
	if (window_size['height'] < minimumHeight || forceHeight == true) {
		window.resizeBy(0, windowHeight - window_size['height']);
	}
	self.focus();
}
