var verdeOficial='#4f762d';
var blanco='#FFFFFF';
var grisOscuro='#222222';
var grisClaro='#909090';
bNombre = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ( (bNombre == "Netscape" && bVer >= 3 ) ||
    (bNombre == "Microsoft Internet Explorer" && bVer >= 4))
     br = "n3";
else br = "n2";

function imgAct(imgNombre) {
  if (br == "n3")
    document.images[imgNombre].src = eval( imgNombre + "on.src" );
}

function imgInact(imgNombre) {
  if (br == "n3")
    document.images[imgNombre].src = eval(imgNombre + "off.src");
}

if (br == "n3") {
bt_acercaoff = new Image(124,24); bt_acercaoff.src = ruta+'../gifs/bt_acerca.gif';
bt_componentesoff = new Image(124,24); bt_componentesoff.src = ruta+'../gifs/bt_componentes.gif';
bt_materialesoff = new Image(114,24); bt_materialesoff.src = ruta+'../gifs/bt_materiales.gif';
bt_seguimientooff = new Image(150,24); bt_seguimientooff.src = ruta+'../gifs/bt_seguimiento.gif';
bt_estudiosoff = new Image(130,24); bt_estudiosoff.src = ruta+'../gifs/bt_estudios.gif';
bt_linksoff = new Image(124,24); bt_linksoff.src = ruta+'../gifs/bt_links.gif';
bt_contactenosoff = new Image(84,24); bt_contactenosoff.src = ruta+'../gifs/bt_contactenos.gif';

bt_acercaon = new Image(124,24); bt_acercaon.src = ruta+'../gifs/bt_acercaROLL.gif';
bt_componenteson = new Image(124,24); bt_componenteson.src = ruta+'../gifs/bt_componentesROLL.gif';
bt_materialeson = new Image(114,24); bt_materialeson.src = ruta+'../gifs/bt_materialesROLL.gif';
bt_seguimientoon = new Image(150,24); bt_seguimientoon.src = ruta+'../gifs/bt_seguimientoROLL.gif';
bt_estudioson = new Image(130,24); bt_estudioson.src = ruta+'../gifs/bt_estudiosROLL.gif';
bt_linkson = new Image(124,24); bt_linkson.src = ruta+'../gifs/bt_linksROLL.gif';
bt_contactenoson = new Image(84,24); bt_contactenoson.src = ruta+'../gifs/bt_contactenosROLL.gif';
}
//vars
var table = "";
var itemArray = new Array();
var currentImage = "";
//vars used in hiermenu functions
NS4 = (document.layers);
IE4 = (document.all);
ver4 = (NS4 || IE4);
IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
IE55 = (IE5 && navigator.appVersion.indexOf("5.5")!=-1);
isMac = (navigator.appVersion.indexOf("Mac") != -1);
IE45  = (IE4 && isMac && navigator.appVersion.indexOf("4.5")!=-1);
isMenu = ver4;
			
//create event handlers for netscape
if(document.layers) window.captureEvents(Event.MOUSEMOVE);

//capture events for netscape
if(document.layers) window.onmousemove = nsMouseHandler;

