function GetBrowserWidth() 
{		
	var Width = 0;
		
	Width=document.body.clientWidth;	
	return Width;										
}

function GetBrowserHeight() 
{	
	var Height = 0;
	Height=document.body.clientHeight;
	return Height;
}

function SetMargins() 
{	
	var Height = 0;
	var Width = 0;
	var WidthDifference=0;
	var Margin = 0;
	
	Height=GetBrowserHeight();
	Width=GetBrowserWidth();
	if(Width>1000)
	{
		WidthDifference = Width - 1000;
		Margin = WidthDifference/2;
	}
	document.getElementById("Main").style.marginLeft = Margin+"px";
	
	window.alert("The Height=" + Height +". The Width=" + Width  + ". The margin will be set to: " + Margin );										
}

function toggle_visibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
    }

function close_iFrame() {
	/*document.getElementById('iYellowBelt').style.display = 'none';	*/
	parent.document.getElementById('iYellowBelt').style.display = 'none';	
}

function reloadNewsScroller()
{	
	parent.frames["datamain"].window.location.reload(); 
	/*var test = document.getElementById('datamain').contentWindow.document.body.firstChild;
	var test2=test.getElementById('datacontainer');
	toss;*/

}

function DisplayBeltDivs()
{	
	document.getElementById('slidingPanel').style.visibility='visible';
}




