//
// header.js
// statewidepaint.com
// REQUIRES config.js
// REQUIRES stclib.js
// REQUIRES footer.js

///////////////////////////////////////////////////////////////////////////////
// START: VARIABLES
///////////////////////////////////////////////////////////////////////////////
var i;
var agt = navigator.userAgent.toLowerCase();
var aname = navigator.appName;
var aver = parseInt(navigator.appVersion.substring(0,1));
var mie = false;

var gbAnnounceOk = "T";
var gbCookiesOn = "T";
var gbCurrentHome = "F";
var gbCurrentHelp = "F";
var gbDebugMode = "F";
var gbExplorer = false;
var gbSpanish = false;

var gnAnnLimit = 1;
var gnAnnDays = 1; // NUMBER OF DAYS THE ANNOUNCEMENT COOKIE SHOULD LAST
var gnAnnounceLines = 0;
var gnBrowserVers = parseInt(navigator.appVersion.substring(0,1));
var gnDateEnd;
var gnDateCur;;
var gnDocuments = 1;
var gnYearCur;
var gnYearEnd;

var gasAnnounceLine = new createDocList (10, '');
var gasAnnounceStyle = new createDocList (10, '');
var gasDateEnd;
var gasDocumentName = new createDocList (10, '');
var gasDocumentTitle = new createDocList (10, '');

var gsAnnExpires = new Date();
var gsBrowserAgent = navigator.userAgent.toLowerCase();
var gsBrowserName = navigator.appName;
var gsCurrentDoc;
var gsCurrentPath = '';
var gsDateCur = new Date ();
var gsDateModified = new Date (document.lastModified);   
var gsDefaultName = '';
var gsDomainName = "";
var gsDomainURL = "";
var gsIcon = "";
var gsLT_ARROW = '&#9668;';
var gsUP_ARROW = '&#9650;';

if ((STC_DOMAIN == null) || (STC_DOMAIN == ""))
{
    gsDomainName = window.location.hostname;
    gsDomainURL = 'http://' + window.location.hostname + '/';
    tnPosWWW = gsDomainURL.indexOf ("www."); 
    if (tnPosWWW < 0)
    {
	gsDomainURL = 'http://www.' + window.location.hostname + '/';
    }
}
else
{
    gsDomainName = STC_DOMAIN;
    gsDomainURL = STC_DOMAIN;
    tnPosWWW = STC_DOMAIN.indexOf ("www."); 
    if (tnPosWWW < 0)
    {
	gsDomainURL = 'http://www.' + STC_DOMAIN + '/';
    }
}
var gnDomainLen = gsDomainURL.length;
tnPosWWW = gsDomainName.indexOf ("www."); 
if (tnPosWWW > -1)
{
    gsDomainName = gsDomainName.substring(tnPosWWW + 4, 9999);
}

// CONVERT TO LOWERCASE TO FUNCTION
STC_COMMAND = STC_COMMAND.toLowerCase();

var MONArray = new initArray ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");   

String.prototype.tld = function()
{
	return (m = this.match(new RegExp("\.([a-z,A-Z]{2,6})$") )) ? m[1] : false;
}

NS6 = (document.getElementById && !document.all)
IE = (document.all)
NS = (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) == "4")

tempBar = '';
barBuilt = 0;
gasItems = new Array();
moving = setTimeout('null',1)
    
///////////////////////////////////////////////////////////////////////////////
// FINISH: VARIABLES
///////////////////////////////////////////////////////////////////////////////

checkBrowser();

document.write ('<TITLE>' + LOC_SHORT_NAME + '</TITLE>'); 

// ASSUME COOKIES ARE ENABLED, BUT IF NOT, SET FLAG FOR ALL COOKIE-RELATED FUNCTIONS
if (navigator.cookieEnabled == 0) 
{
    gbCookiesOn = "F";
}
if ((STC_STYLE == null) || (STC_STYLE == ""))
{
    gsStyleSheet = gsDomainURL + "include/style.css";
}
else
{
    gsStyleSheet = STC_STYLE;
}
document.write ('<LINK rel=stylesheet href=' + gsStyleSheet + ' type="text/css">');

gbAdminMode = STC_getCookie("Admin");
if (gbAdminMode == "F")
{
    document.write ('<TABLE Border=3 BgColor=Red CellPadding=3 CellSpacing=0>');
    document.write ('<TR>');
    document.write ('<TH Align=Center>');
    document.write ('gbAdminMode='+gbAdminMode);
    document.write ('</TH>');
    document.write ('</TR>');
    document.write ('</TABLE>');
}

if ((LOC_ICON_LOGO == null) || (LOC_ICON_LOGO == ""))
{
    // STANDARD ICON NAME
    gsIcon = "favicon.ico";
}
else
{
    // LOCALLY DEFINED ICON PATH & NAME (config.js)
    gsIcon = LOC_ICON_LOGO;
}
document.write ('<LINK rel="shortcut icon" href="' + gsDomainURL + gsIcon + '">');

gsCurrentDoc = document.location.href.toLowerCase ();
tsCurrentPath = gsCurrentDoc.substring(gnDomainLen, 9999) + "/";
tnCurrentPos = tsCurrentPath.indexOf ("/");
gsCurrentPath = tsCurrentPath.substr(0,tnCurrentPos+1);
gsCurrentPath = tsCurrentPath.substr(0,tnCurrentPos);

// TEST IF CURRENT PAGE IS SAME AS DOMAIN (MEANING HOME PAGE) OR...
// IF CURRENT PAGE IS STANDARD HOME PAGE (index.html). 
// THIS WORKS WITH OR WITHOUT "www"
//if ((gsCurrentDoc == gsDomainURL) || (gsCurrentDoc == gsDomainURL + "index.html"))
if ((gsCurrentDoc == gsDomainURL) || (gsCurrentDoc == gsDomainURL + LOC_HOME_PAGE))
{
    gbCurrentHome = "T";
}

gnLenDoc = gsCurrentDoc.length;

gsTLD = window.location.hostname.tld();

gnPosTLD = gsCurrentDoc.indexOf (gsTLD);
gnDocCurrentPos = gsCurrentDoc.indexOf (gsTLD) + 3;

gnPosDoc = gnLenDoc - gnDocCurrentPos;

gsCurrentName = gsCurrentDoc.substr (gnDocCurrentPos, gnPosDoc);
gnDocHostPos = gsCurrentDoc.indexOf ("://www.");
gnDocNamePos = gnDocHostPos + 11;
if (gnDocHostPos > -1)
{
    gnDocHostPos = gsCurrentDoc.indexOf ("://");
    gnDocNamePos = gnDocHostPos + 7;
}

