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.body.clientWidth;}
JSFX.Browser.getCanvasHeight =
function
() {
return
document.body.clientHeight;}
JSFX.Browser.getWindowWidth =
function
() {
return
document.body.clientWidth;}
JSFX.Browser.getWindowHeight =
function
() {
return
document.body.clientHeight;}
JSFX.Browser.getScreenWidth =
function
() {
return
screen.width;}
JSFX.Browser.getScreenHeight =
function
() {
return
screen.height;}
JSFX.Browser.getMinX =
function
() {
return
(document.body.scrollLeft);}
JSFX.Browser.getMinY =
function
() {
return
(document.body.scrollTop);}
JSFX.Browser.getMaxX =
function
() {
return
(document.body.scrollLeft
+document.body.clientWidth);
}
JSFX.Browser.getMaxY =
function
() {
return
(document.body.scrollTop
+document.body.clientHeight);
}
}