// footer.js

var gnPosTitle;
var gnLenTitle;
var aNoteWin;
var bNoteWin;
var clickmessage2 = "Function Disabled! (2)";
var clickmessage3 = "Function Disabled! (3)";
//var gbDebugMode = 'F';

checkBrowser();

if (document.all)
{
    document.onmousedown=disableClick;
}
else if (document.getElementById)
{
    document.onmouseup=disableClick;
}
else if (document.layers)
{
    associateimages();
}

gsPageName = document.location.pathname.toLowerCase ();

gnPosLast = gsPageName.length - 1;

gcNameLast = gsPageName.substr (gnPosLast, 1);

if (gbDebugMode == 'T')
{
    document.write ('<TABLE BgColor=White Border=3>');
    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('Current Page');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gsPageName);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('Pos Last Char');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnPosLast);
    document.write ('</TD>');
    document.write ('</TR>');

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

}

if (gsPageName == '\/guild\/')
{
    gsPageName = '\/welcome.html';

    if (gbDebugMode == 'T')
    {
	document.write ('<TR>');
	document.write ('<TD>');
	document.write ('New Page Name');
	document.write ('</TD>');
	document.write ('<TD>');
	document.write (gsPageName);
	document.write ('</TD>');
	document.write ('</TR>');
    }
}


gnPosTitle = 1;
gnLenPage = gsPageName.length;
for (i = gnLenPage; i > 1; i--)
{
    tcNameChar = gsPageName.substr (i, 1);
    if ((tcNameChar == '/') || (tcNameChar == '\\'))
    {
	gnPosTitle = i + 1;
	break;
    }
}
gnLenTitle = gnLenPage - gnPosTitle;
gsPageTitle = gsPageName.substr (gnPosTitle, gnLenTitle);

gsPageSubject = 'St-Mike: ' + document.title + ' (' + gsPageTitle + ')';

if (gbDebugMode == 'T')
{
    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('Name Length');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gnLenPage);
    document.write ('</TD>');
    document.write ('</TR>');

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

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

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

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

}

if (gbDebugMode == 'T')
{
    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('Document 1 Name');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gasDocumentName[1]);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('<TR>');
    document.write ('<TD>');
    document.write ('Document 1 Title');
    document.write ('</TD>');
    document.write ('<TD>');
    document.write (gasDocumentTitle[1]);
    document.write ('</TD>');
    document.write ('</TR>');

    document.write ('</TABLE>');
}
if (gsCurrentName.indexOf ("forms.html") < 0)
{
    HostAnnounce ();
}

// COPYRIGHT NOTICE
tsToday = new Date();
tsYear = tsToday.getFullYear();

document.write ('<CENTER>');

