function vSite8_mainHeader (sTitle, sImg, sCol)
{
   document.writeln ("<table class='h' width='100%' border='0' cellspacing='4px' cellpadding='3px' style='border-bottom:1px solid #DDDDDD'>");
   document.writeln ("  <tr height='20px'><td style='text-align: right;'>" + sTitle + " </td> <td width='25px' style='border:0px solid white; background:" + sCol + "' align='center' valign='center'><img src='" + sImg + "' /></td></tr>");
   document.writeln ("</table>");
}

function vSite8_subHeader (sTitle, sCol)
{
  document.writeln ("<p style='color:" + sCol +"; font-weight:bold; text-transform:uppercase;' >" + sTitle +"</p>");

}

function vSite8_midHeader (sTitle, sCol, sColB)
{
  document.writeln ("<p style='background-color:" + sCol +"; color:" + sColB + "; font-size:16px; font-weight:bold; text-transform:uppercase; text-align:center' >" + sTitle +"</p>");

}

function vSite8_addLink (sName, sLink)
{
   document.writeln ("<span onClick='vSite8_menuSelect (\"" + sLink + "\")'>" + sName + "</span>");
}

function vSite8_dateTime ()
{
   document.writeln ((new Date()).toString().substring(0,10) + "&nbsp;&nbsp;" + (new Date()).toString().substring(10,19));
}


function vSite8_menuStart ()
{
   document.writeln ("<table width='100%' cellspacing='1px' cellpadding='0px' style='border:0px solid #483734; font-size:10px'>");
}

function vSite8_menuEnd ()
{
   document.writeln ("</table>");
}

function vSite8_menuAdd
(
   sId, 
   sName,
   sUrl,
   sCol,
   sOrgCol,
   sImg
)
{

   sMid = "menu" + sId;

   document.writeln ("<tr><td>");
   document.writeln ("  <table id='" + sMid + "' width='100%' cellspacing='3px' cellpadding='0px' style='font-size:11px; font-weight:normal; color:black; background:"+ sOrgCol +"'>");
   document.writeln ("     <tr align='center' valign='center' height='20px'>");
   document.writeln ("        <td width='25px' height='25px' style='background:" + sCol + "; border:1px solid #CCCCCC'><img align='center' valign='center' width='15px' height='15px' src='" + sImg +"'/></td>");
   document.writeln ("        <td valign='center' style='text-align:left; padding:3px' onMouseOver='vSite8_menuHover(this,\"" + sCol + "\")' onMouseOut='vSite8_menuHover(this,\"" + sOrgCol +"\")' onClick='vSite8_menuSelect(\"" + sUrl + "\")'><span style='cursor:hand;'>" + sName+ "</span></td>");
   document.writeln ("     </tr>");
   document.writeln ("  </table>");
   document.writeln ("</td></tr>");

}

function vSite8_menuSelect 
(
   sUrl
)
{
   inner.location.href = sUrl;
}

function vSite8_menuHover (sId, sCol)
{
   sId.style.background = sCol;

   if (sId.style.border == "")
      sId.style.border = "1px solid #CCCCCC";
   else
      sId.style.border = "";
}

// Functions for the top ten list. 

function iSite8_listStart()
{
   document.writeln ("<table class='list' width='100%' cellspacing='0px' cellpadding='0px'>");
   return 0;
}

function iSite8_listAdd (iCount, sNum, sImg, sLabel )
{
   if (iCount != 1) 
      document.writeln ("<tr>");

   document.writeln ("  <td width='20px' style='font-size:17px; font-weight:bold;color:gray'>" + sNum + "</td>");
   document.writeln ("  <td width='50px' >");
   document.writeln ("    <img  src='" + sImg + "' />");
   document.writeln ("  </td>");
   document.writeln ("  <td valign='center'><p style='font-size:11px;'>" + sLabel + "</p></td>");

   if (iCount == 1)
   {
      document.writeln ("</tr>");
      iCount = 0;
   }
   else
   {
      iCount ++;
   }

   return (iCount);
}

function vSite8_listEnd()
{
   document.writeln ("</table>");
}

function vSite8_addSpacer()
{
   document.writeln ("<div style='margin-top:40px' />");

}
