/******************************************************************* 
* 
* File    : JSFX_Browser.js © JavaScript-FX.com
* 
* Created : 2000/07/15 
* 
* Author  : Roy Whittle www.Roy.Whittle.com 
* 
* Purpose : To create a cross browser "Browser" object.
*		JSFX.Browser library will allow scripts to query parameters
*		about the current browser window.
* 
* History 
* Date         Version        Description 
* 2001-03-17	2.0		Converted for javascript-fx
***********************************************************************/  
if(!window.JSFX)
	JSFX=new Object();

if(!JSFX.Browser)
	JSFX.Browser = new Object();

if(navigator.appName.indexOf("Netscape") != -1)
{
	JSFX.Browser.getCanvasWidth	= function() {return innerWidth;}
	JSFX.Browser.getCanvasHeight	= function() {return innerHeight;}
	JSFX.Browser.getWindowWidth 	= function() {return outerWidth;}
	JSFX.Browser.getWindowHeight	= function() {return outerHeight;}
	JSFX.Browser.getScreenWidth 	= function() {return screen.width;}
	JSFX.Browser.getScreenHeight	= function() {return screen.height;}
	JSFX.Browser.getMinX		= function() {return(pageXOffset);}
	JSFX.Browser.getMinY		= function() {return(pageYOffset);}
	JSFX.Browser.getMaxX		= function() {return(pageXOffset+innerWidth);}
	JSFX.Browser.getMaxY		= function() {return(pageYOffset+innerHeight);}

}
else 	if(document.all) 	{
JSFX.Browser.getCanvasWidth = function() { return document.documentElement.clientWidth; }
JSFX.Browser.getCanvasHeight = function() { return document.documentElement.clientHeight; }
JSFX.Browser.getWindowWidth = function() { return document.documentElement.clientWidth; }
JSFX.Browser.getWindowHeight = function() { return document.documentElement.clientHeight; }
	JSFX.Browser.getScreenWidth	= function() {return screen.width;}
	JSFX.Browser.getScreenHeight	= function() {return screen.height;}
	JSFX.Browser.getMinX = function() { return (document.documentElement.scrollLeft); }
	JSFX.Browser.getMinY = function() { return (document.documentElement.scrollTop); }
	JSFX.Browser.getMaxX		= function() {
	return (document.documentElement.scrollLeft
			+ document.documentElement.clientWidth);
	}
	JSFX.Browser.getMaxY		= function() {
	return (document.documentElement.scrollTop
				+ document.documentElement.clientHeight);
	}
} 
/*** End  ***/ 
