function getName()
{
   fullName = location.href;
   fileName = fullName.substring(fullName.lastIndexOf("/") + 1);
   return fileName.substring(0, fileName.lastIndexOf("."));
}
var pageName = getName();
function drawTab(label, width)
{
    if (label == pageName) {
        document.write("<td class='tabOn' valign='center' height='20' width='" + width + "' align='center'>" + label + "</td>");
    }
    else {
        document.write("<td class='tabOff' valign='center' height='20' width='" + width + "' align='center'><span class='tabLink'><a href='" + label + ".html'>" + label + "</a></span></td>");
    }
}
var width = screen.width;
if (width == 0) {
    width = 800 - 190;
}
else {
    width = width - 190;
}

function lastUpdated()
{
    var timestamp = new Date(Date.parse(document.lastModified));
    var day = timestamp.getDate();
    var months = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
    var month = months[timestamp.getMonth()];
    var year = timestamp.getYear();
    if (year < 1900) {
        year = year + 1900;
    }
    var hours = timestamp.getHours();
    var minutes = timestamp.getMinutes();
    if (minutes < 10) {
        minutes = "0" + minutes;
    }
    var seconds = timestamp.getSeconds();
    if (seconds < 10) {
        seconds = "0" + seconds;
    }
    return day + "-" + month + "-" + year + " " + hours + ":" + minutes + ":" + seconds;
}

var tree = '';
var browser;
if (navigator.appName == "Netscape") {
    browser = "NS";
}
else if (navigator.appName == "Microsoft Internet Explorer") {
    browser = "IE";
}
else {
    browser = "UNKNOWN";
}

document.write("<body bgcolor='EEEEEE' scroll='auto' leftMargin='3' topMargin='5' rightMargin='0'>");
document.write("<style type='text/css'>");
document.write("<!--");
document.write("body               { background: #EEEEEE; }");
document.write(".box               { border-color: #000000; border-width: 0px 1px 1px 1px; border-style: solid; background-color: #FFFFFF; line-height: 18px; }");
document.write(".folder            { font-weight: bold;   color: #000080; font-family: Verdana;     font-size: 8pt; }");
document.write(".count             { font-weight: bold;   color: #008000; font-family: Verdana;     font-size: 8pt; }");
document.write(".spacer            { font-weight: bold;   color: #800000; font-family: Verdana;     font-size: 8pt; border-color: #000000; border-width: 0px 0px 1px 1px; border-style: solid; padding: 0; line-height: 160%; background-color: #EEEEEE; }");
document.write(".hourly            { font-weight: bold;   color: #AA0000; font-family: Georgia;     font-size: 10pt; background-color: #FFFFFF; }");
document.write(".updated           { font-weight: bold;   color: #800000; font-family: Verdana;     font-size: 8pt; }");
document.write(".copyright         { font-weight: normal; color: #800000; font-family: Courier New; font-size: 9pt; }");
document.write("A:link             { font-weight: normal; color: #000000; font-family: Verdana;     font-size: 8pt; text-decoration: none; }");
document.write("A:visited          { font-weight: normal; color: #800000; font-family: Verdana;     font-size: 8pt; text-decoration: none; font-style: normal; }");
document.write("A:active           { font-weight: normal; color: #000000; font-family: Verdana;     font-size: 8pt; text-decoration: none; }");
document.write("A:hover            { font-weight: normal; color: #000000; font-family: Verdana;     font-size: 8pt; text-decoration: none;  background-color: #FFFF88; }");
document.write(".folder            { font-weight: bold;   color: #000080; font-family: Verdana;     font-size: 8pt;  background-color: #FFFFFF; display:block; float:left; }");
document.write(".folder A:hover    { font-weight: bold;   color: #000000; font-family: Verdana;     font-size: 8pt;  background-color: #FFFFFF; display:block; float:left; }");
document.write(".toggle            { font-weight: bold;   color: #000080; font-family: Courier New; font-size: 10pt; background-color: #FFFFFF; }");
document.write(".toggle A:hover    { font-weight: bold;   color: #000000; font-family: Courier New; font-size: 10pt; background-color: #FFFFFF; }");
document.write(".tabOn             { font-weight: bold;   color: #000000; font-family: Verdana;     font-size: 8pt;  background: #FFFFFF; border-color: #000000; border-width: 1px 0px 0px 1px; border-style: solid; padding: 1; line-height: 160%; }");
document.write(".tabOff            { font-weight: bold;   color: #000000; font-family: Verdana;     font-size: 8pt;  background: url(./images/tab.jpg); border-color: #000000; border-width: 1px 0px 1px 1px; border-style: solid; padding: 1; line-height: 160%; }");
document.write(".tabLink A:link    { font-weight: bold;   color: #000000; font-family: Verdana;     font-size: 8pt; }");
document.write(".tabLink A:visited { font-weight: bold;   color: #000000; font-family: Verdana;     font-size: 8pt; font-style: normal; }");
document.write(".tabLink A:active  { font-weight: bold;   color: #000000; font-family: Verdana;     font-size: 8pt; }");
document.write(".tabLink A:hover   { font-weight: bold;   color: #008000; font-family: Verdana;     font-size: 8pt; background: url(./images/tab.jpg); }");
//document.write("img                { display:block; float:left; }");
document.write("img                { border: 0; hspace: 0; vspace: 0; display: block; float: left; margin: 0; padding: 0; }");
document.write("ul, li             { margin:0; padding:0; list-style:none; clear:left; line-height:18px; }");
document.write(".nothing           { font-weight: normal; color: #FFFFFF; font-family: Verdana;     font-size: 8pt; line-height: 8px; }");
document.write("-->");
document.write("</style>");
document.write("<div id='TabsDiv' style='position:absolute; top:5; left:166;'>");
document.write("<table border='0' align='left' width='" + width + "' cellpadding='0' cellspacing='0' bgcolor='FFFFFF'>");
document.write("<tr>");
drawTab('Headlines', 100);
drawTab('TechNews', 90);
drawTab('Technology', 110);
drawTab('Java', 70);
drawTab('Grouplogs', 100);
drawTab('Weblogs', 90);
drawTab('Mobile', 80);
drawTab('Podcasts', 90);
//drawTab('Bookmarks', 110);
document.write("<td class='spacer' align='right' valign='bottom'>");
document.write('&nbsp');
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