gsDOM = gsCurrentDoc.substr (gnDocNamePos, gnLenDoc - (gnLenDoc - gnPosTLD) - 12);

if (gbDebugMode == "T")
{
    dispDebug();
}

gasDocumentName[gnDocuments] = gsDefaultName + 'wwwnews.html';
gasDocumentTitle[gnDocuments] = 'News';
gnDocuments++;

gasDocumentName[gnDocuments] = gsDefaultName + 'calendar.html';
gasDocumentTitle[gnDocuments] = 'Calendar';
gnDocuments++;

gasDocumentName[gnDocuments] = gsDefaultName + 'photos.html';
gasDocumentTitle[gnDocuments] = 'Photos';
gnDocuments++;

gasDocumentName[gnDocuments] = gsDefaultName + 'odpa_rules.pdf';
gasDocumentTitle[gnDocuments] = 'Rules';
gnDocuments++;

gasDocumentName[gnDocuments] = gsDefaultName + 'members.html';
gasDocumentTitle[gnDocuments] = 'Membership' ;
gnDocuments++;

//document.write ('<LINK Rel=stylesheet HREF="' + gsDomainURL + 'include/style.css" Type="text/css">');

////////////////////////////////////////////////////////////////////////////////
// {BEG: BROWSER-TO-CSS
//
// ASSIGN DEFAULT NAME FOR FILE: style_div_def.css
var gsCSSBrow = "def";
var gsCSSFile = gsCSSBrow;
// STORE VERSION NUMBER AS STRING
var gsCSSVers = BrowserDetect.version.toString();
// STORE TWO-LETTER BROWSER PREFIX AND ONE-DIGIT VERSION AS CODE FOR TESTING
var gsCSSCode = BrowserDetect.browser.toString();
gsCSSCode = gsCSSCode.substring(0,2) + gsCSSVers.substring(0,1);
gsCSSCode = gsCSSCode.toLowerCase();
switch (gsCSSCode)
{
    case 'fi1':
    case 'fi2':
    case 'fi3':
	gsCSSBrow = "mo";
	gsCSSVers = gsCSSVers.substring(0, 1);
	gsCSSVers = "3";
	break;
    case 'ex6':
    case 'ex7':
    case 'ex8':
	gsCSSBrow = "ie";
	break;
}
if (gsCSSBrow != "def")
{
    gsCSSFile = gsCSSBrow + gsCSSVers;
}
document.write ('<link rel="stylesheet" href="' + gsDomainURL + 'include/style_div_' + gsCSSFile + '.css" type="text/css">');
//
// }END: BROWSER-TO-CSS
////////////////////////////////////////////////////////////////////////////////

if (gsCurrentName == '/')
{
    gsCurrentName = '/';
}
gnDocCurrentLength = gsCurrentName.length;
gsCurrentPage = gsCurrentName.substring(1, gnDocCurrentLength);
gsCurrentTitle = document.title + '(' + gsCurrentPage + ')';

var agt=navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);

this.ie = (agt.indexOf("msie") != -1);
this.ie3 = (this.ie && (this.major < 4));

this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1))

this.nav4 = (this.nav && (this.major == 4));

var DOWArray = new initArray ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");   
var MOYArray = new initArray ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");   

var hours = gsDateModified.getHours ();
var minutes = gsDateModified.getMinutes ();
var seconds = gsDateModified.getSeconds ();
var timeValue = "" + ((hours > 12) ? hours - 12 : hours);

var currname = document.location.pathname.toLowerCase ();

timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += (hours >= 12) ? " pm" : " am";

function dispHeader()
{
    if (LOC_BG_BANNER != "")
    {
	document.write ('<STYLE>');
	document.write ('#divBanner');
	document.write ('{');
	document.write ('background-image: url("/images/design/SiriusK9Academy_18l.jpg");');
	document.write ('background-position: left top;');
	document.write ('background-repeat: repeat-x;');
	document.write ('}');
	document.write ('</STYLE>');
	document.write ('<DIV width=100% id=divBanner style="background-color: ' + LOC_BG_BANNER + ';">');
    }
    document.write ('<TABLE Class=tiny border="0" width="100%" cellpadding=0 cellspacing=0>');
    document.write ('<TR>');

    document.write ('<TD width=35% align=left valign=middle class=spnBannerLarge style="color: ' + LOC_FG_BANNER + ';">');
    document.write (LOC_SHORT_NAME);
    document.write ('</TD>');

    // DATA CELL 1,2
    document.write ('<TD width="30%" align="center" valign="top" class=spnBannerLarge style="color: ' + LOC_FG_BANNER + ';">');
    if (LOC_LARGE_LOGO != "")
    {
	document.write ('<IMG align="bottom" align="left" border=0 src="' + LOC_LARGE_LOGO + '"' + LOC_WIDTH_LOGO + ' title="' + LOC_SHORT_NAME + ' Banner" alt="Small ' + LOC_SHORT_NAME + ' Banner">');
    }
    else
    {
	document.write ('&nbsp;');
    }
    document.write ('</TD>');

    if (LOC_UPDATE_TM != "")
    {
	// DATA CELL 1,3
	document.write ('<TD Width=30% Align=Right VALIGN=middle Class=spnBannerSmall Style="color: ' + LOC_FG_BANNER + ';">');
	
	if (typeof gsMOD_DATE=="undefined")
	{
	    document.write ('Updated: ');   
	    sDay = DOWArray[(gsDateModified.getDay()+1)];
	    sMonth = MOYArray[(gsDateModified.getMonth()+1)];
	    document.write (sDay.substring(0, 3) + ' ');
	    document.write (sMonth.substring(0, 3) + ' ');
	    document.write (gsDateModified.getDate (), ' '); 
	    if (navigator.appName == ("Netscape"))
	    {
		document.write (gsDateModified.getYear () + 1900);
	    }
	    else
	    {
		document.write (gsDateModified.getYear ());
	    }
     
	    document.write (' ', timeValue);
	}
	else
	{
	    document.write ('Updated:&nbsp;' + gsMOD_DATE);
	}
    }
    if ((LOC_UPDATE_TM != "") && (LOC_CREATE_TM != ""))
    {
	document.write ('<BR>');
    }

    if (LOC_CREATE_TM != "")
    {
	document.write ('Created:&nbsp;' + LOC_CREATE_TM + '<BR>');
    }
    else
    {
	document.write ('&nbsp;');
    }
 
    document.write ('</TD>');

    // DATA CELL 1,3
    document.write ('<TD width=5% Align=Center vAlign=Middle Class=spnBannerSmall Style="color: ' + LOC_FG_BANNER + ';">');
    doc_name = document.location.pathname.toLowerCase ();
    if (gbCurrentHome == "T")
    {
	document.write ('<IMG Align="bottom" Align="left" Border=0 Src="' + LOC_SMALL_LOGO + '" Width=50 Title="' + LOC_SHORT_NAME + ' Logo" Alt="Small ' + LOC_SHORT_NAME + ' Logo">');
    }
    else
    {
	document.write ('<A Class=spnBannerSmall HREF="/index.html" onMouseOver="linkPopIn(\'Return to<BR>' + LOC_SHORT_NAME + ' Home Page\', \'\');" onMouseOut="linkPopOff();"><IMG Align="bottom" Align="left" Border=0 Src="' + LOC_SMALL_LOGO + '" Width=50 Title="' + LOC_SHORT_NAME + '" Alt="Small ' + LOC_SHORT_NAME + ' Logo"><BR>Home</A>');
    }

    document.write ('</TD>');
    document.write ('</TR>');
    document.write ('</TABLE>');

    if (LOC_HR_HEADER > 0)
    {
	document.write ('<HR width=100% id=linHead style="height: ' + LOC_HR_HEADER + 'px; background-color: ' + LOC_FG_HEADER + ';">');
    }
    if (LOC_BG_BANNER != "")
    {
	document.write ('</DIV> <!-- divBanner -->');
    }
}

