/*
 Copyright (C) 2000-2002  e.magination network, llc.  All Rights Reserved.
   Feel free to reuse or modify this code,
   provided this header remains in tact.
   http://www.emagination.com
   jibba jabba strikes again.
*/

function SetDomValue(bodyProperty, altProperty) {
	return (top.document.body && typeof(eval('top.document.body.' + bodyProperty))!='undefined') ?
			eval('top.document.body.' + bodyProperty) : eval(altProperty);
}//SetDomValue

//class
function DocBody() {
}//DocBody

//static methods
/*
DocBody.offsetWidth = new Function("return SetDomValue('offsetWidth', 'window.outerWidth')");
DocBody.offsetHeight = new Function("return SetDomValue('offsetHeight', 'window.outerHeight')");
DocBody.clientWidth = new Function("return SetDomValue('clientWidth', 'window.innerWidth')");
DocBody.clientHeight = new Function("return SetDomValue('clientHeight', 'window.innerHeight')");
DocBody.scrollLeft = new Function("return SetDomValue('scrollLeft', 'window.pageXOffset')");
DocBody.scrollTop = new Function("return SetDomValue('scrollTop', 'window.pageYOffset')");
DocBody.scrollWidth = new Function("return SetDomValue('scrollWidth', 'document.width')");
DocBody.scrollHeight = new Function("return SetDomValue('scrollHeight', 'document.height')");
*/

DocBody.offsetWidth  = new Function("return SetDomValue('offsetWidth',  'top.outerWidth')");
DocBody.offsetHeight = new Function("return SetDomValue('offsetHeight', 'top.outerHeight')");
DocBody.clientWidth  = new Function("return SetDomValue('clientWidth',  'top.innerWidth')");
DocBody.clientHeight = new Function("return SetDomValue('clientHeight', 'top.innerHeight')");
DocBody.scrollLeft   = new Function("return SetDomValue('scrollLeft',   'top.pageXOffset')");
DocBody.scrollTop    = new Function("return SetDomValue('scrollTop',    'top.pageYOffset')");
DocBody.scrollWidth  = new Function("return SetDomValue('scrollWidth',  'top.document.width')");
DocBody.scrollHeight = new Function("return SetDomValue('scrollHeight', 'top.document.height')");

DocBody.scrollBottom = new Function("return DocBody.scrollTop()  + DocBody.clientHeight()"); 
DocBody.scrollRight  = new Function("return DocBody.scrollLeft() + DocBody.clientWidth()"); 
