﻿var blnMac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1) ? true : false;			
var blnNS4 = (document.layers) ? true : false;
var blnNS6 = (!document.all && document.getElementById) ? true : false;
var blnIE4 = (document.all && !document.getElementById) ? true : false;
var blnIE5 = (document.all && document.getElementById) ? true : false;																
var blnIEScreenWidth = (document.all) ? true : false;												

//Sets and returns the screen height for the given browser
function SetScreenWidth() {
	if(blnIEScreenWidth && !blnMac) { 
		return "document.body.clientWidth";
	} else {
		return "self.innerWidth";
	}
}	
		
//Gets the returned value from ftnObjSetScreenWidth() and eval() to return the screen width
function GetScreenWidth() {
	return eval(SetScreenWidth());
}

//Sets and returns the screen height for the given browser
function SetScreenHeight() {
	if(blnIEScreenWidth && !blnMac) { 
		return "document.body.clientHeight";
	} else {
		return "self.innerHeight";
	}
}	
		
//Gets the returned value from ftnObjSetScreenWidth() and eval() to return the screen width
function GetScreenHeight() {
	return eval(SetScreenHeight());
}

function GetScrollHeight(obj)
{
   return obj.scrollHeight;
}