partnerURL = 'http://www.exec-se.de/'
basicURL = 'https://www.my-tools4you.de/'
//basicURL = 'file://D:/web/psc_en/'

fontTab="Arial"
leftTab = basicURL + "images/tableft.gif"
rightTab = basicURL + "images/tabright.gif"
leftTabActive = basicURL + "images/tablefta.gif"
rightTabActive = basicURL + "images/tabrighta.gif"
linkPage = "";

function header(currentPage, partnerPage) {
  // Logo and initial tables
  linkPage = partnerPage;
  document.writeln("<table border=0 cellpadding=0 cellspacing=0 width=\"100%\"><tr>");
  document.write("<td align=\"center\" valign=\"bottom\" rowspan=3 height=50><img src=\"" + basicURL + "images/exec.gif\" width=120 height=28>");
  // the next column has to span over all tabs + the one before and the one after
  cols = (pages.length * 3) + 2
  document.writeln("<td colspan=" + cols + " height=25></td></tr>");
  // paint the 3D effect for the top of the tabs (that's an own row above the tabs)
    // one column in front
    document.writeln("<tr><td height=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td>");
    // then 3 columns for each tab, the second of each is white
    for(i = 0; i < pages.length; i++) {
      for(j = 0; j < 3; j++) {
        document.write("<td");
        if(j==1) {document.write(" bgcolor=#FFFFFF");}
        document.writeln(" height=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td>");
      }
    }
    // finally one column behind the tabs, the width is utopia...
    document.writeln("<td width=2000 rowspan=2></td></tr>");

  // now paint the tabs themselfs, again one column in front but none behind
  document.writeln("<tr><td width=20></td>");
  for(i = 0; i < pages.length; i++) {
    document.write("<td><img src=");
    if(pages[i].title==currentPage) {
      document.write(leftTabActive);
      color = "#C0C0C0";
    } else {
      document.write(leftTab);
      color = "#808080";
    }
    document.writeln(" width=9 height=35></td>");
    document.write("<td width=500 align = center bgcolor=" + color + "><font face=" + fontTab + " size=1>");
    if(pages[i].title!=currentPage) {document.write("<a href=\"" + basicURL + pages[i].src + "\">");}
    document.write(pages[i].title);
    if(pages[i].title!=currentPage) {document.write("</a>");}
    document.write("<td><img src=");
    if(pages[i].title==currentPage) {
      document.write(rightTabActive);
    } else {
      document.write(rightTab);
    }
    document.writeln(" width=9 height=35></td>");
  }
  document.writeln("</tr>");

  // finally paint the 3D effect for the bottom of the tabs (or the top of the page...)
  // that are 2 cols in front and one behind, the active tab will get another color
  document.write("<tr><td bgcolor=#FFFFFF height=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td>");
  document.writeln("<td bgcolor=#FFFFFF height=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td>");
  for(i = 0; i < pages.length; i++) {
    for(j = 0; j < 3; j++) {
      if(pages[i].title==currentPage) {
        color = "#C0C0C0";
      } else {
        color = "#FFFFFF";
      }
      document.writeln("<td bgcolor=" + color + " height=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td>");
    }
  }
  document.writeln("<td bgcolor=#FFFFFF height=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td>");
  document.writeln("<td bgcolor=#FFFFFF height=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td></tr></table>");

  // ...and the 3D effect for the sides and bottom of the page
  document.write("<table border=0 cellpadding=0 cellspacing=0 width=\"100%\"><tr>");
  document.writeln("<td bgcolor=\"#FFFFFF\" width=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td><td>");
  // ...the text of the page will be written now...
  // be sure to call footer() after all
}
function german() {
  document.write("Auf Deutsch <a href=\"");
  document.write(partnerURL);
  document.write(linkPage);
  document.writeln(".htm\"><img alt=\"\" src=\"" + basicURL + "images/de_s.gif\" border=1 height=40 width=60></a>.");
}
function footer(flag) {
  document.writeln("<font face=\"Arial\"><div align=\"right\">");
  if (flag == "True")
		german()
  document.writeln("<a href=\"http://developer.berlios.de\" title=\"BerliOS Developer\"> <img src=\"http://developer.berlios.de/bslogo.php?group_id=5440\" width=\"124px\" height=\"32px\" border=\"0\" alt=\"BerliOS Developer Logo\"></a>");
  document.writeln("<a href=\"http://www.nvu.com\"><img src=\"http://www.nvu.com/made-with-Nvu-t.png\" alt=\"Document made with Nvu\" border=\"0\"></a>");
  //document.write("<a href=\"http://my-tools4you.de/tinc?key=B0cXfSj4&channel=93484\">");
  //document.write("<img border=\"0\" src=\"/spicons/tinc/chat/images/i_chaticon4.gif\"></img></a>");
  document.writeln("</div>")
  document.writeln("</td><td bgcolor=\"#393939\" width=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td></tr>");
  document.writeln("<tr><td bgcolor=\"#393939\" height=1 width=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td>");
  document.writeln("<td bgcolor=\"#393939\" height=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td>");
  document.writeln("<td bgcolor=\"#393939\" height=1 width=1><img src=\"" + basicURL + "images/pixel.gif\" width=1 height=1></td></tr></table>");
}