if ((LOC_DISP_HEAD == 'T') && (gbCurrentHome == 'F'))
{
    if (LOC_DISP_OVER == 'T')
    {
	dispHeader();
    }
}

if ((LOC_DISP_HOME == 'T') && (gbCurrentHome == 'T'))
{
    if (LOC_DISP_OVER == 'T')
    {
	dispHeader();
    }
}

function dispFooter()
{
    if (LOC_DISP_FOOT == 'F')
    {
	return;
    }
    document.write ('<div id="divFooter" style="clear: both; background-color: ' + LOC_BG_FOOTER + '; border: 2px solid #FFFFFF;">');
    if (LOC_HR_FOOTER != 0)
    {
	document.write ('<hr id="linFoot" size="' + LOC_HR_FOOTER + '" />');
    }

    document.write ('<table id="tblFooter" class="tiny" bgcolor="' + LOC_BG_FOOTER + '" class="FootLinkBold" style="color: ' + LOC_FG_FOOTER + ';" border="0" width="100%" cellpadding="5" cellspacing="0">');
    document.write ('<tr id="trFooter1">');

    // DATA CELL 2,1 30%
    ////////////////////////////////////////////////////////////////////////
    // LT: WEB SERVICE
    document.write ('<td id="tdFooter1" width=30% align="left" valign="middle">');
    tsButton = gbSpanish ? 'Los Servicios Web Proporcionados por' : 'Web Services provided by';
    tsNote = gbSpanish ? 'Servicios de Web' : 'Web, E-mail and Internet Services';
    tsFrom = (gbSpanish ? ' por ' : ' by ') + 'STC Network Systems';
    document.write ('<a href="/scripts/partners.php" style="text-decoration: none; color: ' + LOC_FG_FOOTER + '; cursor: text;">' + tsButton + '</a>:&nbsp;<a Href="http://www.stcllp.com" target="_blank" title="' + tsNote + tsFrom + '" style="color: ' + LOC_FG_FOOTER + '; cursor: pointer; text-decoration: none;"> <img src="/images/stc.gif" border="0" align="middle" align="right" title="' + tsNote + tsFrom + '" name="[STC Star Logo]">STC Systems</a>');

//    document.write ('Web <A href="/scripts/partners.php" style="text-decoration: none; color: ' + LOC_FG_FOOTER + '; cursor: text;">Services</A> provided by: <A href="http://www.stcllp.com" target="_blank" title="Internet, Web and E-mail Services by STC Network Systems" style="color: ' + LOC_FG_FOOTER + '; text-decoration: none; cursor: pointer;"> <IMG src="/images/stc.gif" border="0" align="middle" align="right" title="Internet, Web and E-mail Services by STC Network Systems" alt="[STC Star Logo]"><SPAN style="text-decoration: underline;">STC Systems</SPAN></A>');
    document.write ('</td> <!-- tdFooter1 -->');
    
    // DATA CELL 2,2 40%
    ////////////////////////////////////////////////////////////////////////
    // CT: BUTTONS
    document.write ('<td id="tdFooter2" width="40%" align="center" valign="middle" style="">');
    if (gbCurrentHome == "F")
    {
	document.write ('<form id="frmFoot" name="frmFoot">');
	document.write ('<br />');
	if (gbCurrentHelp == "T")
	{
	    document.write ('<input type="button" name="btnClose" value="' + (gbSpanish ? "Cerrado" : "Close") + ' class="button2" onclick="window.close();" />');
	}
	else
	{
	    tsButton = gbSpanish ? '&nbsp;Inicio' : '&nbsp;Home';
	    tsWindow = gbSpanish ? 'regrese a la p&aacute;gina principal' : 'Return to Home Page';
	    document.write ('<input type="Button" name="btnHome" value="' + gsUP_ARROW + tsButton + '" class="button2" onclick="document.location.href=\'' + LOC_HOME_URL + '\';" onmouseover="linkPopIn(\'' + tsWindow +'\');" onmouseout="linkPopOff();" style="display: inline;" />');
	}
	//document.write ('<input type="Button" name="btnHome" value="' + gsUP_ARROW + '&nbsp;Home&nbsp;" class="button2" onclick="document.location.href=\'' + LOC_HOME_URL + '\';" style="display: inline;">');
    }
    else
    {
	// IF NO ALTERNATE CODE FOR HOME BUTTON, DISPLAY SPACE
	if ((LOC_HOME_ALT == null) || (LOC_HOME_ALT == ""))
	{
	    document.write ('&nbsp;');
	}
	else
	{
	    document.write (LOC_HOME_ALT);
	}
    }

    document.write ('&nbsp;');
    document.write ('&nbsp;');
    
    // IF NOT ON THE HOME PAGE, DISPLAY BACK BUTTON
    // IF NOT ON THE HOME PAGE OR A HELP POPUP WINDOW, DISPLAY BACK BUTTON
    if ((gbCurrentHome == "F") && (gbCurrentHelp == "F"))
    {
	tsButton = gbSpanish ? '&nbsp;Vuelva' : '&nbsp;Back';
	tsWindow = gbSpanish ? 'regrese a la p&aacute;gina anterior' : 'Return to Previous Page';
	document.write ('<input type="button" name="btnBack" value="' + gsLT_ARROW + tsButton + '" class="button2" onclick="history.go(-1);" onmouseover="linkPopIn(\'' + tsWindow +'\');" onmouseout="linkPopOff();" style="display: inline;" />');
	//document.write ('<input type="Button" name="btnBack" value="' + gsLT_ARROW + '&nbsp;Back&nbsp;" class=button2 onclick="history.go(-1);" style="display: inline;">');
	document.write ('</form> <!-- frmFoot -->');
    }
    else
    {
	// IF NO ALTERNATE CODE FOR BACK BUTTON, DISPLAY SPACE
	if ((LOC_BACK_ALT == null) || (LOC_BACK_ALT == ""))
	{
	    document.write ('&nbsp;');
	}
	else
	{
	    document.write (LOC_BACK_ALT);
	}
    }
    document.write ('</td> <!-- tdFooter2 -->');

    // DATA CELL 2,3 20%
    ////////////////////////////////////////////////////////////////////////
    // RT: COPYRIGHT NOTICE
    //document.write ('<td width="20%" align="right" valign="middle">');
    document.write ('<td id="tdFooter3" align="right" valign="middle">');
    tsToday = new Date();
    tsYear = tsToday.getFullYear();
    tsButton = gbSpanish ? 'Derecho de Autor' : 'Copyright';
    if (LOC_COPY_YEAR == tsYear)
    {
	document.write (tsButton + '&nbsp;&copy; ' + LOC_COPY_YEAR + '&nbsp;' + '<br />' + LOC_LONG_NAME);
    }
    else
    {
	document.write (tsButton + '&nbsp;&copy; ' + LOC_COPY_YEAR + '-' + tsYear + '&nbsp;' + '<br />' + LOC_LONG_NAME);
    }
    // QUESTION: 01.11.2011
    // SET CONFIG FLAG?
    document.write ('<span style="font-weight: normal; font-size: 8pt;">-' + gsCSSCode + '/' + gsCSSFile + '</span>');
    document.write ('</td> <!-- tdFooter3 -->');

    //////////////////////////////////////////////////
    // DATA CELL 2,4 10%
    //document.write ('<td width="10%" align="center" valign="middle">');
    document.write ('<td id="tdFooter4" align="center" valign="middle">');
    if (LOC_FOOT_LOGO != "")
    {
	// IF THIS IS THE HOME PAGE OR A HELP POPUP, DO NOT MAKE HOME LINK
	if ((gbCurrentHome == "T") || (gbCurrentHelp == "T"))
	{
	    if (currname.indexOf("-new") > -1)
	    {
		document.write ('<img align="bottom" align="left" border="0" src="' + LOC_FOOT_LOGO_NEW + '" width="' + LOC_FOOT_LOGO_WIDTH + '" name="Small ' + (gbSpanish ? LOC_SHORT_NAME_ES : LOC_SHORT_NAME) + ' Logo" />');
	    }
	    else
	    {
		if (LOC_LARGE_LOGO_NEW != "")
		{
		    document.write ('<a href="index-new.html"><img align="bottom" align="left" border="0" src="' + LOC_FOOT_LOGO + '" width="' + LOC_FOOT_LOGO_WIDTH + '" name="Small ' + (gbSpanish ? LOC_SHORT_NAME_ES : LOC_SHORT_NAME) + ' Logo" /></a>');
		}
		else
		{
		    document.write ('<img align="bottom" align="left" border="0" src="' + LOC_FOOT_LOGO + '" width="' + LOC_FOOT_LOGO_WIDTH + '" name="Small ' + (gbSpanish ? LOC_SHORT_NAME_ES : LOC_SHORT_NAME) + ' Logo" />');
		}
	    }
	}
	else
	{
	    tsWindow = gbSpanish ? 'regrese a la p&aacute;gina principal' : 'Return to Home Page';
	    tsNote = gbSpanish ? '<I>en Ingl&eacute;s</I> para ' : 'for ';
	    tsName = gbSpanish ? LOC_SHORT_NAME_ES : LOC_SHORT_NAME;
	    tsButton = gbSpanish ? '&nbsp;Inicio' : '&nbsp;Home';
	    //if (currname.indexOf("-new") > -1)
	    if ((LOC_LARGE_LOGO_NEW != "") && (currname.indexOf("-new") > -1))
	    {
		document.write ('<a class="spnBannerSmall" href="/' + LOC_HOME_PAGE + '" style="color: #FFFFFF; text-decoration: none;"><img align="bottom" align="left" border="0" src="' + LOC_FOOT_LOGO_NEW + '" width="' + LOC_FOOT_LOGO_WIDTH + '" name="Small ' + (gbSpanish ? LOC_SHORT_NAME_ES : LOC_SHORT_NAME) + ' Logo" /><br />' + tsButton + '</a>');
//		document.write ('<a class="spnBannerSmall" href="/' + LOC_HOME_PAGE + '" onmouseover="linkPopIn(\'' + tsWindow + '<br />' + tsNote + tsName + '\', \'\');" onmouseout="linkPopOff();" onclock="linkPopOff();" style="color: #FFFFFF; text-decoration: none;"><img align="bottom" align="left" border="0" src="' + LOC_FOOT_LOGO_NEW + '" width="' + LOC_FOOT_LOGO_WIDTH + '" name="Small ' + (gbSpanish ? LOC_SHORT_NAME_ES : LOC_SHORT_NAME) + ' Logo" /><br />' + tsButton + '</a>');
	    }
	    else
	    {
		document.write ('<a class="spnBannerSmall" href="/' + LOC_HOME_PAGE + '" style="color: #FFFFFF; text-decoration: none;"><img align="bottom" align="left" border="0" src="' + LOC_FOOT_LOGO + '" width="' + LOC_FOOT_LOGO_WIDTH + '" name="Small ' + (gbSpanish ? LOC_SHORT_NAME_ES : LOC_SHORT_NAME) + ' Logo" /><br />' + tsButton + '</a>');
//		document.write ('<a class="spnBannerSmall" href="/' + LOC_HOME_PAGE + '" onmouseover="linkPopIn(\'' + tsWindow + '<br />' + tsNote + tsName + '\', \'\');" onmouseout="linkPopOff();" style="color: #FFFFFF; text-decoration: none;"><img align="bottom" align="left" border="0" src="' + LOC_FOOT_LOGO + '" width="' + LOC_FOOT_LOGO_WIDTH + '" name="Small ' + (gbSpanish ? LOC_SHORT_NAME_ES : LOC_SHORT_NAME) + ' Logo" /><br />' + tsButton + '</a>');
	    }
	}
    }
    else
    {
	document.write ('&nbsp;');
    }
    document.write ('<a href="email.html"><img src="/images/mail_lst.gif" width="1" height="1" border="0" alt="e-mail" /></a>');
    document.write ('<a href="members.html"><img src="/images/mail_lst.gif" width="1" height="1" border="0" alt="e-mail" /></a>');
    document.write ('</td> <!-- tdFooter4 -->');

    document.write ('</tr> <!-- trFooter1 -->');

    document.write ('</table> <!-- tblFooter -->');
    document.write ('</div> <!-- divFooter -->');
}