function manejador1(target) {
if(document.all) {
		if(window.event.y < 0) imgInact(target);
} else {if(document.layers) {
		//if(e.pageX < 0) imgInact(target);
		}
	}
}
//Internet Explorer: tracks position of mouse to hide dropdown menus
function ieMouseHandler() { 
	if(document.all) {
		if(window.event.x > 125) {//124+1
			imgInact('bt_acerca');
		}
		if(window.event.x  <= 125 || window.event.x > 250) {//124+1+124+1
			imgInact('bt_componentes');
		}
		if(window.event.x  <= 250 || window.event.x > 365) {//124+1+124+1+114+1
			imgInact('bt_materiales');
		}
		if(window.event.x  <= 365 || window.event.x > 516) {//124+1+124+1+114+1+150+1
			imgInact('bt_seguimiento');
		}
		if(window.event.x  <= 516 || window.event.x > 647) {//124+1+124+1+114+1+150+1+130+1
			imgInact('bt_estudios');
		}
		if(window.event.x  <= 647 || window.event.x > 772) {//124+1+124+1+114+1+150+1+130+1+124+1
			imgInact('bt_links');
		}		
	}
}
//Netscape: tracks position of mouse to hide dropdown menus
function nsMouseHandler(e) { 
	if(document.layers) {
		if(e.pageX > 125) {
			imgInact('bt_acerca');
		}
		if(e.pageX  <= 125 || e.pageX > 250) {
			imgInact('bt_componentes');
		}
		if(e.pageX <= 250 || e.pageX > 365) {
			imgInact('bt_materiales');
		}
		if(e.pageX  <= 365 || e.pageX > 516) {
			imgInact('bt_seguimiento');
		}
		if(e.pageX  <= 516 || e.pageX > 647) {
			imgInact('bt_estudios');
		}
		if(e.pageX  <= 647 || e.pageX > 772) {
			imgInact('bt_links');
		}	
	}
}
//parameters to control appearance of hiermenus
HM_MenuWidth = 105;
HM_ChildOverlap = 20;
HM_ChildOffset = 10;
HM_ChildPerCentOver = null;
HM_TopSecondsVisible = .5;
HM_FontFamily = "Verdana";
HM_FontSize = 8;
HM_FontBold = 0;
HM_FontItalic = 0;
HM_FontColor = "#666666";
HM_FontColorOver = "#330066";
HM_BGColor = "#ffffff";
HM_BGColorOver = "cccccc";
HM_BorderWidth = 1;
HM_BorderColor = verdeOficial;//"#ffcc00";
HM_BorderStyle = "solid";
HM_ItemPadding = 3;
HM_SeparatorSize = 0;
HM_SeparatorColor = "#000000";
HM_ImageSrc = "";
HM_ImageSize = 10;
HM_ImageHorizSpace = 0;
HM_ImageVertSpace = 0;
HM_KeepHilite = 1; 
HM_ClickStart = 0;
HM_ClickKill = 0;
HM_StatusDisplayBuild =0;
HM_StatusDisplayLink =1; 
HM_UponDisplay = null;
HM_UponHide = null;
//browser detection - used to pull in browser version js file
brows = NS4 ? "NS4" : isMac ? IE5 ? "IE5M" : IE45 ? "IE45M" : "IE40M" : "IE4";
ver = "scripts\/hierMenus4-33"+brows+".js";

function trim(str) {
  while (str.charAt(0) == ' ') str = str.substring(1);
  while (str.charAt(str.length - 1) == ' ') str = str.substring(0, str.length - 1);
  return str;
}

