/*

$RCSfile: ihtEventsWindow.js,v $ 
$Author: john $  
$Date: 2000/12/19 19:47:33 $  
$Locker:  $ 
$Revision: 1.1 $ 

summary
- - - - -



methods
- - - - - - -


*/

var mouseX = mouseY =0;

function 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 mousePosition(e)
{
	if (e) event = e;   //for Netscape
	mouseX = event.clientX;
	mouseY = event.clientY;
}
	
function placeNavBar()
//moves the navbar into position
{	
	obj = document.getElementById("navTop");
		obj.style.top = 110 + "px";
	
	if (ihtScreen.width() > 760)
	{		obj.style.left = (ihtScreen.width()/1.625397) + "px";		}	else	{		obj.style.left = 468 + "px";		}

}


function windowResize()
{
	obj = document.getElementById("navTop");
			//alert(obj.style.left);
	
	placeNavBar()	
	//if (document.getElementById("articleBody") != null) setArticleHeight() //adjust article layout
	
	//resize the clippings container
	//clippingsSetContainerHeight()
}
