
function RPJS_Window()	{
	
	return this;
}

/*************************
*	window.suggestWidth	 *
*************************/

//	window.suggestWidth
//
//		Suggests a minimum window size and attempts to adjust smaller windows to fit; warns otherwise. 
RPJS_Window.suggestWidth	= function( suggested_width )	{
	if ( screen.availWidth >= suggested_width )	{
		if ( window.outerWidth < suggested_width )	{
			window.resizeTo( suggested_width, window.outerHeight );
		}
	} else	{
		alert(	'Your resolution width (' + screen.availWidth + 'px) is too narrow. Images and text may overlap.' 
			+	'The site is best viewed on a screen with a with of ' + suggested_width + 'px or better.' );
	}
};

/*****************************
*	window.setMinimumWidth	 *
*****************************/

//	window.setMinimumWidth
//
//		Force a minimum window width. 
RPJS_Window.setMinimumWidth	= function( minimum_width )	{

	if ( screen.availWidth > minimum_width )	{
		if ( window.outerWidth < minimum_width )	{
			window.resizeTo( minimum_width, window.outerHeight );
		}
	}
}
