function toggleObjectDisplay(objId)
	{
	obj = document.getElementById(objId);
	if (obj)
		{
		if (obj.style.display == "block") obj.style.display = "none";
		else obj.style.display = "block";
		}
	
	}
	
	function resizeBodyText()
		{
		if (document.getElementById("bodyNode") != null)
		{
			var mod;
			
			if (window.innerWidth) nW = window.innerWidth;
			else nW = document.getElementById("bodyNode").offsetWidth;
			
			mod = Math.round(nW/reSizeMod);
			
			obj = document.getElementById("bodyNode");
			//obj.style.padding = mod*5+"px";
			
						
			if (mod < 9) mod = 9;
			if (mod > 24) mod = 24;
		
			obj.style.fontSize = mod+"px";
			obj.style.lineHeight = (mod*1.5)+"px";
			

		
			}
		}
	
function startResize(mod)
		{
		reSizeMod = mod;
		
		if (document.getElementById != null)
			{
			window.onload	= resizeBodyText;
			window.onresize = resizeBodyText;
			}
		}		
	
function sg_screenObject()
	{

	this.bottom = function(){
		if (document.body.scrollHeight) return document.body.scrollHeight};
	
	this.height = function() {
		if (document.body.offsetHeight) return document.body.offsetHeight;}
	
	this.visHeight = function() {
		if (window.innerHeight) return window.innerHeight;
		if (document.body.clientHeight) return document.body.clientHeight;}
	
	this.width = function() {
		if (document.body.offsetWidth) return document.body.offsetWidth;}
	
	this.scrollTop = function() {
		if(document.body.scrollTop) return document.body.scrollTop
		if (window.pageYOffset) return window.pageYOffset;
		else return 0;};
		
	
	}

function sg_mousePosition(e)
	{
	if (e) event = e;   //for Netscape
	mouseX = event.clientX;
	mouseY = event.clientY;
	}
	
function sg_placeClippings()
	//moves the clippings into position
	{
	//obj = document.getElementById("sgClippingsMenu");
	
		//obj.style.top = sgScreen.scrollTop()+40+"px"; 
	
	}
	
function sg_init()
	{
	try
		{
		sgScreen = new sg_screenObject();
		document.onmousemove = sg_mousePosition; //moz
		
		windowTimer = setInterval("sg_placeClippings()",20);
		clippings_init();
		outClippings();
		}
	catch(er)
		{
		}
	}
	
window.onload = sg_init;	

	