/*

$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");
	imgObj = document.getElementById("navLogo");
	
	if (ihtScreen.scrollTop() > 15) {
		
		imgObj.style.visibility="visible";
		}
	else {;imgObj.style.visibility="hidden"}
	
	
	if (ihtScreen.scrollTop() > 75) {
		obj.style.top = ihtScreen.scrollTop()+"px"; 
		}
	else {obj.style.top = 75+"px";}
	//window.statys = obj+" | "+obj.stye.
	

	}


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