// Sport & Publicity Webpage Header

//---------------------------------------------------------------------||
// FUNCTION:    PageHeader                                             ||
// PARAMETERS:  page type                                              ||
// RETURNS:                                                            ||
// PURPOSE:     Generates page header                                  ||
//---------------------------------------------------------------------||

function PageHeader(pagetype){
	
   document.write("<table style=\"text-align: left; height: 116px; background-color: rgb(0, 24, 181); width: 826px;\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\">");
   document.write("<tbody><tr><td style=\"width: 110px; text-align: center;\"><a href='SportandPublicityMainPage.html'><img style=\"border: 0px solid; width: 102px; height: 107px;\" alt=\"\" src=\"totallyBlueSm.gif\" align=\"top\" hspace=\"0\"></a></td>");
   document.write("<td style=\"text-align: center; width: 580px;\"><big><span style=\"color: white;\"><big><big><big>SPORT &amp; <span style=\"font-style: italic;\">Publicity<br>");
   document.write("<small><small>sport_publicity@hotmail.com </small></small></span></big></big></big></span></big></td>");
   document.write("<td style=\"text-align: center; width: 110px;\"><big><big><big><big><a href='SportandPublicityMainPage.html'><img style=\"border: 0px solid; width: 102px; height: 107px;\" alt=\"\" src=\"totallyBlueSm.gif\" align=\"top\"></a></big></big></big></big></td>");
   document.write("</tr></tbody></table>");
   document.write("<table style=\"text-align: left; background-color: rgb(0, 24, 181); width: 825px; height: 32px;\">");

   document.write("<tbody><tr>");
   
     if ( pagetype == 'mainpage' ) {
      document.write("<td style=\"width: 110px; text-align: center;\"><br></td>");
      document.write("<td style=\"width: 470px; text-align: left;\"><br></td>");
      document.write("<td style=\"text-align: center; width: 110px;\"></td>");
      document.write("<td style=\"text-align: center; width: 110px;\"><input value=\" Order Online \" onclick=\"location.href='PayPalBooklist.html'\" type=\"button\"></td>");
   } else if ( pagetype == 'webpage' ) {
      document.write("<td style=\"width: 110px; text-align: center;\"><input value=\" Home Page \" onclick=\"location.href='SportandPublicityMainPage.html'\" type=\"button\"><br></td>");
      document.write("<td style=\"width: 470px; text-align: left;\"><br></td>");
      document.write("<td style=\"text-align: center; width: 110px;\"></td>");
      document.write("<td style=\"text-align: center; width: 110px;\"><input value=\" Order Online \" onclick=\"location.href='PayPalBooklist.html'\" type=\"button\"></td>");
   } else if ( pagetype == 'infopage' ) {
      document.write("<td style=\"width: 110px; text-align: center;\"><input value=\" Home Page \" onclick=\"location.href='SportandPublicityMainPage.html'\" type=\"button\"><br></td>");
      document.write("<td style=\"width: 470px; text-align: left;\"><br></td>");
      document.write("<td style=\"text-align: center; width: 110px;\"></td>");
      document.write("<td style=\"text-align: center; width: 110px;\"></td>");
  } else {
      document.write("<td style=\"width: 110px; text-align: center;\"><input value=\" Home Page \" onclick=\"location.href='SportandPublicityMainPage.html'\" type=\"button\"><br></td>");
      document.write("<td style=\"width: 470px; text-align: left;\"><input value=\" Order Online\" onclick=\"location.href='PayPalBooklist.html'\" type=\"button\"><br></td>");
      document.write("<td style=\"text-align: center; width: 110px;\"><input value=\" View cart \" onclick=\"location.href='managecart.html'\" type=\"button\"></td>");
      document.write("<td style=\"text-align: center; width: 110px;\"><input value=\" Checkout \" onclick=\"location.href='checkout.html'\" type=\"button\"></td>");
   }

 
        
   document.write("</tr></tbody></table>");

   
}

function ListButton(listtype){
     if ( listtype == 'misc' ) {
      document.write("<input value=\" Rarities Old & New \" onclick=\"location.href='PayPalBooklist-3.html'\" type=\"button\">");
   } else if ( listtype == 'foreign' ) {
      document.write("<input value=\" Foreign Books & Videos \" onclick=\"location.href='PayPalBooklist-2.html'\" type=\"button\">");
   } else {
      document.write("<input value=\" English Books & Videos \" onclick=\"location.href='PayPalBooklist.html'\" type=\"button\">");
   }
	
}
