
function verifyDomain()
{
  addLinks = false;
  url = document.URL;
  
  var domain = url.indexOf('http://discuss.');
  if(domain != -1)
    isDiscuss = true;
  else
    isDiscuss = false;
  
  return isDiscuss;
}


function getDiscussionLink()
{
  url = document.URL;
  var startName = url.lastIndexOf("/");
  // the entire file name ex: "something.htm"
  var tempFileName = url.substring(startName+1);
  // the number of chars in the file name without the .htm
  //var temp = tempFileName.indexOf(".htm");
  //var finalFileName = tempFileName.substring(0,temp);
  //return finalFileName;
  return tempFileName;
}



document.write("<TABLE WIDTH=\"122\" CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\" BGCOLOR=\"#CCCC99\" VALIGN=\"TOP\">");
document.write("<TR BGCOLOR=\"#999900\" VALIGN=\"TOP\">");
document.write("<TD VALIGN=\"TOP\">");

document.write("<TABLE WIDTH=\"122\" CELLPADDING=\"2\" CELLSPACING=\"2\" BORDER=\"0\"> ");
document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/schedule.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Weekly Schedule </B></FONT></A></TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/delphi.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Message Boards</B></FONT></A></TD>");
document.write("</TR> ");
document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/transcript.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Transcripts</B></FONT></A></TD>");
document.write("</TR>");
document.write("<TR><TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/video.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Video Archive</B></FONT></A></TD>");
document.write("</TR>");



// START DISCUSSION SPECIFIC LINKS

isDiscussServer = verifyDomain();

// THE 3 DISCUSSION SPECIFIC URL'S
var getNewResponses = "";
var autoUpdatePage = "";
var submitQuestion = "";

// IF THE DISCUSSION IS STILL ON DISCUSS.WASHINGTONPOST.COM, THEN PRINT THE
// DISCUSSION SPECIFIC LINKS, OTHERWISE SKIP THESE LINKS
if(isDiscussServer==true)
{
  thisPage = getDiscussionLink();
  
  getNewResponses = "http://discuss.washingtonpost.com/wp-srv/zforum/02/"+thisPage;
  autoUpdatePage = "http://discuss.washingtonpost.com/zforum/02/auto_"+thisPage;
  submitQuestion = "http://discuss.washingtonpost.com/zforum/02/submit_"+thisPage;

  if (getNewResponses!="" && autoUpdatePage!="" && submitQuestion!="")
  {
   	   	
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"#999900\">");	
  document.write("<FONT SIZE=\"1\" FACE=\"arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>");
  document.write("<!--The following is tag for link to static page-->");
  //document.write("<!--FREEZEFILE-->");
  document.write("<a href=\""+getNewResponses+"\">Get New Responses</a>");
  document.write("<P>");
  document.write("<!--The following is tag for link to meta-refresh page-->");
  //document.write("<!--FILE-->");
  document.write("<a href=\""+autoUpdatePage+"\">Automatically Update Page</a>");
  document.write("<P>");
  document.write("<!--The following is tag for link to query page-->");
  //document.write("<!--SUBMITFILE-->");
  document.write("<a href=\""+submitQuestion+"\">Submit Question </a>");
  document.write("<P>");
  document.write("</B></font>");
  document.write("</TD>");
  document.write("</TR>");
  } 
} // END isDiscussServer==true

// END DISCUSSION SPECIFIC LINKS
		
document.write("<TR>");
document.write("<TD BGCOLOR=\"#999900\">");
document.write("<FONT SIZE=\"2\" FACE=\"arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B><I>Discussion Areas</I></B></FONT>");
document.write("</TD>");
document.write("</TR>");
document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/politics.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Politics</B></FONT></A></TD>");
document.write("</TR>"); 
document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/nation.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Nation</B></FONT></A></TD>");
document.write("</TR> ");
document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/world.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>World</B></FONT></A></TD>");
document.write("</TR> ");



document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/metro.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Metro</B></FONT></A></TD>");
document.write("</TR> ");
document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/biztech.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Business</B></FONT></A></TD>");
document.write("</TR> ");
document.write("<TR>");
document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/technology/transcripts/2002.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Technology</B></FONT></A></TD>");
document.write("</TR> ");

  document.write("<TR>");
  document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/sports.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Sports</B></FONT></A></TD>");
  document.write("</TR> ");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/style.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Style</B></FONT></A></TD>");
  document.write("</TR> ");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"#000000\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/entertainment.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Entertainment</B></FONT></A></TD>");
  document.write("</TR> ");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/travel.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Travel</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/health/liveonline/healtharchive.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Health</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/homeandgarden.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Home & Garden</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/magazine.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Post Magazine</B></FONT></A></TD>");
  document.write("</TR>");

  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/food.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Food & Wine</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/books.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Books & Reading</B></FONT></A></TD>");
  document.write("</TR>");

  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/viewpoint.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Viewpoint</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("<TR><TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/Jobs.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Jobs</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("</TABLE>");
  document.write("</TD>");
  document.write("</TR>");
  document.write("</TABLE>");
  
  
  
  document.write("<P>");
  
  document.write("<TABLE WIDTH=\"122\" CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\" BGCOLOR=\"#CCCC99\" VALIGN=\"TOP\">");
  document.write("<TR BGCOLOR=\"#999900\" VALIGN=\"TOP\">");
  document.write("<TD VALIGN=\"TOP\">");
  
  document.write("<TABLE WIDTH=\"122\" CELLPADDING=\"2\" CELLSPACING=\"2\" BORDER=\"0\"> ");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/liveonline/faq.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>About Live Online</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("<TR><TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/contents/aboutsite.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>About The Site</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-srv/contents/feedback.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>Contact Us</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("<TR>");
  document.write("<TD BGCOLOR=\"BLACK\">&nbsp;&nbsp;<A HREF=\"http://www.washingtonpost.com/wp-adv/mediakit/front.htm\"><FONT SIZE=\"-2\" FACE=\"verdana, ms sans serif, arial\" CLASS=\"nodec\" CLASS=\"nodec\" COLOR=\"#FFFFCC\"><B>For Advertisers</B></FONT></A></TD>");
  document.write("</TR>");
  document.write("</TABLE>");
  document.write("</TD>");
  document.write("</TR>");
  document.write("</TABLE>");



