

// Rollover.js

function Hilite(name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = "images/" + name + "On.gif";
		else
			window.document.images[name].src =  "images/" + name + "Off.gif";
	}
	
	
}//popup function

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = window.open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

//end of popup function

//View Definition
function ViewDefinition(Word)
{
	document.location = "glossary.aspx#" + Word;
}


// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'subs/1.jpg'
theImages[1] = 'subs/2.jpg'
theImages[2] = 'subs/3.jpg'
theImages[3] = 'subs/4.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//  End -->




//Outlink Disclaimer Function
function ConfirmOutLink(outLinkURL)
{
	window.open(outLinkURL);
	self.close()
}

	//Outlink Pop Up disclaimer
function outLinkPopUp(outlinkURL)
{
	var newWindow = window.open('outlink_disclaimer.aspx?outlink='+outlinkURL, "outlink", "width=350,height=250,toolbar=0,screenX=000,screenY=000,top=000,left=000,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0");
	newWindow.focus();
}
	
function openWin( windowURL, windowName, windowFeatures )
{		
	return window.open( windowURL, windowName, windowFeatures) ;
}

