//Updated to Spanish version 9-10-04 by William Milligan

//Find the relative path of the current page.

var myArray;
var myURL = location.href;
var myFile;
var myDir;
myArray = myURL.split("/");
myFile = myArray[myArray.length - 3] + "/" + myArray[myArray.length - 2] + "/" + myArray[myArray.length - 1];
myDir = myArray[myArray.length - 1];

if (myFile=="spanish/community/index.html" || myDir=='') {
document.write ("<font color='#ffffff'>&rsaquo; Comunidad</font><br>");
}else{
document.write ("<a href='index.html'>&rsaquo; Comunidad</a><br>");
}

if (myFile=="spanish/community/activities.html"){
document.write ("<font color='#ffffff'>&rsaquo; Actividades</font><br><DIV class='inset'><a href='comics.html'>&rsaquo; C&#243;micas</a><br></DIV>");
}else{
document.write ("<a href='activities.html'>&rsaquo; Actividades</a></font><br>");
}

if (myFile=="spanish/community/comics.html" || myFile=="spanish/community/comics_angustia.html" || myFile=="spanish/community/comics_angustia2.html" || myFile=="spanish/community/comics_angustia3.html" || myFile=="spanish/community/comics_que.html" || myFile=="spanish/community/comics_que2.html" || myFile=="spanish/community/comics_que3.html" || myFile=="spanish/community/comics_vacuna.html" || myFile=="spanish/community/comics_vacuna2.html" || myFile=="spanish/community/comics_vacuna3.html" || myFile=="spanish/community/comics_invento.html" || myFile=="spanish/community/comics_invento2.html" || myFile=="spanish/community/comics_invento3.html" || myFile=="spanish/community/comics_jamie.html"){
document.write ("<DIV class='inset'><font color='#ffffff'>&rsaquo; C&#243;micas</font><br></DIV>");
}else{
document.write ("");
}

if (myFile=="spanish/community/cab.html"){
document.write ("<font color='#ffffff'>&rsaquo; Mesa concejal</font><br>");
}else{
document.write ("<a href='cab.html'>&rsaquo; Mesa concejal</a><br>");
}

if (myFile=="spanish/community/bulletin.html"){
document.write ("<font color='#ffffff'>&rsaquo; Bolet&iacute;n del CAC</font><br>");
}else{
document.write ("<a href='bulletin.html'>&rsaquo; Bolet&iacute;n del CAC</a><br />");
}

if (myFile=="spanish/community/ethics.html"){
document.write ("<font color='#ffffff'>&rsaquo; &#201;tica</font><br>");
}else{
document.write ("<a href='ethics.html'>&rsaquo; &#201;tica</a><br>");
}
			
if (myFile=="spanish/community/involve.html"){
document.write ("<font color='#ffffff'>&rsaquo; Invol&#250;crese</font><br>");
}else{ document.write ("<a href='involve.html'>&rsaquo; Invol&#250;crese</a><br>");
}

if (myFile=="spanish/community/rights.html" || myFile=="spanish/community/rights_pr.html") {
document.write ("<font color='#ffffff'>&rsaquo; Derechos del<br><img src='http://www.hvtn.org/images/dot_clear.gif' width=9 height=1 border=0>participante</font><br>");
}
else {
document.write ("<a href='rights.html'>&rsaquo; Derechos del<br><img src='http://www.hvtn.org/images/dot_clear.gif' width=9 height=1 border=0>participante</a><br>");
}

if (myFile=="spanish/community/peru.html"){
document.write ("<font color='#ffffff'>&rsaquo;  HVTN en Per&uacute;</font><br>");
}else{
document.write ("<a href='peru.html'>&rsaquo; HVTN en Per&uacute;</a><br>");
}
 
if (myFile=="spanish/community/hvad.html" || myFile=="spanish/community/hvad.html#events"){
document.write ("<font color='#ffffff'>&rsaquo;  Día de la vacuna</font><br>");
}else{
document.write ("<a href='hvad.html'>&rsaquo; Día de la vacuna</a><br>");
}

if (myFile=="spanish/community/wad.html"){
document.write ("<font color='#ffffff'>&rsaquo;  Día mundial de SIDA</font><br>");
}else{
document.write ("<a href='wad.html'>&rsaquo; Día mundial de SIDA</a><br>");
}

if (myFile=="spanish/community/asiaticos.html"){
document.write ("<font color='#ffffff'>&rsaquo;  Asiatic&oacute;s y VIH</font><br>");
}else{
document.write ("<a href='asiaticos.html'>&rsaquo; Asiatic&oacute;s y VIH</a><br>");
}

if (myFile=="spanish/community/heterosexuals.html"){
document.write ("<font color='#ffffff'>&rsaquo;  Heterosexuals y VIH</font><br>");
}else{
document.write ("<a href='heterosexuals.html'>&rsaquo; Heterosexuals y VIH</a><br>");
}

if (myFile=="spanish/community/latino.html"){
document.write ("<font color='#ffffff'>&rsaquo;  Latinos y VIH</font><br>");
}else{
document.write ("<a href='latino.html'>&rsaquo; Latinos y VIH</a><br>");
}

if (myFile=="spanish/community/mujeres.html"){
document.write ("<font color='#ffffff'>&rsaquo;  Mujeres y VIH</font><br>");
}else{
document.write ("<a href='mujeres.html'>&rsaquo; Mujeres y VIH</a><br>");
}

if (myFile=="spanish/community/black.html"){
document.write ("<font color='#ffffff'>&rsaquo;  Los negros y VIH</font><br>");
}else{
document.write ("<a href='black.html'>&rsaquo; Los negros y VIH</a><br>");
}

if (myFile=="spanish/community/resources.html"){
document.write ("<font color='#ffffff'>&rsaquo; Recursos y enlaces</font><br>");
}else{
document.write("<a href='resources.html'>&rsaquo; Recursos y enlaces</a><br>");
}

if (myFile=="spanish/community/volunteers.html"){
document.write ("<font color='#ffffff'>&rsaquo; Voluntarios</font><br>");
}else{
document.write("<a href='volunteers.html'>&rsaquo; Voluntarios</a><br>");
}

if (myDir == '')
{
	document.write("<div style='margin-top:20px;'><img src='../../images/printer.gif' border='0' hspace=3><a class='print' href='javascript:popWin(\"index.html?print=yes\")'>Imprimir</a></div>");
}
else if(myDir=='activities.html' || myDir=='bulletin.html' || myDir=='volunteers.html' || myDir=='resources.html')
{
	//do nothing
}
else
{
	document.write("<div style='margin-top:20px;'><img src='../../images/printer.gif' border='0' hspace=3><a class='print' href='javascript:myPopWin(\"" + myDir + "?print=yes\")'>Imprimir</a></div>");
}