//*----------------------------------------------------------
//  headertag.js
//  Display the variable image in the header depending on the
//  current filename.
//*----------------------------------------------------------

	var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
	var thefile = location.href.substring(dir.length,location.href.length+1);

 	fileroot = thefile.substring(0,thefile.lastIndexOf('.')-0); //* (remove -e.jsp or -f.jsp)
//	pos = thefile.indexOf('-');				// Postition of first hyphen (from 0)
//	filepref = leftString(thefile,pos);		// Prefix

//  filepref = thefile.substring(0,thefile.IndexOf('-')-0); //* (remove -e.html or -f.html)
//  alert(filepref);
//  a = "whatsnew".length;
//  alert(a)
//  b = fileroot.substring(0,"dept-water".length);
//	alert(b)

fn = "tag-focus";  //* Default pic


filepref = fileroot;
//alert(filepref);
//* Determine image based on Prefix


switch (filepref)
{
	case "company":			fn = "tag-serving";		break ;
  //* taking out this line--nov252004 zoli m
//	case "service":   		fn = "tag-ase "service":   		fn = "tag-hallmark";	break;
  case "service":       fn = "tag-hallmark";	break;
	case "connections":		fn = "tag-working";	break;
	case "commercedesktop":	fn = "tag-more";		break;
	default:  				fn = "tag-focus";

}

if (thefile.substring(0,"about".length) == "about" )	fn = "tag-focus";


 document.write ('<img src="../images/' + fn + '.gif" alt="" width="555" height="79" border="0">');

function rightString (InString, num)  {
	OutString=InString.substring (InString.length-num, InString.length);
	return (OutString);
}
function leftString (InString, num)  {
	OutString=InString.substring (InString, num);
	return (OutString);
}