function olddispFooter()
{
    document.write ('<BR>');

    if (LOC_BG_COLOR == LOC_BG_FOOTER)
    {
	document.write ('<HR id=linFoot>');
    }
    for (i = 0; i < LOC_HR_FOOTER; i++)
    {
	document.write ('<HR id=linFoot>');
    }
    document.write ('<TABLE Class=tiny BgColor=' + LOC_BG_FOOTER + ' Class=FootLinkBold Style="color: ' + LOC_FG_FOOTER + ';" Border=0 Width="100%" CellPadding=5 CellSpacing=0>');
    document.write ('<TR>');

    ////////////////////////////////////////////////////////////////////////
    // LT: WEB SERVICE
    document.write ('<TD Width=35% Align="left" vAlign="middle">');
    document.write ('Web <A href="/scripts/partners.php" style="text-decoration: none; color: ' + LOC_FG_FOOTER + '; cursor: text;">Services</A> provided by: <A href="http://www.stcllp.com" target="_blank" title="Internet, Web and E-mail Services by STC Network Systems" style="color: ' + LOC_FG_FOOTER + '; text-decoration: none; cursor: pointer;"> <IMG src="/images/stc.gif" border="0" align="middle" align="right" title="Internet, Web and E-mail Services by STC Network Systems" alt="[STC Star Logo]"><SPAN style="text-decoration: underline;">STC Systems</SPAN></A>');

    //document.write ('<A href="/scripts/partners.php" style="text-decoration: none; color: #FFFFFF;">Web Services Provided by</A>: <A Href="http://www.stcllp.com" Target="_blank" Title="Internet, Web and E-mail Services by STC Network Systems" Style="color: ' + LOC_FG_FOOTER + '; text-decoration: underline; cursor: pointer;"> <IMG Src="/images/stc.gif" Border="0" Align="Middle" Align="Right" Title="Internet, Web and E-mail Services by STC Network Systems" Alt="[STC Star Logo]">STC Systems</A>');
    document.write ('</TD>');
    
    ////////////////////////////////////////////////////////////////////////
    // CT: BUTTONS
    document.write ('<TD Width=30% Align="center" vAlign="middle">');
    if (gbCurrentHome == "F")
    {
	document.write ('<FORM Name=frmFoot>');
	document.write ('<BR>');
	document.write ('<INPUT Type="Button" Name="btnHome" Value="' + gsUP_ARROW + '&nbsp;Home" Class=button2 onClick="document.location.href=\'' + LOC_HOME_URL + '\';">');
    }
    else
    {
	// IF NO ALTERNATE CODE FOR HOME BUTTON, DISPLAY SPACE
	if ((LOC_HOME_ALT == null) || (LOC_HOME_ALT == ""))
	{
	    document.write ('&nbsp;');
	}
	else
	{
	    document.write (LOC_HOME_ALT);
	}
    }

    document.write ('&nbsp;');
    document.write ('&nbsp;');
    
    // IF NOT ON THE HOME PAGE, DISPLAY BACK BUTTON
    if (gbCurrentHome == "F")
    {
	document.write ('<INPUT Type="Button" Name="btnBack" Value="' + gsLT_ARROW + '&nbsp;Back" Class=button2 onClick="history.go(-1);">');
	document.write ('</FORM>');
    }
    else
    {
	// IF NO ALTERNATE CODE FOR BACK BUTTON, DISPLAY SPACE
	if ((LOC_BACK_ALT == null) || (LOC_BACK_ALT == ""))
	{
	    document.write ('&nbsp;');
	}
	else
	{
	    document.write (LOC_BACK_ALT);
	}
    }
    document.write ('</TD>');

    ////////////////////////////////////////////////////////////////////////
    // RT: COPYRIGHT NOTICE
    document.write ('<TD Width=35% ALIGN="right" VALIGN="middle">');
    tsToday = new Date();
    tsYear = tsToday.getFullYear();
    document.write ('Copyright &copy; ' + LOC_COPY_YEAR + '-' + tsYear + '&nbsp;' + LOC_LONG_NAME);
    if (LOC_FOOT_LOGO != "")
    {
	if (gbCurrentHome == "F")
	{
	    document.write ('<A Href="' + LOC_HOME_URL + '"><IMG Src="' + LOC_FOOT_LOGO + '" Width=20 Height=20 Border=0"></A>');
	}
	else
	{
	    document.write ('<IMG Src="' + LOC_FOOT_LOGO + '" Width=20 Height=20 Border=0">');
	}
    }
    document.write ('<A Href="email.html"><IMG Src="/images/mail_lst.gif" Width=1 Height=1 Border=0 Alt="e-mail"></A>');
    document.write ('<A Href="members.html"><IMG Src="/images/mail_lst.gif" Width=1 Height=1 Border=0 Alt="e-mail"></A>');
    document.write ('</TD>');

    document.write ('</TR>');

    document.write ('</TABLE>');

}

