<!--

alt_img = "" ;
options = 6 ;

// Example: obj = findObj("image1");
function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}

// Function to 'activate' images.
function imgOn(selected) {
  if (document.images) 
  {
    if (alt_img==null) { alt_img=""; }
    if (selected==0) 
	{
	  	document["img_opt_0"].src = "_images/" + alt_img + "home_selected.gif";
	}
	else
	{
	  	document["img_opt_0"].src = "_images/" + alt_img + "home.gif";
	}
	for (opt=1;opt<=options;opt++)
	{
	  if ( findObj("img_opt_"+opt) != null )
	  {
	    if (opt!=selected)
		{		  
		  document["img_opt_"+opt].src = "_images/shim.gif";
		}
		else
		{
		  document["img_opt_"+opt].src = "_images/marker.gif";
		}
	  }
	}
  }
}

function daysto( date )
{
  var now  = new Date();
  var diff = date.getTime() - now.getTime();
  var days = Math.floor(diff / (1000 * 60 * 60 * 24));
  return  days+1 ;
};

function daystohalloween()
{
	var now = new Date();
	var nextHalloween = new Date("October 31, " + now.getYear());
	if ( now > nextHalloween )
	{
	  nextHalloween = new Date("October 31, " + ( now.getYear() + 1 ) );
	}
	return daysto( nextHalloween  ) ;
}

function daystoh2002()
{
	var nextHalloween = new Date("November 16, 2002");
	return daysto( nextHalloween  ) ;
}

function daystoh2002verbose()
{
    var days;
	var ret = "&nbsp;";
	var nextHalloween = new Date("November 16, 2002");
	days = daysto( nextHalloween  ) ;
	if ( days > 0 ) 
	{
	  if (days > 1) 
	    { ret = " days" ; }
	  else 
	    { ret = " day" ; }
	  ret = days + ret + " until H-2002"
	}
	else
	{
	 ret = "&nbsp;"
	}
	
	return ret ;
}

// -->
