/* for live site */
var vRoot = "/live";
var vRootBin = "/livew";
var vCartPath = "http://www.statononline.com/cgi-bin/livew/site.w?sponsor=000001&target=main&static=yes&form=no&location=b2c/index.w%3Fsponsor%3D000001%26location%3Dolc/quickorder.w";

/* for test site 
var vRoot = "/statest";
var vRootBin = "/statest";
var vCartPath = "http://www.statononline.com/cgi-bin/statest/site.w?sponsor=000001&target=main&static=yes&form=no&location=b2c/index.w%3Fsponsor%3D000001%26location%3Dolc/quickorder.w";
*/


/* for workspace below 
var vRoot = "/sta97";
var vRootBin = "/sta97w";
var vCartPath = "http://fdm4x.fdm4.com/cgi-bin/sta97w/site.w?sponsor=000001&target=main&static=yes&form=no&location=b2c/index.w%3Fsponsor%3D000001%26location%3Dolc/quickorder.w";
*/

/* end workspace vars */


var vUrl = location.href;
var vQueryString= vUrl.substring(vUrl.indexOf("?") + 1,vUrl.length);
var Params = vQueryString.split("&");

for (var i=0; i<Params.length; i++)
{
  var vName=Params[i].substr(0,Params[i].indexOf("="));
  var vEntry=Params[i].substr(Params[i].indexOf("=")+1,Params[i].length);

  if(vName=="sponsor")
    var vSponsor=vEntry;
}

var user = getCookie("loggedIn" + vCookie + vSponsor);

