
function buildCommonHeader( li_pageType ) {
var lc_bodyMsg

    lc_bodyMsg  = ""
    lc_bodyMsg += "<head>"
    lc_bodyMsg += "    <LINK REL='SHORTCUT ICON' HREF='http://www.wscdesign.net/images/favicon.ico'>"
    lc_bodyMsg += "    <title>WSC Design - Creative Solutions for Your Home</title>"
    lc_bodyMsg += "    <SCRIPT LANGUAGE='JavaScript1.1' SRC='include/js.library.js'    TYPE='text/javascript' ></script>"
    lc_bodyMsg += "    <SCRIPT LANGUAGE='JavaScript1.1' SRC='include/js.tooltip.js'    TYPE='text/javascript' ></script>"
    lc_bodyMsg += "    <SCRIPT LANGUAGE='JavaScript1.1' SRC='include/js.popupdefns.js' TYPE='text/javascript' ></script>"

    lc_bodyMsg += "    <LINK REL='stylesheet'          HREF='include/tooltip.css'      TYPE='text/css'>"
    lc_bodyMsg += "    <LINK REL='stylesheet'          HREF='include/wscdesign.css'    TYPE='text/css'>"

    lc_bodyMsg += "<style>"
    lc_bodyMsg += "hr {"
    lc_bodyMsg += "  height: 5px;"
    lc_bodyMsg += "  width: 98%;"
    lc_bodyMsg += "  background-color: #000;"
    lc_bodyMsg += "  color: #000;"
    lc_bodyMsg += "}"
    lc_bodyMsg += "td {"
    lc_bodyMsg += "  font-family:arial, 'lucida console', sans-serif;"
    lc_bodyMsg += "  font-size:12px;"
    lc_bodyMsg += "}"
    lc_bodyMsg += ""
    lc_bodyMsg += "a {  font-size:10pt; font-weight: bold;  }"
    lc_bodyMsg += "p {  font-size:12pt; font-weight: bold; }"
    lc_bodyMsg += "</style>"
    lc_bodyMsg += ""
    lc_bodyMsg += "</head>"

    lc_bodyMsg += "<body topmargin=0 leftmargin=0>"
    lc_bodyMsg += "<a name='top' id='top' ></a>"

    lc_bodyMsg += "<table style='width:800px; '>"
    lc_bodyMsg += "    <tr>"
    lc_bodyMsg += "        <td valign=top style='background: #403ebb url(images/168.blue.gif) repeat-y; width:111px;xborder-top:1px black solid;'><img src='images/icon.blank.gif'></td>"
    lc_bodyMsg += "        <td valign=top style='padding:0px; margin:0px; '>"
    lc_bodyMsg += "            <table cellpadding=0 cellspacing=0 style='padding:0px; margin:0px; '>"
    lc_bodyMsg += "                <tr><td valign=top style='background-color: #403ebb; '><img src='images/header.wscdesign.gif'><td></tr>"
    //lc_bodyMsg += "                <tr><td style='font-size:40px;text-align:center;'>Creative Solutions for Your Home<td></tr>"


    switch (li_pageType)
    {
        case 1:
            {
                lc_bodyMsg += "                <tr><td style='border-bottom:2px black solid;' align=center><center><a href='index.html'><img src='images/icons/icon.home.gif' border=0></a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='designprocess.html'>Design Process</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='index.html#de'>Design Elements</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='index.html#pr'> Projects</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='gotaway.html'>The Ones That Got Away</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='forfun.html'>Just For Fun</a></center><br></td></tr>"
                break;
            }
        default:
            {
                lc_bodyMsg += "                <tr><td style='border-bottom:2px black solid;' align=center><center><a href='index.html'><img src='images/icons/icon.home.gif' border=0></a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='designprocess.html'>Design Process</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='#' onclick=\"scrollSmoothly( 'de', -1, -1, 600, 50 ); return false;\">Design Elements</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='#' onclick=\"scrollSmoothly( 'pr', -1, -1, 600, 50 ); return false;\">Projects</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='gotaway.html'>The Ones That Got Away</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='forfun.html'>Just For Fun</a></center><br></td></tr>"
                break;
            }
    }
    lc_bodyMsg += "            </table>"

    document.writeln( lc_bodyMsg )
}

//***********************************************
function buildCommonFooter( li_pageType ) {
var lc_bodyMsg

    lc_bodyMsg  = ""
    lc_bodyMsg += "            <div style='text-align:center; line-height:50px;'>"
    lc_bodyMsg += "                Walter S. Crain &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; ph: 703-536-6450 &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; fx: 703-821-0453 &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <a href='mailto:walter@wscdesign.net' title='Click to send me email'>walter@wscdesign.net</a>"
    lc_bodyMsg += "            </div>"
    lc_bodyMsg += "        </td>"

    lc_bodyMsg += "    </tr>"
    lc_bodyMsg += "</table>"
    lc_bodyMsg += "</body>"


    //*** Set all text to be hyperlinked and display definitons
    lc_bodyMsg += "<script>activatePopupDivClassDefinitions();</script>"


    document.writeln( lc_bodyMsg )
}
