/*	lvldesign website libraries, v1.0.0
	Copyright Russell Webb, 2005. All rights reserved. */

function wndMiddle(height, width) {

	if (height < 100) {
		height = 100;
	}

	if (width < 100) {
		width = 100;
	}

	if (height > screen.availHeight) {
		height = screen.availHeight;
	}

	if (width > screen.availWidth) {
		width = screen.availWidth;
	}

	var returnval = "height = " + height + ", ";
	returnval += "width = " + width + ", ";
	returnval += "top = " + Math.ceil( (screen.availHeight - height) / 2 ) + ", ";
	returnval += "left = " + Math.ceil( (screen.availWidth - width) / 2 );

	return returnval;
}