document.write('<link rel="stylesheet" type="text/css" href="' + vRoot + '/styles/footer.css">');
document.write('<p></p>');
document.write('<table  cellpadding="0" width="100%"  id="footerfont"  bgcolor="#FFFFFF"><tr>'); /* XXX added <tr> */
/*
document.write(' <td class=leftspacer> <img src="' + vRoot + '/images/1by1pix.gif"class=leftspacer></td>');
*/
document.write(' <td>');
document.write('  <div align="left">');
document.write('   <table  cellpadding="0"  width="100%" id="footerfont" bgcolor="#FFFFFF">');
/*
document.write('    <tr><td id="tdborder" valign="top" width="25%" height="90" bgcolor="#FFFFFF"  style="margin-bottom: 0" align="center">');
document.write('     <script language="javascript">');
document.write('      function footerSearch(searchString)');
document.write('      {');
document.write('        externalAdd(vCartPath,searchString,vCookie + vSponsor,searchString,"");');

document.write('    golink("olc/quickorder.w?style=" + searchString,"main");');

document.write('      }');
document.write('     function validateInnerSearchStringFooter(searchValue)');
document.write('     {');
document.write('       var flgStringValid = true;');
document.write('       var strSearchString = "";');
document.write('       if (searchValue == "")');
document.write('         strSearchString = new String(document.footerSearch.keyword.value);');
document.write('       else');
document.write('        strSearchString = new String(searchValue);');
document.write('       if(strSearchString=="")');
document.write('       {');
document.write('        alert("Please enter a word or phrase to search for.");');
document.write('        document.footerSearch.keyword.focus();');
document.write('        return false;');
document.write('       }');
document.write('       var index;');
document.write('       var strErrorMsg, strErrorMsgInvalidChars;');
document.write('       var strArrayOfInvalidChars = new Array("?","/","@","(",")","$","%","!");');
document.write('       index = 0;');
document.write('        while (flgStringValid == true && index < strArrayOfInvalidChars.length)');
document.write('         {');
document.write('           if (strSearchString.indexOf(strArrayOfInvalidChars[index]) != -1)');
document.write('            {');
document.write('             strErrorMsg = "Were sorry, your search phrase cannot contain the following characters: ";');
document.write('             strErrorMsgInvalidChars = "";');
document.write('              for (index = 0; index < strArrayOfInvalidChars.length; index++)');
document.write('              {');
document.write('               strErrorMsgInvalidChars = strErrorMsgInvalidChars + "\'\'" + strArrayOfInvalidChars[index] + "\'\'";');
document.write('                if (index + 1 < strArrayOfInvalidChars.length)');
document.write('                 {');
document.write('                   strErrorMsgInvalidChars = strErrorMsgInvalidChars + ", ";');
document.write('                 }');
document.write('              }');
document.write('             alert(strErrorMsg + strErrorMsgInvalidChars);');
document.write('             flgStringValid = false;');
document.write('            }');
document.write('          index++;');
document.write('         }');
document.write('       if (flgStringValid)');
document.write('        footerSearch(document.footerSearch.keyword.value);');
document.write('       else return false;');
document.write('     }');
document.write('     function disableEnterFooter(vEvent)');
document.write('     {');
document.write('     var vKey = window.event ? vEvent.keyCode : vEvent.which;');
document.write('     if(vKey == 13)');
document.write('      {');
document.write('       validateInnerSearchStringFooter(document.footerSearch.keyword.value);');
document.write('       return false;');
document.write('      }');
document.write('     else');
document.write('       return true;');
document.write('     }');
document.write('    </script>');
document.write('       <form name="footerSearch" action="" style="margin-bottom: 0">');
document.write('        <p class="footerheader" align="center" style="margin-top: 2;margin-bottom: 0">Quick Order <input type="text" name="keyword" size="5" onkeypress="return disableEnterFooter(event);"/><p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;<p style="margin-top: 0; margin-bottom: 0" align="center">');
document.write('         Search by style number, brand, color, or<p align="center" style="margin-top: 0; margin-bottom: 0">');
document.write('        catalog page number<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<a href="#" onclick="validateInnerSearchStringFooter(document.footerSearch.keyword.value);">Search</a>');
document.write('       </form>');
document.write('      </td>');
document.write('      <td id="tdborder" valign="top" width="25%" height="90" bgcolor="#FFFFFF"  style="margin-top: 0; margin-bottom: 0" align="center">');
document.write('       <p style="margin-top: 0; margin-bottom: 0"><a href="javascript:top.golink(\'olc/lowest-price.w\',\'main\');"><span class="footerheader1">Lowest Price Search</span></a></p>');
document.write('       <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>');
document.write('       <p style="margin-top: 0; margin-bottom: 0">Search each category<p style="margin-top: 0; margin-bottom: 0">for the lowest price</td>');
document.write('      <td id="tdborder" valign="top" width="25%" height="90" bgcolor="#FFFFFF"  align="center">');
document.write('       <p style="margin-top: 0; margin-bottom: 0"><a href="javascript: golink(\'olc/catalog-gateway.w?category=specials&showfeatures=no\',\'main\')">');
document.write('       <span class="footerheader1">Specials</span></a></p>');
document.write('       <p></p>See Whats On Sale');
document.write('      </td>');
document.write('      <td id="tdborder" valign="top" width="25%" height="90" bgcolor="#FFFFFF"  align="center">');
document.write('      <p style="margin-top: 0; margin-bottom: 0"><a href="javascript:top.golink(\'olc/catalog-gateway.w?category=closeouts&showfeatures=no\',\'main\')"><span class="footerheader1">Staton Outlet</span></a></p>');
document.write('      <p></p>Shop styles available at closeout prices');
document.write('     </tr></td>');
*/
document.write('     <TR><TD colspan="4">');
document.write('      <p class="footer" align="center">&nbsp;</p>');
document.write('      <p class="footer" align="center">');
document.write('      <a href="/cgi-bin' + vRootBin + '/site.w?sponsor=' + vSponsor + '">Home</a> | ');
document.write('      <a href="' + vRoot + '/static/catalogrequest.html" target="_blank">Catalog Request</a> | ');
document.write('      <a href="' + vRoot + '/static/Contact_us.html?sponsor=' + vSponsor + '" target="_blank">Contact Us</a> | ');
document.write('      <a href="/cgi-bin' + vRootBin + '/site.w?sponsor=000001&target=main&static=yes&form=no&location=b2c/index.w%3Fsponsor%3D000001%26location%3Dolc/olc-cart-fm.w%3Fsponsor%3D000001">Shopping Cart</a> ');
/*document.write(' | <a href="' + vRoot + '/static/catalog.html?sponsor=' + vSponsor + '" target="_blank">Virtual Catalog</a>');*/

if (user == "") {
document.write('|     <a href="javascript:showPasshint(document.leftMenu.struserid.value);">Forgot Password</a>&nbsp;</p>');
}
document.write('      <p class="footer" align="center">');
document.write('      <a href="' + vRoot + '/static/apps.html?sponsor=' + vSponsor + '" target="_blank">Applications and Forms</a> | ');
document.write('      <a href="' + vRoot + '/static/warehouse.html?sponsor=' + vSponsor + '" target="_blank">Warehouse Locator</a> | ');
document.write('      <a href="' + vRoot + '/static/About_us.html?sponsor=' + vSponsor + '" target="_blank">About Us</a></p>');
document.write('      <p class="footer" align="center">');
document.write('      &nbsp;</p>');
document.write('     </TR></TD>');
document.write('   </table>');
document.write('  </div>');
document.write('  </TD>');
document.write(' </Tr>');
document.write('</table>');
document.write('<center>');
document.write('<iframe scrolling="no" style="position:relative; top:0px; padding-left:50px" frameborder="0" height="147px" width="500px"src="https://www.statononline.com/live/jscript/vsign.htm"/>');







