function getWindowBoundsRect()
{
	var size = new Array();
	if(isIE())
	{
		var obj = getBody(window);
		size[0] = (document.body.parentElement) ? document.body.parentElement.scrollLeft : 0;
		size[1] = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
		size[2] = parseInt(obj.clientWidth);
		size[3] = parseInt(obj.clientHeight);
		return size;
	}
	else
	{
		size[0] = window.pageXOffset;
		size[1] = window.pageYOffset;
		size[2] = document.documentElement.clientWidth;
		size[3] = document.documentElement.clientHeight;
		return size;
	}
	
}
function isIE()
{
	if(window.innerWidth == undefined)
	{
		return true;
	}
	return false;
}

function getBody(w)
{
    return (w.document.compatMode && w.document.compatMode == "CSS1Compat") ? w.document.documentElement : w.document.body || null;
}  