// { BEG: COOKIE/ANNOUNCEMENT

gsAnnExpires.setTime(gsAnnExpires.getTime() + (gnAnnDays*24*60*60*1000));

checkCount();

if (gbAnnounceOk == "X")
{
    document.write ('<SCRIPT Src="/scripts/stc_ann.js"></SCRIPT>');
}
else
{
    if (gnAnnounceLines > 999)
    {
	document.write ('<TABLE name=tblAnn border=0 width=100%>');
	document.write ('<TR>');
	document.write ('<TD Align=Right>');
	document.write ('<IMG border=1 src="/images/megaphone_on.jpg" width=50 onmouseover="linkPopIn(\'Turn<BR>Announcement<BR>On\', \'\');" onmouseout="linkPopOff();" onclick="toggleLimit();" style="cursor: pointer;">');
	document.write ('</TD>');
	document.write ('</TR>');
	document.write ('</TABLE> <!-- tblAnn -->');
    }
}

// } END: COOKIE/ANNOUNCEMENT

///////////////////////////////////////////////////////////////////////////////
// START: FUNCTIONS
///////////////////////////////////////////////////////////////////////////////

// MENU BAR
function MenuBar()
{
    var i;

    // CHECK EACH DOCUMENT NAME IN LIST
    for (i = 1; i < gnDocuments; i++)
    {
	// CHECK IF CURRENT PAGE CONTAINS DOCUMENT #[i]	
	if (gsCurrentName.indexOf (gasDocumentName[i]) > -1)
	{
		document.write ('<TD Class="MenuCurr" Align="center" vAlign="middle">');
		// IF CURRENT DOCUMENT IS THIS DOCUMENT # IN LIST, USE BOLD TITLE
		document.write ('<B>', gasDocumentTitle[i], '</B>');
	}
	else
	{
	    document.write ('<TD Class="MenuLink" Align="center" vAlign="middle">');
	    // IF CURRENT DOCUMENT IS NOT THIS DOCUMENT # IN LIST, PRINT AS LINK
	    document.write ('<A Class=MenuLink HREF="/', gasDocumentName[i],'">', gasDocumentTitle[i], '</A>');
	}
	document.write ('</TD>');
    }
}