anchoVentana=(screen.availWidth)-754-22;if (anchoVentana<0) anchoVentana=0;
function cabecera() {
document.writeln('<a name=tope></a><table border=0 cellpadding=0 width='+(754+anchoVentana)+' cellspacing=0 bgcolor=white>');
document.writeln('<tr>');
document.writeln('<td width=10><img height=10 width=10 src='+ruta+'../gifs\/parche.gif border=0><\/a><\/td>');
document.writeln('<\/tr>');
document.writeln('<tr>');
document.writeln('<td width=10><img height=10 width=10 src='+ruta+'../gifs\/parche.gif border=0><\/a><\/td>');
document.writeln('<td width=100><a href=http://www.usaid.gov><img src='+ruta+'../gifs\/UsaidLogo.jpg border=0><\/a><\/td>');
document.writeln('<td width=100><img height=70 width=140 src='+ruta+'../gifs\/parche.gif border=0><\/a><\/td>');
document.writeln('<td width=95><a href="'+ruta+'internas/prodes.html"><img height=70 width=265 src='+ruta+'../gifs\/logoprodes.jpg border=0><\/a><\/td>');
if (anchoVentana>0) document.writeln('<td width='+anchoVentana+' bgcolor='+blanco+'><img height=70 width=1 src='+ruta+'../gifs\/parche.gif border=0><\/td>');
document.writeln('<\/tr>');
document.writeln('<tr>');
document.writeln('<td width=10><img height=10 width=10 src='+ruta+'../gifs\/parche.gif border=0><\/a><\/td>');
document.writeln('<\/tr>');
document.writeln('<\/table>');

document.writeln('<table border=0 cellpadding=0 cellspacing=0 height=24 width='+(754+anchoVentana)+' bgcolor=#000000>');//grisOscuro
document.writeln('<tr height=1><td height=1 bgcolor='+verdeOficial+' colspan=20><img height=1 width=1 src='+ruta+'../gifs\/parche.gif></td></tr>');
document.writeln('<tr height=24>');
document.writeln('<td height=24 width=124><a href="'+ruta+'internas/2.html" onmouseover="popUp(\'elMenu1\',event,\'bt_acerca\');" onmouseout="popDown(\'elMenu1\');manejador1(\'bt_acerca\');"><img height=24 width=124 src='+bt_acercaoff.src+' border=0 alt="ACERCA DE PRODES" name=bt_acerca><\/a><\/td>');
document.writeln('<td height=24 width=1 bgcolor='+verdeOficial+'><img height=9 width=1 src='+ruta+'gifs\/parche.gif><\/td>');
document.writeln('<td height=24 width=124><a href="'+ruta+'internas/7.html" onmouseover="popUp(\'elMenu2\',event,\'bt_componentes\');" onmouseout="popDown(\'elMenu2\');"><img height=24 width=124 src='+bt_componentesoff.src+' border=0 alt="COMPONENTES DEL PROGRAMA" name=bt_componentes><\/a><\/td>');
document.writeln('<td height=24 width=1 bgcolor='+verdeOficial+'><img height=9 width=1 src='+ruta+'gifs\/parche.gif><\/td>');
document.writeln('<td height=24 width=114><a href="'+ruta+'internas/matcap_pri.html" onmouseover="imgAct(\'bt_materiales\');" onmouseout="imgInact(\'bt_materiales\');"><img height=24 width=114 src='+bt_materialesoff.src+' border=0 alt="MATERIALES DE CAPACITACION" name=bt_materiales><\/a><\/td>');
document.writeln('<td height=24 width=1 bgcolor='+verdeOficial+'><img height=9 width=1 src='+ruta+'gifs\/parche.gif><\/td>');
document.writeln('<td height=24 width=150><a href="'+ruta+'internas/43.html" onmouseover="popUp(\'elMenu4\',event,\'bt_seguimiento\');" onmouseout="popDown(\'elMenu4\');"><img height=24 width=150 src='+bt_seguimientooff.src+' border=0 alt="SEGUIMIENTO DEL PROCESO DE DESCENTRALIZACIÓN" name=bt_seguimiento><\/a><\/td>');
document.writeln('<td height=24 width=1 bgcolor='+verdeOficial+'><img height=9 width=1 src='+ruta+'gifs\/parche.gif><\/td>');
document.writeln('<td height=24 width=130><a href="'+ruta+'internas/44.html" onmouseover="popUp(\'elMenu5\',event,\'bt_estudios\');" onmouseout="popDown(\'elMenu5\');"><img height=24 width=130 src='+bt_estudiosoff.src+' border=0 alt="ESTUDIOS Y APORTES AL DEBATE" name=bt_estudios><\/a><\/td>');
document.writeln('<td height=24 width=1 bgcolor='+verdeOficial+'><img height=9 width=1 src='+ruta+'gifs\/parche.gif><\/td>');
document.writeln('<td height=24 width=124><a href="'+ruta+'internas/19.html" onmouseover="popUp(\'elMenu6\',event,\'bt_links\');" onmouseout="popDown(\'elMenu6\');"><img height=24 width=124 src='+bt_linksoff.src+' border=0 alt="LINKS DE INTER&Eacute;S" name=bt_links><\/a><\/td>');
document.writeln('<td height=24 width=1 bgcolor='+verdeOficial+'><img height=9 width=1 src='+ruta+'gifs\/parche.gif><\/td>');
document.writeln('<td height=24>          <a href="'+ruta+'internas/20.php" onmouseover="imgAct(\'bt_contactenos\');" onmouseout="imgInact(\'bt_contactenos\');"><img height=24 width=84 src='+bt_contactenosoff.src+' border=0 alt="CONT&Aacute;CTENOS" name=bt_contactenos><\/a><\/td>');
document.writeln('<\/tr>');

document.writeln('<tr height=1><td height=1 bgcolor='+verdeOficial+' colspan=20><img height=1 width=1 src='+ruta+'../gifs\/parche.gif></td></tr>');
document.writeln('<\/table>');
}

