// Base doc du site
var bright_base="/bright-eu/";

tblAddress=new Array (
  "index.htm",
  "publication/work/homel.htm",
  "publication/work/over/over.pdf",
  "publication/work/partenai/partenai.pdf",
  "publication/work/Newsletters/index.htm",
  "publication/work/publications/index.htm",
  "publication/work/conf/index.htm",
  "publication/work/info/index.htm",
  "publication/work/cale/events.htm",
  "publication/work/links/links.htm",
  "publication/private/homel.htm",
  "publication/private/european/homel.htm",
  "publication/private/european/contra/index.htm",
  "publication/private/european/report/index.htm",
  "publication/private/reports/homel.htm",
  "publication/private/reports/working/index.htm",
  "publication/private/reports/agree/index.htm",
  "publication/private/reports/documen/index.htm",
  "publication/private/reports/templates/index.htm",
  "publication/private/reports/meet/homel.htm",
  "publication/private/reports/events/index.htm",
  "publication/private/reports/progress/homel.htm",
  "publication/private/reports/progress/schedule/index.htm",
  "publication/private/reports/progress/glob/index.htm",
  "publication/private/reports/progress/wp/homel.htm",
  "publication/private/reports/progress/gender/index.htm",
  "publication/private/reports/progress/exploitation/index.htm",
  "publication/private/reports/betwe/index.htm",
  "publication/private/reports/prepar/index.htm",	
  "publication/private/reports/news/news.htm",
  "index.htm",
  "/cgi-bin/pcepub.tcl?theme=bright-eu"
);

tblLabel= new Array (
  "Home",
  "&nbsp;<b>Content</b>",
  "&nbsp;&nbsp;&nbsp;Project Overview",
  "&nbsp;&nbsp;&nbsp;Participants",
  "&nbsp;&nbsp;&nbsp;Newsletters",
  "&nbsp;&nbsp;&nbsp;Publications",
  "&nbsp;&nbsp;&nbsp;Presentations",
  "&nbsp;&nbsp;&nbsp;Teaching",
  "&nbsp;&nbsp;&nbsp;Events",
  "&nbsp;&nbsp;&nbsp;Links",
  "&nbsp;<b>Private area</b>",
  "&nbsp;&nbsp;<b>EC AREA</b>",
  "&nbsp;&nbsp;&nbsp;&nbsp;Contract",
  "&nbsp;&nbsp;&nbsp;&nbsp;Deliverables",
  "&nbsp;&nbsp;<b>PARTNER AREA</b>",
  "&nbsp;&nbsp;&nbsp;&nbsp;Contacts",
  "&nbsp;&nbsp;&nbsp;&nbsp;Consortium Agreement",
  "&nbsp;&nbsp;&nbsp;&nbsp;Reference documents",
  "&nbsp;&nbsp;&nbsp;&nbsp;All Templates",
  "&nbsp;&nbsp;&nbsp;&nbsp;Meetings",
  "&nbsp;&nbsp;&nbsp;&nbsp;Events",
  "&nbsp;&nbsp;&nbsp;&nbsp;Project progress",
  "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Schedule",
  "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Progress of work",
  "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-Progress by WP",
  "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-Gender monitoring",
  "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Exploitation",
  "&nbsp;&nbsp;&nbsp;&nbsp;Exchanges",
  "&nbsp;&nbsp;&nbsp;&nbsp;Draft reports",
  "&nbsp;&nbsp;&nbsp;&nbsp;NEW",
  "Home",
  "Publish"
);
 
function goTo (numAdresseDansTableau) {
  var local_base=bright_base;
  var line=tblAddress[numAdresseDansTableau];
  if (line.charAt(0) == '/') local_base="";
  var loc=local_base + line;
  top.document.location=loc;
}

// ligne blanche separateur dans table
function spacer() 
{
   var txtspacer='<TD HEIGHT="1" COLSPAN="2"><IMG SRC="%27%20%2B%20bright_base%20%20%2B%20%27images/spacerblanc.jpg" ' 
                 + 'WIDTH="155" HEIGHT="1"></TD>' ;
  return txtspacer
}

// encapsule la chaine p
function tr(p)
{
   var txttr='<TR>' + p + '</TR>' ;
  return txttr;
}

// ligne de label avec ancre=tblAddress[id] et texte=tblLabel[id]
function label(id)
{
    var txtlabel= '<TD WIDTH="1" VALIGN="TOP" ALIGN="LEFT" '
             + 'BACKGROUND="%27%20%2B%20bright_base%20%2B%20%27images/spacerblanc.jpg">'
             + '<IMG SRC="%27%20%2B%20bright_base%20%2B%20%27images/spacerblanc.jpg" WIDTH="1" HEIGHT="1">'
             + '</TD>'
             + '<TD CLASS="texte10blanc" WIDTH="100%" ALIGN="LEFT">&nbsp;&nbsp;<A HREF="'
             + 'javascript:goTo(' + id.toString() + ')" CLASS="texte12blanc">' + tblLabel[id] + '</A></TD>' ;
   return txtlabel;
}
function table()
{
   var curloc=top.document.location.toString();
//   document.write(curloc);
   var priv = curloc.search(/\/private\//);
   last=tblAddress.length;
   first=10;
   if (priv == -1) 
   {
    	/*document.write("Emplacement public");*/ 
		first=0;
		last=11;
	}
   var html = '<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">' + tr(spacer()) ;
   for (i=first;i<last;i++)
   {
       html += tr(label(i));
       html += tr(spacer()) ;
   }
   html += '</TABLE>';
   return html;
     
}


function navigationLeft()
{
   var html = table();
   document.write(html);
}

