var tempX = 0;
var tempY = 0;

var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

function sizePage() {
	var mBody = document.getElementById("mainBody");
	var mainOffset = mBody.offsetHeight;
	
	var contactCont = document.getElementById("contactContainer");
	var footCont = document.getElementById("footerContainer");
	
	var plate = document.getElementById("i");
	var rollCont = document.getElementById("rollerBottom");
	var pageBot = document.getElementById("pageBottomLeft");
	var pageFill = document.getElementById("rightFill");
	
	if (mainOffset < 483) {
		mBody.style.height = 483 + "px";
	} else {
		mBody.style.height = (mainOffset + 10) + "px";
		contactCont.style.top = (mainOffset - 73) + "px";
		footCont.style.top = (mainOffset + 300) + "px";
		plate.style.top = (mainOffset + 267) + "px"; 	
		rollCont.style.height = mainOffset + "px";
		pageBot.style.height = (mainOffset - 133) + "px";
		pageFill.style.height = (mainOffset + 133) + "px";
	}
	
}

function showBig(oStr) {
	var bigImg = document.getElementById(oStr);
	bigImg.style.display = "block";			
}

function hideBig(oStr) {
	var bigImg = document.getElementById(oStr);
	bigImg.style.display = "none";	
}

function getMouseXY(E) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft;
    tempY = event.clientY + document.body.scrollTop;
  } else {  // grab the x-y pos.s if browser is NS
    tempX = E.pageX;
    tempY = E.pageY;
  }  
  try {
  	if (E.getAttribute('overImg') != "") {
  		alert(E.getAttribute('overImg'));
  	}
  } catch (w) { }  
  // catch possible negative values in NS4
  if (tempX < 0){ tempX = 0 ; }
  if (tempY < 0){ tempY = 0 ; }  
  return true;
  
}