function piedepagina() {
document.writeln('<table border=0 cellpadding=0 cellspacing=0 width='+(754+anchoVentana)+' height=185>');
document.writeln('<tr height=51 bgcolor=white>');
document.writeln('<td height=51 class=volveralinicio><br><img height=24 width=33 src='+ruta+'../gifs\/parche.gif border=0><a href=#tope>Subir<\/a><\/td>');
document.writeln('<td height=51 class=volveralinicio>&nbsp;<\/td>');
document.write('<td height=51 class=volveralinicio align=right><br>');
if (ruta!='') document.write('<a href='+ruta+'internas/prodes.html>P&aacute;gina principal<\/a>');
document.writeln('<img height=1 width=33 src='+ruta+'../gifs\/parche.gif border=0><\/td>');
document.writeln('<\/tr>');
document.writeln('<tr height=1 bgcolor=#595959>');
document.writeln('<td height=1 colspan=3><img height=1 width=1 src='+ruta+'../gifs\/parche.gif><\/td>');
document.writeln('<\/tr>');
document.writeln('<tr align=center height=24 bgcolor=white>');
document.write('<td height=24 colspan=3 class=enlacechicogris>');
document.write('<a href="'+ruta+'internas/2.html">Acerca de PRODES<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<a href="'+ruta+'internas/7.html">Componentes del Programa<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<a href="'+ruta+'internas/14.html">Materiales de Capacitacion<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<a href="'+ruta+'internas/43.html">Seguimiento del Proceso de Descentralizacion<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<a href="'+ruta+'internas/44.html">Estudios y Aportes al Debate<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.writeln('<\/tr>');
document.writeln('<tr align=center height=24 bgcolor=white>');
document.write('<td height=24 colspan=3 class=enlacechicogris>');
document.write('<a href="'+ruta+'internas/19.html">Links de Inter&eacute;s<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<a href="'+ruta+'internas/20.php">Cont&aacute;ctanos<\/a><\/td>');
document.writeln('<\/tr>');
document.writeln('<tr align=center height=19 bgcolor=#4f762d>');
document.writeln('<td height=19 colspan=3 class=direccionblanco>USAID/Perú ProDescentralización<\/td>');
document.writeln('<\/tr>');
document.writeln('<\/tr>');
document.writeln('<tr align=center height=19 bgcolor=#4f762d>');
document.writeln('<td height=19 colspan=3 class=direccionblanco>Av. Vasco Núñez de Balboa 610, Miraflores<\/td>');
document.writeln('<\/tr>');
document.writeln('<\/tr>');
document.writeln('<tr align=center height=19 bgcolor=#4f762d>');
document.writeln('<td height=19 colspan=3 class=direccionblanco>Teléfono (511) 4450570, Fax (511) 4444578<\/td>');
document.writeln('<\/tr>');
document.writeln('<tr height=32 align=center bgcolor=#fdec78>');
document.writeln('<td height=32 colspan=3 class=copyright>2004 Todos los derechos reservados | <a href="mailto:prodes@prodes.org.pe">prodes@prodes.org.pe<\/a><\/td>');
document.writeln('<\/tr>');
document.writeln('<tr height=58 align=center bgcolor=white>');
document.write('<td height=58 colspan=3 class=posibleusaid>Esta página web ha sido posible gracias al apoyo de USAID-PERU, bajo los términos del contrato Nº 527-C-00-03-00049-00.<br>');
document.writeln('Las opiniones expresadas por los autores no reflejan necesariamente el punto de vista de la Agencia de los Estados Unidos para el Desarrollo Internacional.<\/td><\/tr>');
document.writeln('<\/table><\/td>');
document.writeln('<\/tr>');
document.writeln('<\/table>');
}