function dispDebug()
{
    document.write ('<TABLE Border=3 BgColor=Yellow CellPadding=3 CellSpacing=0>');

    document.write ('<TR>');
    document.write ('<TH Align=Center ColSpan=2>');
    document.write ('DEBUG - Document Info');
    document.write ('</TH>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gbCurrentHome');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gbCurrentHome);
    document.write ('</TD>');
    document.write ('</TR>');
    if (gbCurrentHome == "T")
    {
	document.write ('</TR>');

	document.write ('</TABLE>');
	return;
    }

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsDomainURL');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsDomainURL);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsDomainName');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsDomainName);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gnDomainLen');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnDomainLen);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsDOM');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsDOM + ' (' + gnDocNamePos + ')');
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsTLD');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsTLD);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('location.host');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (location.host);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsCurrentPath');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsCurrentPath);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('tsCurrentPath');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (tsCurrentPath);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsCurrentDoc');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsCurrentDoc);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gnLenDoc');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnLenDoc);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gnDocCurrentPos');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnDocCurrentPos);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gnPosDoc');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnPosDoc);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsCurrentName');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsCurrentName);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsCurrentPath');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsCurrentPath);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsDomainURL');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsDomainURL);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gbCurrentHome');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gbCurrentHome);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsCurrentPath');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsCurrentPath);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsCurrentDoc');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsCurrentDoc);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsDomainURL + gsCurrentPath');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsDomainURL + gsCurrentPath);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gsDomainURL + gsCurrentPath + LOC_HOME_PAGE');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsDomainURL + gsCurrentPath + LOC_HOME_PAGE);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gbAnnounceOk');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gbAnnounceOk);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gnAnnLimit');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnAnnLimit);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gnAnnDays');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnAnnDays);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('gnAnnounceLines');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnAnnounceLines);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('</TABLE>');
}

// INITIALIZE ARRAY
function initArray() 
{  
    this.length = initArray.arguments.length;

    for (var i = 0; i < this.length; i++)      
    {
	this[i+1] = initArray.arguments[i];
    }
}   

// REQUIRED JAVASCRIPT FUNCTION TO CREATE ARRAYS/LISTS
function createDocList(n, init)
{
    this.size = n;

    for (i = 1; i <= n; i++)
    {
	    this[i] = init;
    }

    return this;
}

function checkBrowser()
{    
    if (gsBrowserName.indexOf("Internet Explorer")!=-1)
    {
	if (gnBrowserVers >= 4)
	{
	    gbJavaEnabled = navigator.javaEnabled();
	}
	gbExplorer = true;
    }
    if (gsBrowserName.indexOf("Netscape") != -1)
    {
	if (gnBrowserVers >= 4)
	{
	    gbJavaEnabled = navigator.javaEnabled();
	}
    }

    if(aname.indexOf("Internet Explorer")!=-1)
    {
	if(aver >= 4)
	{
	    gbJavaEnabled=navigator.javaEnabled();
	}
	mie = true;
    }
    if(aname.indexOf("Netscape") != -1)
    {
	if(aver >= 4)
	{
	    gbJavaEnabled = navigator.javaEnabled();
	}
    }
}

function loadFile(fsFile)
{
  document.write('<SCRIPT Type="text/javascript" Src="'
    + fsFile + '"></SCR' + 'IPT>'); 
}

function HostAnnounce()
{
    var i = 0;

    if ((gsDateBeg == "Invalid Date") || (gsDateBeg == "Invalid Date"))
    {
	return
    }

    if (navigator.appName == ("Netscape"))
    {
	gnYearCur = gsDateCur.getYear() + 1900;
	gnYearEnd = gsDateEnd.getYear() + 1900;
	gnYearBeg = gsDateBeg.getYear() + 1900;
    }
    else
    {
	gnYearCur = gsDateCur.getYear();
	gnYearEnd = gsDateEnd.getYear();
	gnYearBeg = gsDateBeg.getYear();
    }

    gasDateCur = MONArray[(gsDateCur.getMonth()+1)] + ' ' + gsDateCur.getDate () + ', ' + gnYearCur;

    gasDateEnd = MONArray[(gsDateEnd.getMonth()+1)] + ' ' + gsDateEnd.getDate () + ', ' + gnYearEnd;
    gasDateBeg = MONArray[(gsDateBeg.getMonth()+1)] + ' ' + gsDateBeg.getDate () + ', ' + gnYearBeg;

    gnDateBeg = Date.parse (gasDateBeg);
    gnDateEnd = Date.parse (gasDateEnd);
    gnDateCur = Date.parse (gasDateCur);

    if (gnDateBeg > gnDateCur)
    {
	return
    }

    if (gnDateEnd < gnDateCur)
    {
	return
    }

    document.write ('<BR>');
    document.write ('<CENTER>');
    document.write ('<TABLE border=0 width=500><TR><TD align=center><IMG src="/images/nail.gif"></TD></TR></TABLE>');
    // OUTER TABLE
    document.write ('<TABLE border=5 cellspacing=0 width=480 bgcolor="white"><TR><TD align="center">');

    // INNER TABLE

    document.write ('<TABLE border=0 bgcolor="#FFFFFF" width=475>');

    for (i = 0; i < gnAnnounceLines; i++)
    {
	document.write ('<TR><TD Align="Center" Class="', gasAnnounceStyle[i], '">');
	document.write (gasAnnounceLine[i]);
	document.write ('</TD></TR>');
    }
    document.write ('<TR>');
    document.write ('<TD Align=Center>');
    document.write ('<IMG Border=1 Src="/images/megaphone_off.jpg" Width=50 onMouseOver="linkPopIn(\'Turn<BR>Announcement<BR>Off\', \'\');" onMouseOut="linkPopOff();" onClick="toggleLimit();">');

    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('</TABLE>');
    document.write ('</TD>');

    document.write ('</TR>');
    document.write ('</TABLE>');
    document.write ('</CENTER>');

    document.write ('<CENTER><FONT color=#C0C0C0 size=-2>');
    document.write ('Announcement Valid ', gasDateBeg, ' through ', gasDateEnd);
    document.write ('</CENTER></FONT><BR>');
}