if (gsCurrentName.indexOf ("webmail") < 0)
{
// 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>');

//gnDocuments--;
    menuBar();
//gnDocuments++;

// MAILTO LINK
document.write ('<TD Class="MenuLink" Align="center" vAlign="middle">');
// IF CURRENT DOCUMENT IS NOT THIS DOCUMENT # IN LIST, PRINT AS LINK
//document.write ('<A HREF="javascript:sendTo(\'Staff, Guild[]\', \'\' + gsPageSubject + '\')">Mail Us</A>');
document.write ('<A HREF="javascript:sendTo(\'Staff, Guild[]\', \'staff\');">Mail Us</A>');
document.write ('</TD>');

// GO BACK LINK
document.write ('<TD Class="MenuLink" Align="center" vAlign="middle">');
document.write ('<A hRef="javascript:history.go(-1)">Back</A>');
document.write ('</TD>');

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

CopyWrite();

function CopyWrite()	// js002f08
{
    document.write ('<TABLE Border=0 Width=100% CellPadding=0 CellSpacing=0>');
    document.write ('<TR>');
    document.write ('<TD Align=Center Width=30>');
    document.write ('&nbsp;');
    document.write ('</TD>');
    document.write ('<TD Class=MenuTiny width="700" ALIGN="center" VALIGN="top">');
    document.write ('<FONT Size=-2>Copyright &copy; 1993-' + tsYear + ' Guild of St. Michael, Inc.</FONT>');
//    document.write ('<BR>');
 //   document.write ('<A Href="http://www.guildofstmichael.org/sitemap.html">Site Map</A>' );
    document.write ('<BR>');
     document.write ('Web Services Provided by: <A HREF="http://www.stcllp.com" Target="_blank" onMouseOver="LinkPopOut(\'STC Network Systems<BR>Web Development Home Page\')"; onMouseOut="LinkPopOff()";> <IMG SRC="/images/star.gif" BORDER="0" ALIGN="Middle" ALIGN="Right" ALT="[Services by STC Systems]"> <B>STC Systems</B></A>&nbsp;');
    document.write ('<A Href="/partners.php"><BR>Our Network Partners</A>');
    document.write ('</TD>');
    document.write ('<TD Width="40" Align="Center" vAlign="Top" BgColor=#556984>');
    document.write ('<TABLE Border=3 BgColor=White Width=100%>');
    document.write ('<TR>');
    document.write ('<TD Align=Center> <A Href="http://www.guildofstmichael.org" Target=_parent onMouseOver="LinkPopIn(\'Return to<BR>Guild of St. Michael<BR>Home Page\', \'\')"; onMouseOut="LinkPopOff()">');
    document.write ('<IMG Src="http://guildofstmichael.org/images/tenticon.gif" Border=1 Align=Center Align=top Width=80>');
    document.write ('<BR><SPAN Class=HomeLink>Home</SPAN>');
    document.write ('</A>');
    document.write ('</TD>');
    document.write ('</TR>');
    document.write ('</TABLE>');
    document.write ('</TD>');

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

function CopyRight()	// js002f07
{
    // COPYRIGHT NOTICE
    document.write ('<TABLE border="0" width="100%" cellpadding=3 cellspacing=0>');
    document.write ('<TR>');
    document.write ('<TD width="700" ALIGN="right" VALIGN="middle">');
    tsToday = new Date();
    tsYear = tsToday.getFullYear();
    document.write ('<H6>Copyright &copy; 1993-' + tsYear + ' Guild of St. Michael - South</H6>');
    document.write ('</TD>');
    document.write ('</TR>');
    if (gsPageName.indexOf ("footer.html") == -1)
    {
	document.write ('<TR>');
	document.write ('<TD width="700" ALIGN="right" VALIGN="middle">');
	document.write ('Web Services Provided by: <A HREF="http://www.stcllp.com" Target=_blank onMouseOver="LinkPopOut(\'STC Network Systems<BR>Web Development Home Page\', \'#FFFFCC\')"; onMouseOut="LinkPopOff( )";> <IMG SRC="/images/star.gif" BORDER="0" ALIGN="Middle" ALIGN="Right" ALT="[Services by STC Systems]"> <B>STC Systems</B> </A>');
	document.write ('</TD>');
	document.write ('</TR>');
    }
    document.write ('</TABLE>');
    document.write ('</CENTER>');
}

function disableClick(e) 	// js002f06
{
    if (document.all) 
    {
	if (event.button==2||event.button==3) 
	{
	    if (event.srcElement.tagName=="IMG")
	    {
		alert(clickmessage1);
		return false;
	    }
	}
    }
    else if (document.layers) 
    {
	if (e.which == 3) 
	{
	    alert(clickmessage2);
	    return false;
	}
    }
    else if (document.getElementById)
    {
	if (e.which==3&&e.target.tagName=="IMG")
	{
	    alert(clickmessage3);
	    return false;
	}
    }
}

function associateimages()	// js002f05
{
    for(i = 0; i < document.images.length; i++)
    {
	document.images[i].onmousedown=disableClick;
    }
}

function buildName(tsName,tsPage)	// js002f04
{

    var gnLenName;

    if (tsPage == null)
    {
	tsPage = '';
    }
    if(!mie)
    {
	pageX=window.pageXOffset;
	pageW=window.innerWidth;
	pageY=window.pageYOffset;
	pageH=window.innerHeight;
    }
    else
    {
	pageX=window.document.body.scrollLeft;
	pageW=window.document.body.offsetWidth-8;
	pageY=window.document.body.scrollTop;
	pageH=window.document.body.offsetHeight;
    } 
    tsName1 = tsName.substring(0,1);
    // -->M
//    tsName1 = tsName1.toLowerCase();
    // -->m

    gnPos = tsName.indexOf(" ");
    gnPos1 = tsName.indexOf("[");
    gnLenName = tsName.length - (tsName.length - gnPos1);
    gnLenPage = tsPage.length;

    // -->7
    if (gnPos > -1)
    {
	//tsName2 = tsName.substring(gnPos + 1, tsName.length);
	tsName2 = tsName.substring(gnPos + 1, gnLenName);
	// -->Foster
    }
    else
    {
	tsName2 = tsName.substring(1, gnLenName);
    }
    // IF INITIAL PASSED
    if ((tsName.length - gnPos1) > 2)
    {
	tsName3 = tsName1 + tsName.substring(gnPos1 + 1, 1) + tsName2;
    }
    else
    {
	tsName3 = tsName1 + tsName2;
    }
//    tsName3 = tsName3.toLowerCase();
    // -->foster

    // -->mfoster


    returnname = tsName.substring(0, gnPos1);
    return returnname;
}

function buildMail(tsName,tsPage)	// js002f03
{
    if (tsPage == null)
    {
	tsPage = '';
    }
    if(!mie)
    {
	pageX=window.pageXOffset;
	pageW=window.innerWidth;
	pageY=window.pageYOffset;
	pageH=window.innerHeight;
    }
    else
    {
	pageX=window.document.body.scrollLeft;
	pageW=window.document.body.offsetWidth-8;
	pageY=window.document.body.scrollTop;
	pageH=window.document.body.offsetHeight;
    } 
    tsName1 = tsName.substring(0,1);
    // -->M
//    tsName1 = tsName1.toLowerCase();
    // -->m

    gnPos = tsName.indexOf(" ");
    gnPos1 = tsName.indexOf("[");
    gnLenName = tsName.length - (tsName.length - gnPos1);
    gnLenPage = tsPage.length;

    // -->7
    if (gnPos > -1)
    {
	//tsName2 = tsName.substring(gnPos + 1, tsName.length);
	tsName2 = tsName.substring(gnPos + 1, gnLenName);
	// -->Foster
    }
    else
    {
	tsName2 = tsName.substring(1, gnLenName);
    }
    // IF INITIAL PASSED
    if ((tsName.length - gnPos1) > 2)
    {
	tsName3 = tsName1 + tsName.substring(gnPos1 + 1, 1) + tsName2;
    }
    else
    {
	tsName3 = tsName1 + tsName2;
    }
    tsName3 = tsName3.toLowerCase();
    // -->foster

    // -->mfoster


    tsName4 = tsName.substring(0, gnPos1);
    gsDomain = "guildofstmichael.org";
    gnLeft = (pageW / 2) - 100;
    gnTop = (pageH / 2) - 75;
    if (tsPage == "T")
    {
	returnname = tsName3 + '@' + gsDomain + '?subject=' + gsPageSubject;
    }
    else
    {
	returnname = tsName3 + '@' + gsDomain;
    }
    return returnname;
}

function buildPage(tsName,tsPage)	// js002f02
{
    if (tsPage == null)
    {
	tsPage = '';
    }
    if(!mie)
    {
	pageX=window.pageXOffset;
	pageW=window.innerWidth;
	pageY=window.pageYOffset;
	pageH=window.innerHeight;
    }
    else
    {
	pageX=window.document.body.scrollLeft;
	pageW=window.document.body.offsetWidth-8;
	pageY=window.document.body.scrollTop;
	pageH=window.document.body.offsetHeight;
    } 
    tsName1 = tsName.substring(0,1);
    // -->M
    tsName1 = tsName1.toLowerCase();
    // -->m

    gnPos = tsName.indexOf(" ");
    gnPos1 = tsName.indexOf("[");
    gnLenName = tsName.length - (tsName.length - gnPos1);
    gnLenPage = tsPage.length;

    // -->7
    if (gnPos > -1)
    {
	//tsName2 = tsName.substring(gnPos + 1, tsName.length);
	tsName2 = tsName.substring(gnPos + 1, gnLenName);
	// -->Foster
    }
    else
    {
	tsName2 = tsName.substring(1, gnLenName);
    }
    // IF INITIAL PASSED
    if ((tsName.length - gnPos1) > 2)
    {
	tsName3 = tsName1 + tsName.substring(gnPos1 + 1, 1) + tsName2;
    }
    else
    {
	tsName3 = tsName1 + tsName2;
    }
    tsName3 = tsName3.toLowerCase();
    // -->foster

    // -->mfoster


    tsName4 = tsName.substring(0, gnPos1);
    gsDomain = "guildofstmichael.org";
    gnLeft = (pageW / 2) - 100;
    gnTop = (pageH / 2) - 75;
    returnpage = gsDomain + '/members/' + tsName3;
    return returnpage;
}

function PTAsendTo(tsName,tsPage)
{
    tsSubject = "[STM ONLINE] Web Contact";
    gbDebugMode = 'F';
    if (gbDebugMode == 'T')
    {
	document.write ('<TABLE Border=1><TR><TD>Name :' + tsName + ':</TD></TR></TABLE>');
	document.write ('<TABLE Border=1><TR><TD>Position :' + tsPage + ':</TD></TR></TABLE>');
    }
    if (tsPage == null)
    {
	tsPage = '';
    }
    else
    {
	tsPage = tsPage.toLowerCase();
	tnPosBR = tsPage.indexOf("<br>");
	if (tnPosBR > -1)
	{
	    tsPage = tsPage.substring(0, tnPosBR);
	}
	tnPosCom = tsPage.indexOf(",");
	if (tnPosCom > -1)
	{
	    tsPage = tsPage.substring(0, tnPosCom);
	}
    }
    if(!mie)
    {
	pageX=window.pageXOffset;
	pageW=window.innerWidth;
	pageY=window.pageYOffset;
	pageH=window.innerHeight;
    }
    else
    {
	pageX=window.document.body.scrollLeft;
	pageW=window.document.body.offsetWidth-8;
	pageY=window.document.body.scrollTop;
	pageH=window.document.body.offsetHeight;
    } 
    //document.write ("(" + pageX + " x " + pageY + ")" + mie + "<BR>");
    //document.write ("(" + pageW + " x " + pageH + ")" + mie + "<BR>");

     //document.write ("<BR>&lt;" + tsName + "&gt;");
    // 00000000001111
    // 01234567890123
    // Foster, Michael

    // INITIAL -->M
    tsName1 = tsName.substring(0,1);

    // LOWER CASE FIRST NAME/INITIAL
    // -->m
    // -->michael
    tsName1 = tsName1.toLowerCase();

    ///////////////////////////////////////////////////////////////
    // FULL NAME IN LOWER CASE
    tsNameFull = tsName.toLowerCase();
    tnLenFull = tsNameFull.length;
    // -->0000000000111111
    // -->0123456789012345
    // -->michael foster[]
    //OLD
    tnPosSpc = tsPage.indexOf(" ");
    tsTmpPage = tsPage.substring(0, tnPosSpc) + tsPage.substring(tnPosSpc+1, 9999); 
    tsPage = tsTmpPage;

    tnPosComma = tsNameFull.indexOf(",");

    //OLD
    //tnLenFirst = tsNameFirst.length;
    tsNameLast = tsNameFull.substring(0, tnPosComma); 
    tnLenLast = tsNameLast.length;
    tnPosBracket = tsName.indexOf("[");
    tnNameEnd = tnLenFull - tnPosBracket;
    //OLD
    //tsNameLast = tsNameFull.substring(tnPosSpace + 1, tnLenFull - tnLenFirst - tnNameEnd - 1);
    tsNameFirst = tsNameFull.substring(tnPosComma + 1, tnLenFull - tnLenLast - tnNameEnd - 1);

    gnLenPage = tsPage.length;

    gnPos1 = tsName.indexOf("[");
    gnLenName = tsName.length - (tsName.length - gnPos1);

    // -->7
    gnPos = tsName.indexOf(" ");
    if (gnPos > -1)
    {
	//tsName2 = tsName.substring(gnPos + 1, tsName.length);
	tsName2 = tsName.substring(gnPos + 1, gnLenName);
	// -->Foster
    }
    else
    {
	tsName2 = tsName.substring(1, gnLenName);
    }

    // IF INITIAL PASSED
    if ((tsName.length - gnPos1) > 2)
    {
	tsName3 = tsName1 + tsName.substring(gnPos1 + 1, 1) + tsName2;
    }
    else
    {
	tsName3 = tsName1 + tsName2;
    }
    tsName3 = tsName2 + '.' + tsNameLast;
    tsName3 = tsName3.toLowerCase();
    //tnPosSpace = tsName3.indexOf(" ");
    // -->foster

    // -->mfoster


    tsName4 = tsName.substring(0, gnPos1);
    if (gbDebugMode == 'T')
    {
	document.write ('<TABLE Border=1><TR><TD>Name1 :' + tsName1 + ':</TD></TR></TABLE>');
	document.write ('<TABLE Border=1><TR><TD>Name2 :' + tsName2 + ':</TD></TR></TABLE>');
	document.write ('<TABLE Border=1><TR><TD>Name3 :' + tsName3 + ':</TD></TR></TABLE>');
	document.write ('<TABLE Border=1><TR><TD>Name4 :' + tsName4 + ':</TD></TR></TABLE>');
	document.write ('<TABLE Border=1><TR><TD>Position :' + tsPage + ':</TD></TR></TABLE>');
    }
    gsDomain = "guildofstmichael.org";
    gnLeft = (pageW / 2) - 100;
    gnTop = (pageH / 2) - 75;
    //document.write ("(" + gnLeft + " x " + gnTop + ")" + mie + "<BR>");
//onclick="NewWindow(this.href,'name','400','400','yes');return false">Website Abstraction</a>


    newWindow ('', 'Contact', '300', '200', 'yes');
//    aPopUp = window.open ('', 'Contact', 'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=200,top='+gnTop+',left='+gnLeft);
    ndoc = aPopUp.document;

    //return (tsName3 + '@' + gsDomain);
    astr = '<HTML><HEAD><BR><TITLE>Guild Contact</TITLE>';
    astr += '</HEAD>';
    astr += '<SCRIPT>';
    astr += 'function closeNote(which)';
    astr += '{';
    astr += 'self.close()';
    astr += '}';
    astr += '</SCRIPT>';
    astr += '<BODY BackGround=/images/parchtan.jpg>';
    astr += '<CENTER>';
    astr += '<B>Contact<BR>' + tsName4 + '</B><BR>select e-Mail address for<BR>';
    astr += '<TABLE>';

//    astr += '<TR>';
//    astr += '<TH>';
//    astr += 'First->' + tsNameFirst + '<  Last->' + tsNameLast + '<';
//    astr += '</TH>';
//    astr += '</TR>';

    astr += '<TR>';
    astr += '<TD>';
    //if (gnLenPage == 0)
    //{
	//astr += '<A Href=\"mailto:' + tsName3 + '@' + gsDomain + '\" onClick=\"closeNote()\">';
	astr += '<A Href=\"mailto:' + tsName3 + '@' + gsDomain + '?subject=' + tsSubject + '\" onClick=\"closeNote()\">';
    //}
    //else
    //{
	//astr += '<A Href=\"mailto:' + tsName3 + '@' + gsDomain + '?subject=' + tsPage + '\" onClick=\"closeNote()\">';
//	astr += '<A Href=\"mailto:' + tsNameFirst + '.' + tsNameLast + '@' + gsDomain + '?subject=' + tsPage + '\" onClick=\"closeNote()\">';
 //   }
    astr += '<IMG Src=\"/images/btn_member.gif\" Border=0></A>';
    astr += '</TD>';
    astr += '<TD>&nbsp;-or-&nbsp;</TD>';
    astr += '<TD>';
    //astr += '<A Href=\"http://www.' + gsDomain + '/members/' + tsName3 + '.html\" Target=\"_blank\" onClick=\"closeNote()\">';
    astr += '<A Href=\"mailto:' + tsPage + '@' + gsDomain + '?subject=' + tsSubject + '\" onClick=\"closeNote()\">';
    astr += '<IMG Src=\"/images/btn_position.gif\" Border=0></A>';
    astr += '</TD>';
    astr += '</TR>';
    astr += '</TABLE>';
    astr += '<BR>';
    //astr += '<FORM><INPUT Type=\"Button\" Value=\"Close\" onClick=\"self.close()\"></FORM>';
    astr += '<A Href="#close" onClick=\"self.close()\"><IMG Src=\"/images/btn_close.gif\" Border=0></A>';
    //astr += '<FORM><INPUT Type=\"Button\" Value=\"Close\" Name=\"closeBtn\" onClick=\"closeNote()\"></FORM>';
    astr += '</CENTER></BODY></HTML>';
    ndoc.write(astr);
    if (gbDebugMode == 'T')
    {
	document.write ('<TABLE Border=1><TR><TD>Position :' + tsPage + ':</TD></TR></TABLE>');
    }
    ndoc.close();
    self.aNoteWin = aPopUp;

    //document.write ('<A Href=\"mailto:' + tsName3 + '@' + gsDomain + '\">');
    //document.write ('<IMG Src=\"/images/clickml1.gif\"></A>');
    //document.write ('<A Href=\"http://www.' + gsDomain + '/members/' + tsName3 + '.html\" Target=\"_blank\">');
    //document.write ('<IMG Src=\"/images/clickml2.gif\"></A>');
    return;
}

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

//////////////////////
// ssmitems.js
//////////////////////


//
// Configure menu styles below
// NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
//*

YOffset = 1; // pixels from top (Def=150) no quotes!!
XOffset = 0; // pixels from left (Def=0)
staticYOffset = 30; // pixels from top when moved (Def=30) no quotes!!
slideSpeed = 20 // no quotes!!
waitTime = 100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor = "black";
menuIsStatic = "yes"; //this sets whether menu should stay static on the screen
menuWidth = 150; // Must be a multiple of 10! no quotes!!
menuCols = 2;
hdrFontFamily = "verdana";
hdrFontSize = "2";
hdrFontColor = "black";
//hdrBGColor = "#170088";
hdrBGColor = "#CCCCCC";
hdrAlign = "left";
hdrVAlign = "center";
hdrHeight = "15";
linkFontFamily = "Verdana";
linkFontSize = "2";
linkBGColor = "white";
//linkOverBGColor = "#FFFF99";
linkOverBGColor = "#007722";
linkTarget = "_parent";
linkAlign = "Left";
barBGColor = "#007722";
//barBGColor = "#444444";
barFontFamily = "Verdana";
barFontSize = "2";
barFontColor = "white";
barVAlign = "center";
barWidth = 20; // no quotes!!
barText = "GUILD MENU"; // <IMG> tag supported. Put exact html for an image to show.
///////////////////////////////////////

///////////////////////////

// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
gnMenuItems = 0
ssmItems[gnMenuItems++]=["Main Pages"]; //create header
ssmItems[gnMenuItems++]=["Home Page", "http://www.guildofstmichael.org", ""];
ssmItems[gnMenuItems++]=["What's New", "http://www.guildofstmichael.org/whatsnew.html", "Target=_parent"];
ssmItems[gnMenuItems++]=["Education", "http://www.guildofstmichael.org/educate.html", "Target=_parent"];
ssmItems[gnMenuItems++]=["Reenactment", "http://www.guildofstmichael.org/english.html", "Target=_parent"];
ssmItems[gnMenuItems++]=["Medicine", "http://www.guildofstmichael.org/medicine", "Target=_parent"];
ssmItems[gnMenuItems++]=["Library", "http://www.guildofstmichael.org/library", "Target=_parent"];

ssmItems[gnMenuItems++]=["Faire", "http://www.guildofstmichael.org/rpfs.html", "Target=_parent", 1, "no"]; //create two column row
ssmItems[gnMenuItems++]=["Contacts", "http://www.guildofstmichael.org/scripts/members.php", "",1];

ssmItems[gnMenuItems++]=["User Links", "", ""]; // CREATE HEADER
ssmItems[gnMenuItems++]=["Member Login", "http://www.guildofstmichael.org/sm_user.html", "Target=_parent"];
ssmItems[gnMenuItems++]=["Web Mail", "http://www.guildofstmichael.org/webmail.html", "Target=_parent"];
ssmItems[gnMenuItems++]=["Forms Library", "http://www.guildofstmichael.org/library/forms.html", "Target=_parent"];
ssmItems[gnMenuItems++]=["Corporate Site", "http://www.guildofstmichael.com", "_new"];
if (gbAlert == "T")
{
    ssmItems[gnMenuItems++]=["&gt;&gt;&nbsp;Alert&nbsp;&lt;&lt;", "http://www.guildofstmichael.org/alert.html", "_new"];
}

buildMenu();

document.write ('<TABLE Border=0 CellSpacing=3>');
document.write ('<TR>');
document.write ('<TD>');
document.write ('<A HREF="http://www.guildofstmichael.org/members.html" Target=_parent>');
document.write ('<IMG SRC="/images/clickml0.gif" WIDTH=1 HEIGHT=1 ALT="Membership List" BORDER=0>');
document.write ('</A>');
document.write ('</TD>');
document.write ('<TD>');
document.write ('<A HREF="http://www.guildofstmichael.org/contacts.html" Target=_parent>');
document.write ('<IMG SRC="/images/clickml0.gif" WIDTH=1 HEIGHT=1 ALT="Contact List" BORDER=0>');
document.write ('</A>');
document.write ('</TD>');
document.write ('</TR>');
document.write ('</TABLE>');
document.write ('<META HTTP-EQUIV=\"pragma" CONTENT="no-cache">');

function PTAnewWindow(mypage,myname,w,h,scroll)
{
    LeftPosition = (screen.width) ? (screen.width-w) / 2 : 0;
    TopPosition = (screen.height) ? (screen.height-h) / 2 : 0;
    settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+', toolbar=no, directories=no, location=no, status=no, menubar=no, scrollbars='+scroll+', resizable=no';
    //aPopUp = window.open(mypage, myname, settings);
    aPopUp = window.open(mypage, 'Contact', settings);
}

function newWindow(mypage,myname,w,h,scroll)	// js002f01
{
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,status=yes';
    aPopUp = window.open(mypage,myname,settings);
}

