function WriteHeader(yearval) {

  last = 2007;
  oldest = 2003;

  prevyear = yearval - 1;
  nextyear = yearval + 1;

  if (parent.content_en) {
    urlsuffix = "_en.htm";
    titleprefix = "Pictures";
    contentframe = "content_en";
  }    
  else {
    urlsuffix = ".htm";
    titleprefix = "Photos";
    contentframe = "content";
  }
  
  yearurl = yearval.toString() + urlsuffix;
  yeartitle = titleprefix + " " + yearval.toString();
  
  uptitle = titleprefix + "...";
  upurl = "../photos" + urlsuffix;
  
  if (yearval > oldest) {
    prevurl = prevyear.toString() + urlsuffix;
    prevtitle = titleprefix + " " + prevyear.toString();
  }
  else {
    prevtitle = "";
    prevurl = "";
  }
  
  if (yearval < last) {
    nexturl = nextyear.toString() + urlsuffix;
    nexttitle = titleprefix + " " + nextyear.toString();
  }
  else {
    nexttitle = "";
    nexturl = "";
  }
  
      
  str = "";
  str += "<html><head><link rel=stylesheet type='text/css' href='../style/main.css'>";
  str += "<style> table { vertical-align='super' } </style></head><body bgcolor='eaeaca'>";
  str += "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>";
  if (prevurl) {
    str += "<td align='left'><a href='";
    str += prevurl;
    str += "' target='"
    str += contentframe;
    str += "'><img src='../images/arrowprev.gif' border='0' width='16' height='15'></a></td>";
  }
  str += "<td align='left' width='15%' nowrap class=sheaderT>&nbsp";
  if (prevurl) {
    str += "<a href='";
    str += prevurl;
    str += "' target='";
    str += contentframe;
    str += "' class=lkHeader>[";
    str += prevtitle;
    str += "]</a>";
  }
  str += "&nbsp;&nbsp;</td><td align='right'><a href='";
  str += upurl;
  str += "' target='";
  str += contentframe;
  str += "'><img src='../images/arrowup.gif' border='0' width='15' height='18'></a></td>";
  str += "<td align='left' width='35%' nowrap class=sheaderT>&nbsp;<a href='";
  str += upurl;
  str += "' target='";
  str += contentframe;
  str += "' class=lkHeader>[";
  str += uptitle;
  str += "]</a>&nbsp;&nbsp;</td>";
  str += "<td align='center' class=headerT nowrap>-&nbsp;";
  str += yeartitle;
  str += "&nbsp;-</td><td align='right' width='50%' nowrap class=sheaderT>";
  if (nexturl) {
    str += "<a href='";
    str += nexturl;
    str += "' target='";
    str += contentframe;
    str += "' class=lkHeader>[";
    str += nexttitle;
    str += "]</a>";
  }
  str += "&nbsp;</td><td align='right'>";
  if (nexturl) {
    str += "<a href='";
    str += nexturl;
    str += "' target='";
    str += contentframe;
    str += "'><img src='../images/arrownext.gif' border='0' width='16' height='15'></a>";
  }
  else str += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
  str += "</td></tr></table></body></html>";
  parent.header.document.open("text/html","replace");
  parent.header.document.write(str);
  parent.header.document.close();
}
