
function RestPointer(e)
{
	document.body.style.cursor = 'default';
}

function ChangeCurserType(e)
{
	if(CheckLocation(e))
		document.body.style.cursor = 'pointer';
	else
		document.body.style.cursor = 'default';
}

function BannerClick(e)
{
	if(CheckLocation(e))
	{
		window.location = 'http://www.nmu.edu';
	}
}

function CheckLocation(e) 
{
	var posx = 0;
	var posy = 0;
	
	
	if (!e) 
		var e = window.event;
	
	if (e.target)
	{
		$strDivName = e.target.id;
		targ = e.target;
	}
	else if (e.srcElement) 
	{
		$strDivName = e.srcElement.id;
		targ = e.srcElement.offsetParent;
	}
	
	if (targ.nodeType == 3) // defeat Safari bug
		targ = targ.parentNode;
	
	
	if($strDivName != "Header")
		return false;
	
	if(e.pageX || e.pageY) 	
	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if(e.clientX || e.clientY) 	
	{
		posx = e.clientX + document.body.scrollLeft	+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop	+ document.documentElement.scrollTop;
	}
	
	posx = posx-targ.offsetLeft;
	
	
	if(posx<191 && posy<85)
		return true;
	else
		return false;
}



/*

<HTML><HEAD><TITLE>test for drew</TITLE>
	<link href="http://webb.nmu.edu/Webb/CSS/cmsPublic-Common.css" rel="stylesheet" type="text/css" media="all" />
	<link href="http://webb.nmu.edu/Webb/CSS/cmsPublic-Home.css" rel="stylesheet" type="text/css" media="all" />
	<link href="http://webb.nmu.edu/Webb/CSS/cmsPublic-EmptyOverride.css" rel="stylesheet" type="text/css" media="all" />
	<link href="http://webb.nmu.edu/Webb/CSS/cmsPublic-Print.css" rel="stylesheet" type="text/css" media="print" />

<style type="text/css">
  .grabit {float:left;
  width:120px; height:80px;
  margin-left:0px;
  padding:0px;
  cursor:pointer;
          }
  .dropit {float:left;
  width:120px; height:80px;
  margin-left:0px;
  padding:0px;
          }
</style>


	<script type="text/javascript">

function SetPointer(divobj) {
  divobj.className='grabit';
  window.status = " ";
}
function RestPointer(divobj) {
  divobj.className='dropit';
  window.status = " ";
}
function CheckLocation(e) {
  var now = new Date();
  window.status = "hello " + now;
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) 	{
		posx = e.clientX + document.body.scrollLeft
			+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
	}
  var actdiv = document.getElementById("activdiv");
  var idname = "statusdiv";
  var el = document.getElementById(idname);
	  el.innerHTML = "x: " + e.clientX + " y: " + e.clientY + "<br>"
	    + "div.clientLeft " + actdiv.clentLeft + "<br>"
	    + "div.clentTop " + actdiv.clentTop + "<br>"
	    + "div.offsetLeft " + actdiv.offsetLeft + "<br>"
	    + "div.offsetTop " + actdiv.offsetTop + "<br>"
	    + "x: " + ( e.clientX - actdiv.offsetLeft ) + " y: " + ( e.clientY - actdiv.offsetTop ) + "<br>"
	    + "document.body.scrollLeft " + document.body.scrollLeft + "<br>"
	    + "document.body.scrollTop " + document.body.scrollTop + "<br>"
	    + "document.documentElement.scrollLeft " + document.documentElement.scrollLeft + "<br>"
	    + "document.documentElement.scrollTop " + document.documentElement.scrollTop;
	window.status = " x " + posx + " y " + posy;

	// posx and posy contain the mouse position relative to the document
	// Do something with this information
}
	</script>

</HEAD>
<BODY text=#000000 vLink=#551a8b aLink=#ff0000 link=#0000cc bgColor=#ffffff>

<div class="banner_image" style="background-image:url(http://webb.nmu.edu/Parents/Images/parents_banner.jpg
)">
<div id="activdiv" class="dropit" onmouseover="SetPointer(this)"
onmouseout="RestPointer(this)"
onmousemove="CheckLocation(event)"
>
</div>
<div STYLE="float:right;
margin-top:40px;
background:orange;">
			<form name="searchform" action="http://www.nmu.edu/searchquery" method="get" id="searchform">
			<a href="index.shtml">Home</a> | 
			<a href="http://www.nmu.edu/search">Search</a>: 
			<input type="hidden" value="0" name="datasource" />
			<span class="InputField"><input name="query" size="15" type="text" /></span>
			<span class="Button"><input name="Submit" type="image" value="" class="Button" alt="Go Search" src="http://webb.nmu.edu/shared/shared_nmu/Images/go.gif" /></span>
			</form></div>
	</div>




<P>Playing with Divs

<DIV id='inner'
 style='margin-top:5px;
 border:1px solid black;
 background:white;
 padding:5;'>
hello

<div STYLE="padding:5px;
background:#dcdcdc;
font:bold 12pt Arial;">say what
</div>

<div STYLE="width:50%;
margin-left:5px;
padding:5px;
background:yellow;
font:bold 12pt Arial;">
50% div
<div STYLE="width:50%;
margin-left:5px;
padding:5px;
background:pink;
font:bold 12pt Arial;">
50% div
</div>

</div>

</div>
<br>
<div name="statusdiv" id="statusdiv"
STYLE="width:50%;
margin-left:5px;
padding:5px;
background:white;
">
status
</div>
</BODY></HTML>

*/