function GetCookie(fsName) 
{
  var arg = fsName + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) 
  {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
    return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
  return null;
}

function SetCookie(fsName,fsValue) 
{
  var argv = SetCookie.arguments;
  var argc = SetCookie.arguments.length;
  var expires = (argc > 2) ? argv[2] : null;
  var path = (argc > 3) ? argv[3] : null;
  var domain = (argc > 4) ? argv[4] : null;
  var secure = (argc > 5) ? argv[5] : false;

  document.cookie = fsName + "=" + escape (fsValue) +
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
    ((path == null) ? "" : ("; path=" + path)) +
    ((domain == null) ? "" : ("; domain=" + domain)) +
    ((secure == true) ? "; secure" : "");
}

function DelCookie(fsName) 
{
  var gsAnnExpires = new Date();
  gsAnnExpires.setTime (gsAnnExpires.getTime() - 1);
  var cval = GetCookie (fsName);
  document.cookie = fsName + "=" + cval + "; expires=" + gsAnnExpires.toGMTString();
}

function getCookieVal(offset) 
{
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
  endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function toggleLimit() 
{
    var tnLimit = STC_getCookie('AnnLimit');
    if (tnLimit == 999)
    {
	tnLimit = 1;
    }
    else
    {
	tnLimit = 999;
    }
    STC_setCookie('AnnLimit', tnLimit, gsAnnExpires);
    location.reload(true);
}

function checkCount() 
{
    var tnCount = STC_getCookie('AnnCount');
    var tnLimit = STC_getCookie('AnnLimit');

    if (gbDebugMode == "T")
    {
	if (gbCurrentHome == "T")
	{
	    return;
	}
	document.write ('<TABLE Border=3 BgColor=Pink CellPadding=3 CellSpacing=0>');
	document.write ('<TR>');
	document.write ('<TH Align=Center>');
	document.write ('DEBUG - Cookie Info');
	document.write ('</TH>');
	document.write ('</TR>');

	document.write ('<TR>');
	document.write ('<TD>');
	document.write ('AnnCount=' + tnCount);
	document.write ('</TD>');
	document.write ('</TR>');

	document.write ('<TR>');
	document.write ('<TD>');
	document.write ('AnnLimit=' + tnLimit);
	document.write ('</TD>');
	document.write ('</TR>');

	document.write ('<TR>');
	document.write ('<TD>');
	document.write ('Lines=' + gnAnnounceLines);
	document.write ('</TD>');
	document.write ('</TR>');

	document.write ('</TABLE>');
    }

    if (tnLimit == null) 
    {
	tnLimit = gnAnnLimit;
	STC_setCookie('AnnLimit', gnAnnLimit, gsAnnExpires);
    }
    if (tnCount == null) 
    {
	tnCount = 1;
	STC_setCookie('AnnCount', tnCount, gsAnnExpires);
    } 
    else 
    {
	tnCount++;
	STC_setCookie('AnnCount', tnCount, gsAnnExpires);
	if (tnCount > tnLimit)
	{
	    gbAnnounceOk = "F";
	}
    }
}

function include(fsFileName) 
{
    var html_doc = document.getElementsByTagName('head').item(0);
    var js = document.createElement('script');
    js.setAttribute('language', 'javascript');
    js.setAttribute('type', 'text/javascript');
    js.setAttribute('src', fsFileName);
    html_doc.appendChild(js);
    return false;
}

///////////////////////////////////////////////////////////////////////////////
// FINISH: FUNCTIONS
///////////////////////////////////////////////////////////////////////////////

function OLD_dispHeader()
{
    if (this.ie3)
    {
	document.write ('<TABLE Border=0 width="100%" cellpadding=3 cellspacing=0>');
	document.write ('<TR>');
	document.write ('<TD width="700" ALIGN="right" VALIGN="middle">');
	document.write ('<FONT face="Verdana, Arial, Helvetica" Color="#000000" SIZE="-3">');

	document.write ('Internet Explorer (old): ', agt, ', ', this.major, ', ', this.minor);
	document.write ('</FONT>');
	document.write ('</TD>');
	document.write ('</TR>');
	document.write ('</TABLE>');
	document.write ('<HR SIZE="1" ALIGN="RIGHT" WIDTH="50%">');
    }
    else
    {

	timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
	timeValue += (hours >= 12) ? " pm" : " am";
	document.write ('<TABLE Border=1 Width="100%" CellPadding="0" CellSpacing="0"><TR><TD>');
	document.write ('<TABLE Border=0 Width="100%" CellPadding=3 CellSpacing=0>');

	// ROW 1
	document.write ('<TR>');

	// DATA CELL 1,1
	document.write ('<TD Width=30% Align=Left VAlign=Middle BgColor=' + LOC_BG_COLOR + '>');
	document.write ('<FONT Size=+1 Face="Verdana, Arial, Helvetica" Color=black>');
	document.write ('<B>' + LOC_SHORT_NAME + '</B>');
	document.write ('</FONT>');
	document.write ('</TD>');

	// DATA CELL 1,2
	document.write ('<TD Width="30%" Align="Right" VALIGN="middle" BgColor="' + LOC_BG_COLOR + '">');
	document.write ('&nbsp;');
	document.write ('</TD>');

	// DATA CELL 1,3
	document.write ('<TD Width=30% Align=Right VALIGN=middle BgColor=' + LOC_BG_COLOR + '>');
	document.write ('<FONT face="Verdana, Arial, Helvetica" Color=black SIZE=-3>');

	document.write ('Updated: ');   
	document.write (DOWArray[(gsDateModified.getDay()+1)], ' ');   
	document.write (MOYArray[(gsDateModified.getMonth()+1)], ' ');   
	document.write (gsDateModified.getDate (), ' '); 
	if (navigator.appName == ("Netscape"))
	{
	    document.write (gsDateModified.getYear () + 1900);
	}
	else
	{
	    document.write (gsDateModified.getYear ());
	}
 
	document.write (' ', timeValue);
	document.write ('</FONT>');
	document.write ('</TD>');

	// DATA CELL 1,3
	document.write ('<TD ALign=Right>');
	doc_name = document.location.pathname.toLowerCase ();
	if (gbCurrentHome == "T")
	{
	    document.write ('<IMG Align="bottom" Align="left" Border=0 Src="/images/logo-swpp.jpg" Width=50 Title="SWPP Logo" Alt="SWPP Logo">');
	}
	else
	{
	    document.write ('<A HREF="/index.html" onMouseOver="linkPopIn(\'Return to<BR>Home Page\', \'\');" onMouseOut="linkPopOff();" Class=tiny Style="color: ' + LOC_FG_COLOR + ';"><IMG Align="bottom" Align="left" Border=0 Src="/images/logo-swpp.jpg" Width=50 Title="Home Page" Alt="Home Page"><BR>&nbsp;Home</A>');
	}

	document.write ('</TD>');
	document.write ('</TR>');
	document.write ('</TABLE>');
	document.write ('</TABLE>');

	document.write ('<CENTER>');

	// CREATE OUTER TABLE WITH A BORDER AND 1 DATA CELL CONTAINING THE INNER TABLE
	document.write ('<TABLE Border=1 Width="100%" CellPadding="0" CellSpacing="0"><TR><TD>');

	// CREATE INNER TABLE
	document.write ('<CENTER><TABLE Border=0 Width="100%" CellPadding="3" CellSpacing="0"><TR>');

	if (gsCurrentPath.indexOf ("test") == -1)
	{
	    // MenuBar();
	}

	// CLOSE INNER TABLE
	document.write ('</TD></TABLE>');

	// CLOSE OUTER TABLE
	document.write ('</TD></TR></TABLE>');
	document.write ('</CENTER>');

	// CHECK EACH DOCUMENT NAME IN LIST -- ONLY INCLUDE ANNOUNCEMENT ON 
	// MAIN PAGES
	for (i = 1; i < gnDocuments; i++)
	{
	    // CHECK IF CURRENT PAGE CONTAINS DOCUMENT #[i]	
	    if (gsCurrentName.indexOf (gasDocumentName[i]) > -1)
	    {

	    }
	}
    }
}

function OLD_dispFooter()
{
    document.write ('<BR>');

    if (LOC_BG_COLOR == LOC_BG_FOOTER)
    {
	document.write ('<HR Size=1 Align="Right" Width=100%>');
    }
    document.write ('<TABLE Class=tiny BgColor=' + LOC_BG_FOOTER + ' Class=FootLinkBold Style="color: ' + LOC_FG_FOOTER + ';" Border=0 Width="100%" CellPadding=5 CellSpacing=0>');
    document.write ('<TR>');

    ////////////////////////////////////////////////////////////////////////
    // LT: WEB SERVICE
    document.write ('<TD Width=35% Align="left" vAlign="middle">');
    document.write ('Web Services Provided by: <A Href="http://www.stcllp.com" Target="_blank" Title="Internet, Web and E-mail Services by STC Network Systems" Style="color: ' + LOC_FG_FOOTER + '; text-decoration: underline; cursor: pointer;"> <IMG Src="/images/stc.gif" Border="0" Align="Middle" Align="Right" Title="Internet, Web and E-mail Services by STC Network Systems" Alt="[STC Star Logo]">STC Systems</A>');
    document.write ('</TD>');
    
    ////////////////////////////////////////////////////////////////////////
    // CT: BUTTONS
    document.write ('<TD Width=30% Align="center" vAlign="middle">');
    if (gbCurrentHome == "F")
    {
	document.write ('<FORM Name=frmFoot>');
	document.write ('<BR>');
	document.write ('<INPUT Type="Button" Name="btnHome" Value="' + gsUP_ARROW + '&nbsp;Home" Class=button2 onClick="document.location.href=\'' + LOC_HOME_URL + '\';">');
    }
    else
    {
	// IF NO ALTERNATE CODE FOR HOME BUTTON, DISPLAY SPACE
	if ((LOC_HOME_ALT == null) || (LOC_HOME_ALT == ""))
	{
	    document.write ('&nbsp;');
	}
	else
	{
	    document.write (LOC_HOME_ALT);
	}
    }

    document.write ('&nbsp;');
    document.write ('&nbsp;');
    
    // IF NOT ON THE HOME PAGE, DISPLAY BACK BUTTON
    if (gbCurrentHome == "F")
    {
	document.write ('<INPUT Type="Button" Name="btnBack" Value="' + gsLT_ARROW + '&nbsp;Back" Class=button2 onClick="history.go(-1);">');
	document.write ('</FORM>');
    }
    else
    {
	// IF NO ALTERNATE CODE FOR BACK BUTTON, DISPLAY SPACE
	if ((LOC_BACK_ALT == null) || (LOC_BACK_ALT == ""))
	{
	    document.write ('&nbsp;');
	}
	else
	{
	    document.write (LOC_BACK_ALT);
	}
    }
    document.write ('</TD>');

    ////////////////////////////////////////////////////////////////////////
    // RT: COPYRIGHT NOTICE
    document.write ('<TD Width=35% ALIGN="right" VALIGN="middle">');
    tsToday = new Date();
    tsYear = tsToday.getFullYear();
    if (LOC_COPY_YEAR == tsYear)
    {
	document.write ('Copyright &copy; ' + LOC_COPY_YEAR + '&nbsp;' + LOC_LONG_NAME);
    }
    else
    {
	document.write ('Copyright &copy; ' + LOC_COPY_YEAR + '-' + tsYear + '&nbsp;' + LOC_LONG_NAME);
    }
    if (LOC_FOOT_LOGO != "")
    {
	if (gbCurrentHome == "F")
	{
	    document.write ('<A Href="' + LOC_HOME_URL + '"><IMG Src="' + LOC_FOOT_LOGO + '" Width=20 Height=20 Border=0"></A>');
	}
	else
	{
	    document.write ('<IMG Src="' + LOC_FOOT_LOGO + '" Width=20 Height=20 Border=0">');
	}
    }
    document.write ('<A Href="email.html"><IMG Src="/images/mail_lst.gif" Width=1 Height=1 Border=0 Alt="e-mail"></A>');
    document.write ('<A Href="members.html"><IMG Src="/images/mail_lst.gif" Width=1 Height=1 Border=0 Alt="e-mail"></A>');
    document.write ('</TD>');

    document.write ('</TR>');

    document.write ('</TABLE>');

}



