/*
 * File: default.js
 *  (www.fieldsystem.com version)
 *
 * Change History
 *  5/11/2003: Andy - Created, derived from work authored from Contract Cleaners Supply site.
 *
 */

var doLeftMenu = true;
var doMenu = true;

if(top!=self){top.location=self.location;}

function LeftNavLink(docroot, link, title, enabled) {
    document.write("<tr valign=top>");
    document.write("<td align=left>");
    document.write("<img src=\""+docroot+"/images/content_arrow.gif\" border=0>&nbsp;");
    document.write("</td><td align=left class=Menu>");
    if (enabled == true) {
	document.write("<a href=\""+link+"\" class=Menu>");
    }
    document.write(title);
    if (enabled == true) {
	document.write("</a>");
    }
    document.write("<br>&nbsp;</td></tr>\n");
}

function MenuLink(docroot, link, title, enabled) {
    document.write("<td class=MenuSmall>&nbsp;&nbsp;");
    if (enabled == true) {
	document.write("<a href=\""+link+"\" class=MenuSmall>");
    }
    document.write(title);
    if (enabled == true) {
	document.write("</a>");
    }
    document.write("&nbsp;&nbsp;</td>");
}

function PageMenu(docroot, cgiroot) {
    document.write("<Table border=0 bgcolor=blue cellpadding=0 cellspacing=0 width=100%><tr><td>");
    document.write("<Table border=0 bgcolor=blue cellpadding=0 cellspacing=0>\n");
    document.write("<tr>\n");
    document.write("<td><img src=\""+docroot+"/images/space.gif\" width=5 height=1></td>\n");
    MenuLink(docroot, docroot+"/index.html", "Home", true);
    MenuLink(docroot, docroot+"/services/index.html", "Services", true);
    MenuLink(docroot, docroot+"/customers/index.html", "Customers", true);
    // document.write("<td width=100%><img src=\""+docroot+"/images/space.gif\" width=1 height=1></td>\n");
    MenuLink(docroot, docroot+"/contact/index.html", "Contact&nbsp;Us", true);
    document.write("<td><img src=\""+docroot+"/images/space.gif\" width=5 height=1></td>\n");
    document.write("</tr>\n");
    document.write("</Table>");
    document.write("</td></tr></Table>");
}

function PageHeader(docroot, cgiroot) {
    document.write("<Table width=100% background=\""+docroot+"/images/bannerbg.gif\" border=0 cellpadding=0 cellspacing=0 border=0>");
    document.write("<tr>");
    document.write("<td>&nbsp;<br><br><br><br><br></td>");
    document.write("<td valign=middle><img src=\""+docroot+"/images/wwwfieldsystem.gif\" border=0></td>");
    document.write("</tr>");
    document.write("</Table>");

    if (doMenu == true) {
	PageMenu(docroot, cgiroot);
    }

    if (doLeftMenu == true) {
	document.write("<Table cellpadding=0 cellspacing=0 border=0>");
	document.write("<tr valign=top>");
	document.write("<td background=\""+docroot+"/images/background.gif\">\n");
	document.write("<Table cellpadding=8 border=0 bgcolor=blue><tr><td>\n");
	document.write("<Table cellpadding=0 cellspacing=0 border=0>\n");
	document.write("<tr><td colspan=2><img src=\""+docroot+"/images/space.gif\" width=80 height=10></td></tr>");
	LeftNavLink(docroot, docroot+"/services/index.html", "Services", true);
	LeftNavLink(docroot, docroot+"/customers/index.html", "Customers", true);
	LeftNavLink(docroot, docroot+"/contact/index.html", "Contact", true);
	document.write("</Table>\n");
	document.write("</td></tr></Table>\n");
	document.write("</td><td>&nbsp;&nbsp;&nbsp;&nbsp;\n");
	document.write("</td><td width=100%>\n");
    }
}

function PageFooter(docroot) {
    if (doLeftMenu == true) {
	document.write("</td></tr></Table>");
    }
    document.write("<p><hr><Font size=1>&nbsp;&nbsp;Copyright &copy; 1997-2003 Field Systems Integrated, &nbsp;&nbsp; All rights reserved.</Font>");
}

