/*--------------------------------------------------------------------------------------*\

                                       ChAoS Scripts

              Written by Simon Pratt, of ChAoS -- http://chaosinc.8m.com

                                       Copyright 2002
									   
Note: The MM_reloadPage() function was written by Macromedia, and is included as part of
Dreamweaver's default scripts.  Note how obfuscated it is.									   

\*--------------------------------------------------------------------------------------*/
function showmenu(layer,bool_reposition)	{
	if(bool_reposition){
		document.all
		(layer).style.visibility="hidden";  // Hide the layer.
		document.all
		(layer).style.left=event.clientX+5; // Reposition its X axis, 5 pixels to the right of that of the mouse.
		document.all
		(layer).style.top=event.clientY+17; // Reposition its Y axis, 17 pixels lower than the Y axis of the mouse.
	}
	document.all
	(layer).style.visibility="visible";     // Show the layer when the repositioning, if it is to be done, is done.
}
function hidemenu(layer)	{
	document.all
	(layer).style.visibility="hidden";      // Hide the layer.  Simple, no?
}
function MM_reloadPage(init){               // Reloads the window if Nav4 resized.
  if (init==true) with (navigator) {		// Check to see if the reloading should commence.
  	if (
	(appName=="Netscape")					// Check to see if the browser is Netscape
	&&(parseInt(appVersion)==4))   {		// Check the version
    	document.MM_pgW=innerWidth;			// Store the width to a variable in the document.
		document.MM_pgH=innerHeight;		// Store the height to a variable in the document.
		onresize=MM_reloadPage;				// Make sure that if the page has been modified (size-wise) at all, to rerun this function.
	}
  }
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
  	location.reload();						// Now this one makes sense.  Reload the page if the page has been resized.
}
MM_reloadPage(true);
