// pop-up sub-menu
var popMenuShowPosX= 0;
var popMenuShowPosY= 0;
var popMenuHidePos= -200;

// navigation images on the left-hand tool bar
var newsOn, newsOff, newsAct;
var baseOn, baseOff, baseAct;
var soccOn, soccOff, soccAct;
var baskOn, baskOff, baskAct;
var infoOn, infOff, infoAct;
var popUpID= 0;
var popUpBG = "silver";

// load images used on this page
	if (document.images)
	{	newsOn = new Image(75,20);
		newsOn.src = "/images/news_OVER.gif";
		baseOn = new Image(100,20);
		baseOn.src = "/images/baseball_OVER.gif";
		soccOn = new Image(100,20);
		soccOn.src = "/images/soccer_OVER.gif";
		baskOn = new Image(125,20);
		baskOn.src = "/images/basketball_OVER.gif";
		infoOn = new Image(75,50);
		infoOn.src = "/images/info_OVER.gif";

		newsOff = new Image(75,20);
		newsOff.src = "/images/news_OFF.jpg";
		baseOff = new Image(100,20);
		baseOff.src = "/images/baseball_OFF.jpg";
		soccOff = new Image(100,20);
		soccOff.src = "/images/soccer_OFF.jpg";
		baskOff = new Image(125,20);
		baskOff.src = "/images/basketball_OFF.jpg";
		infoOff = new Image(75,50);
		infoOff.src = "/images/info_OFF.jpg";

		newsAct = new Image(75,20);
		newsAct.src = "/images/news_ON.gif";
		baseAct = new Image(100,20);
		baseAct.src = "/images/baseball_ON.gif";
		soccAct = new Image(100,20);
		soccAct.src = "/images/soccer_ON.gif";
		baskAct = new Image(125,20);
		baskAct.src = "/images/basketball_ON.gif";
		infoAct = new Image(75,50);
		infoAct.src = "/images/info_ON.gif";
	}

// function to show "on" images
function imgOn(imgName)
{  if (document.images)
      document[imgName].src= eval(imgName + "On.src");
}

// function to show "off" images
function imgOff(imgName)
{  if (document.images)
      document[imgName].src= eval(imgName + "Off.src");
}

// function to show "active" images
function imgAct(imgName)
{  if (document.images)
      document[imgName].src= eval(imgName + "Act.src");
}

// function to display calendar items in a format for printing
function calendarPrint(pageType)
{
   var wS, hS;

// if the popup window is already active, show it
   if ((popUpID != 0) && (!popUpID.closed))
      popUpID.close();

   wS= 800;
   hS= 600;
   popUpID = window.open('/calendar.asp?pageType=' + pageType, 'popUpCalendar',
			'width=' + wS +	',height=' + hS +
			',screenX=25,screenY=25,scrollbars=yes' +
			',top=25,left=25,alwaysRaised=yes,dependant=yes' +
			'menubar=no,resizable=no,titlebar=no');
}

// function to format document display
function popUpDisplay(fileLoc,nameStr)
{
var DocStr;

   popUpID.document.open();
   docStr= '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n' +
  	   '<html>\n';
   popUpID.document.write(docStr);
   docStr= '<head>\n' + 
	   '<link rel="stylesheet" type="text/css" href="/utilities/styles.css">\n';
   popUpID.document.write(docStr);
   docStr= '<title>'+ nameStr + '</title>\n</head>\n';
   popUpID.document.write(docStr);
   docStr= '<body>\n<p class="toplink">' + 
	   '<a class="toplink" href=javascript:window.close()>Close Window</a></p>\n<br/>\n';
   popUpID.document.write(docStr);
   docStr= '<img src="' + fileLoc + '">\n</body>\n</html>\n';
   popUpID.document.write(docStr);
   popUpID.document.bgColor= popUpBG;
   popUpID.document.close();
}

// function to pop-up a "large image" window
function popUpWindow(fileLoc,nameStr,wSize,hSize)
{
   var wS, hS;

// if the popup window is already active, show it
   if ((popUpID != 0) && (!popUpID.closed))
      popUpID.close();

   wS= wSize + 25;
   hS= hSize + 50;
   popUpID = window.open('','popUpWindow','width=' + wS + ',height=' + hS);
   popUpID.moveTo(25,25);
   popUpDisplay(fileLoc,nameStr);
}

// function to pop-up a HTML display
function popUpPage(fileLoc,wSize,hSize)
{
   var wS, hS;

// if the popup window is already active, show it
   if ((popUpID != 0) && (!popUpID.closed))
      popUpID.close();

   wS= wSize + 25;
   hS= hSize + 50;
   popUpID = window.open(fileLoc,'popUpWindow','width=' + wS + ',height=' + hS);
   popUpID.moveTo(25,25);
}

// show the pop-up menu
/*
function showPopUpMenu(objID,trap)
{
   if (trap == 1)
   {  popMenuShowPosX= (event.x - 10); // - 15);   // width of left border of pop-up menu
      popMenuShowPosY= (event.y - 10);// - 35);   // height of pop-up menu
   }

   if (document.all)
   {  objName = eval('document.all.' + objID + '.style');
      objName.pixelLeft = popMenuShowPosX;
      objName.pixelTop = popMenuShowPosY;
   }
   else
   {  objName = eval('document.' + objID);
      objName.left = popMenuShowPosX;
      objName.top = popMenuShowPosY;
   }
}
*/

// hide the pop-up menu
/*
function hidePopUpMenu(objID)
{
  if (document.all)
  {  objName = eval('document.all.' + objID + '.style');
     objName.pixelLeft = popMenuHidePos;			
  }
  else
  {  objName = eval('document.' + objID);
     objName.left = popMenuHidePos;
  }
  window.status= '';
}
*/