

// Preload images for roll over up arrow at the bottom of the page
if (document.images)
{
	// create image objects
		var upArrowMagenta = new Image();
		var upArrowGray = new Image();

	// set the source of each image object
		upArrowMagenta.src = "image/graphic/upMagent.gif";
		upArrowGray.src = "image/graphic/up_arrow.gif";
}
else
{
	// Create empty variables in case the browser doesn't recognize the images array
	var upArrowMagenta = "";
	var upArrowGray = "";

	document.arrowUp = "";
} //------------------- end of code block -----------------------------------


// Force a screen reload when the screen is resized
// and the user is running Netscape 4.x (document.layers)
if (document.layers)
{
	if(!window.saveInnerWidth)
	{
	  window.onresize = resizeIt;
	  window.saveInnerWidth = window.innerWidth;
	  window.saveInnerHeight = window.innerHeight;
	}
	function resizeIt()
	{
		 if (saveInnerWidth < window.innerWidth ||
			  saveInnerWidth > window.innerWidth ||
			  saveInnerHeight > window.innerHeight ||
			  saveInnerHeight < window.innerHeight )
		 {
			  window.history.go(0);
		 }
	}
 } //------------------- end of code block -----------------------------------

 

/* ================================ Global Functions =============================== */
function addLoadEvent(func) 
{
   var oldonload = window.onload;
   if (typeof window.onload != 'function') 
   {
      window.onload = func;
   } 
   else 
   {
      window.onload = function() 
      {
         oldonload();
         func();
      }
   }
} //------------------- end of code block -----------------------------------


function insertAfter(newElement,targetElement) 
{
   var parent = targetElement.parentNode;
   if (parent.lastChild == targetElement) 
   {
      parent.appendChild(newElement);
   } 
   else 
   {
      parent.insertBefore(newElement,targetElement.nextSibling);
   }
} //------------------- end of code block -----------------------------------


