
function fixUp()
{
	var el = document.getElementById('abstractPop');
	
	if (el)
	{
		var width = 100;
		if (document.body.clientWidth && document.body.clientWidth > width)
		{ width = document.body.clientWidth;}
		if (document.body.offsetWidth && document.body.offsetWidth > width)
		{ width = document.body.offsetWidth;}
		if (document.body.scrollWidth && document.body.scrollWidth > width)
		{ width = document.body.scrollWidth;}
		el.style.width = width + "px";
		
		var height = 100;
		if (document.body.clientHeight && document.body.clientHeight > height)
		{ height = document.body.clientHeight; }
		if (document.body.offsetHeight && document.body.offsetHeight > height)
		{ height = document.body.offsetHeight; }
		if (document.body.scrollHeight && document.body.scrollHeight > height)
		{ height = document.body.scrollHeight; }
		if (document.documentElement.offsetHeight && document.documentElement.offsetHeight > height)
		{ height = document.documentElement.offsetHeight; }
		if (window.innerHeight && window.innerHeight > height)
		{ height = window.innerHeight; }
		el.style.height = height + "px";
	}
	var windowState = (function()
		{
		var readScroll = {scrollLeft:0,scrollTop:0};
		var readSize = {clientWidth:0,clientHeight:0};
		var readScrollX = 'scrollLeft';
		var readScrollY = 'scrollTop';
		var readWidth = 'clientWidth';
		var readHeight = 'clientHeight';
		function otherWindowTest(obj){
		if((document.compatMode)&&
		(document.compatMode == 'CSS1Compat')&&
		(document.documentElement)){
		return document.documentElement;
		}else if(document.body){
		return document.body;
		}else{
		return obj;
		}
		};
		if((typeof this.innerHeight == 'number')&&
		(typeof this.innerWidth == 'number')){
		readSize = this;
		readWidth = 'innerWidth';
		readHeight = 'innerHeight';
		}else{
		readSize = otherWindowTest(readSize);
		}
		if((typeof this.pageYOffset == 'number')&&
		(typeof this.pageXOffset == 'number')){
		readScroll = this;
		readScrollY = 'pageYOffset';
		readScrollX = 'pageXOffset';
		}else{
		readScroll = otherWindowTest(readScroll);
		}
		return {
		getScrollX:function(){
		return (readScroll[readScrollX]||0);
		},
		getScrollY:function(){
		return (readScroll[readScrollY]||0);
		},
		getWidth:function(){
		return (readSize[readWidth]||0);
		},
			getHeight:function()
			{return (readSize[readHeight]||0);}
		};
	})();
	var divHeight = 500;
	var viewPortWidth = windowState.getWidth();
	var viewPortHeight = windowState.getHeight();
	var horizontalScroll = windowState.getScrollX();
	var verticalScroll = windowState.getScrollY();
	var vPos = Math.round(verticalScroll+10);
	var el2 = document.getElementById('abstractLittle');
	el2.style.marginTop = vPos + "px";
}

function toggleVisForm(obj) 
{
	var el = document.getElementById(obj);	
	el.style.display = (el.style.display != 'none' ? 'none' : '' );
	fixUp();
	return false;
}
