var sQuoteChar=String.fromCharCode(34);
var hostURL = "http://www.ontoursport.com";
var appURL  = "/cgi-bin/live";
var vWorkspace = "/";
var vParams = "&frames=no&target=main&sponsor=000011";
var vWelcome = getCookie("loggedIn");
var newPart ='<form name="quicksearch" method="post" style="margin-bottom: 0px;" onsubmit="javascript:document.location.replace(\''+appURL+'/site.w?location=olc/search.w'+vParams+'&post_action=search&searchtype=word&textsearch=\'+document.quicksearch.textsearch.value);return false;">';
document.write(newPart);    

document.write("<!-- Centering Table -->");
document.write("<table id='backgoundTable' width='100%' border='0' cellpadding='0' cellspacing='0'>");
document.write(" <tr>");
document.write("  <td height='95' align='center' valign='middle' bgcolor='#000000' background='http://www.ontoursport.com/images/menu/headerBackground.jpg'>");
document.write("<!-- Navigation Table -->");
document.write("   <table width='995' border='0' cellpadding='0' cellspacing='0' class='NavBarText'>");
document.write("    <tr valign='middle'>");
document.write("     <!-- Column holding Logo -->");
document.write("     <td width='220' align='left'><img src='http://www.ontoursport.com/images/menu/onTour.jpg' width='190' height='25'></td>");
document.write("     <!-- Column holding Menu -->");
document.write("     <td width='775' align='right' class='NavBarText'>");
document.write("<!-- Menu Table -->");
document.write("      <table border='0' cellpadding='0' cellspacing='0' class='NavBarText'>");
document.write("       <tr>");
document.write("        <td class='NavBarText' valign='middle'><a class='NavBarText' HREF='http://www.ontoursport.com/home.html'>HOME</a></td>");
document.write("        <td width='15' align='center' class='NavBarText' valign='middle'>|</td>");
document.write("        <td class='NavBarText' valign='middle'><a class='NavBarText' HREF='" + vWorkspace + "statichtml/_WhoWeAre.html" + "'>WHO WE ARE</a></td>");
document.write("        <td width='15' align='center' class='NavBarText' valign='middle'>|</td>");
document.write("        <td class='NavBarText' valign='middle'><a class='NavBarText' HREF='" + vWorkspace + "statichtml/_SalesReps.html" + "'>SALES REPS</a></td>");
document.write("        <td width='15' align='center' class='NavBarText' valign='middle'>|</td>");
document.write("        <td class='NavBarText' valign='middle'><a class='NavBarText' HREF='" + vWorkspace + "statichtml/_Handicap.html" + "'>MY HANDICAP</a></td>");
document.write("        <td width='15' align='center' class='NavBarText' valign='middle'>|</td>");
document.write("        <td class='NavBarText' valign='middle'><a class='NavBarText' HREF='"  + appURL + "/site.w?location=olc/search.w" + vParams + "'>SEARCH</a></td>");
document.write("        <td width='15' align='center' class='NavBarText' valign='middle'>|</td>");
document.write("        <td width='20' align='right' valign='middle' class='NavBarText'><input name='textsearch' type='text' class='BlackFooterText' id='search' value='Quick Search' size='12' onfocus='if(this.value==\"Quick Search\") this.value=\"\";'></td>");
document.write("        <td width='30' align='right' valign='middle' class='NavBarText'><input name='searchGo' type='image' value='submit' src='http://www.ontoursport.com/images/menu/goButton.jpg' align='middle'></td>");
document.write("        <td width='50' align='center' valign='middle'></td>");
document.write("        <td class='NavBarText' valign='middle'><a class='NavBarText' HREF='http://www.trimarksportswear.com/cgi-bin/live/site.w?location=tri-login.w&elocation=olc/distrib-tools.w&frames=no&target=main&sponsor=000001'>LOGIN</a></td>");
document.write("        <td width='5' align='center' valign='middle'></td>");
document.write("        <td width='15' align='center' class='NavBarText' valign='middle'><img src='http://www.ontoursport.com/images/menu/onTourIcon.jpg' width='29' height='29'></td>");
document.write("        <td width='5' align='center' valign='middle'></td>");
document.write("       </tr>");
document.write("      </table></td>");
document.write("    </tr>");
document.write("   </table></td>");
document.write(" </tr>");
document.write("</table>");

if (vWelcome != "" && vWelcome != ";")
{
   if (document.getElementById('welcomeMsg'))
      document.getElementById('welcomeMsg').innerHTML = "You are logged in as, " + vWelcome + ".";
   if (document.getElementById('loginLink'))
      document.getElementById('loginLink').innerHTML = "<a class='NavBarText' href='../jscript/" + appURL +  "/site.w?location=logout-fm.w&cancel=yes" + vParams + "'>Logout</a>";
}
else
{
   if (vWelcome == ";")
   {
      document.getElementById('welcomeMsg').innerHTML = "";
   }
   else
   {
      if (document.getElementById('welcomeMsg'))
      {
         document.getElementById('welcomeMsg').innerHTML = vWelcome;
      }
   }

   if (document.getElementById('loginLink'))
   {
      document.getElementById('loginLink').innerHTML = "<a class='NavBarText' href='../jscript/" + appURL +  "/site.w?location=tri-login.w&elocation=olc/distrib-tools.w" + vParams + "'>Login</a>";
   }
}
document.write("</form>");
