//************************************************************************************************
// This prevents the user from right clicking on the page
// Disable right click script III- By Renigade (renigade@mediaone.net)
// For full source code, visit http://www.dynamicdrive.com
//************************************************************************************************
var message="";
///////////////////////////////////
function clickIE() 
{
	if (document.all) 
	{
		(message);
		return false;
	}
}

function clickNS(e)
{
	if (document.layers||(document.getElementById&&!document.all))
	{
		if (e.which==2||e.which==3) 
		{
			(message);
			return false;
		}
	}
}

if (document.layers) 
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
}
else
{
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
}

document.oncontextmenu=new Function("return false")
// --> 
//************************************************************************************************


//************************************************************************************************
// Preload images
//************************************************************************************************
if(window.document.images)
{
  // Begin defining images for all the pages
 
  var belong = new Image();
  belong.src = "../../images/belong.gif";
  var alt_belong = new Image();
  alt_belong.src = "../../images/belong-over.gif";
  
  var experience = new Image();
  experience.src = "../../images/experience.gif";
  var alt_experience = new Image();
  alt_experience.src = "../../images/experience-over.gif";
  
  var discover = new Image();
  discover.src = "../../images/discover.gif";
  var alt_discover = new Image();
  alt_discover.src = "../../images/discover-over.gif";
  
  var learn = new Image();
  learn.src = "../../images/learn.gif";
  var alt_learn = new Image();
  alt_learn.src = "../../images/learn-over.gif";
  
  var explore = new Image();
  explore.src = "../../images/explore.gif";
  var alt_explore = new Image();
  alt_explore.src = "../../images/explore-over.gif";  
  

} // end if(images)
//************************************************************************************************

//************************************************************************************************
// This function swaps the original image to the rollover image. 
//************************************************************************************************
function SwapOrig(pic)
{
	if (window.document.images) 
	{
      document.images[pic].src = eval ("alt_" + pic + ".src");
    } // end if(window.document.images)
}
//************************************************************************************************

//************************************************************************************************
// This function swaps the rollover image back to the original image.
//************************************************************************************************
function SwapNew(pic)
{
	if(window.document.images)
	{
	  document.images[pic].src = eval (pic + ".src");
	} // end if(window.document.images)
}
//************************************************************************************************

//************************************************************************************************
// This function opens the online giving page. It is called whenever that page is visited. The
// page is opened in a new window.
//************************************************************************************************
function OnlineGiving()
{
  window.open('http://www.wfu.edu/cgi-bin/cgiwrap/alumni/rh/egiving_test.cgi');
} // end function OnlineGiving()
//************************************************************************************************
