function getBrowserType() {
	
	var name_str = "";
	
	// non-ie
	if (typeof(window.innerWidth) == 'number')
		name_str = "non_ie";
	
	// ie 6+ in 'standards compliant mode'
	else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
		name_str = "ie_6+";
	
	//ie 4 compatible
	else if (document.body && (document.body.clientWidth || document.body.clientHeight))
		name_str = "ie_4";
	
	
	return (name_str);
}

function doResize(divID) {
	
	switch (getBrowserType()) {
		
		case "non_ie":
			resizeHeight(divID, window.innerHeight);
			resizeWidth(divID, window.innerWidth);
			break;
			
		case "ie_6+":
			resizeHeight(divID, document.documentElement.clientHeight);
			resizeWidth(divID, document.documentElement.clientWidth);
			break;
			
		case "ie_4":
			resizeHeight(divID, document.body.clientHeight);
			resizeWidth(divID, document.body.clientWidth);
			break;
	}
}


function resizeHeight(divID, windowHeight) {
//~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~~*~._	
	var flash_div = document.getElementById(divID);
	
	if (windowHeight < BROWSER_HEIGHT_MIN) {
		document.body.style.height = BROWSER_HEIGHT_MIN + 'px';
		flash_div.style.height = BROWSER_HEIGHT_MIN + 'px';
	
	} else {
		
		document.body.style.height = windowHeight + 'px';
		flash_div.style.height = windowHeight + 'px';
	}
	
}//]~*~~*~~*~~*~~*~~*~~*~~*~~·¯


function resizeWidth(divID, windowWidth) {
//~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~~*~._
	var flash_div = document.getElementById(divID);
	
	if (windowWidth < BROWSER_WIDTH_MIN) {
		document.body.style.width = BROWSER_WIDTH_MIN + 'px';
		flash_div.style.width = BROWSER_WIDTH_MIN + 'px';
	
	} else {
		document.body.style.width = windowWidth + 'px';
		flash_div.style.width = windowWidth + 'px';
	}
	
}//]~*~~*~~*~~*~~*~~*~~*~~*~~·¯
