

// BROWSER DETECTION


        var bn = navigator.appName; var bv = parseFloat(navigator.appVersion);
        var IE = (bn == "Microsoft Internet Explorer"); var IE3 = (IE && bv >= 3); var IE4 = (IE && bv >= 4); 
        var IE41 = (IE && bv >= 4); //quitado --- && navigator.appVersion.indexOf('MSIE 4.0;') < 0 && navigator.appVersion.indexOf('MSIE 4.01;') < 0);
        var NS = (bn == "Netscape");
        var NS3 = (NS && bv >= 3); 
        var NS4 = (NS && bv >= 4); var NS41 = (NS && bv >= 4.0); //se modificó de 4.1 a 4.0


// BROWSER FLAGS
        if (IE) alto=52; else alto=50;
        if (IE) margen=108; else margen=107;




function AbreVen(imag) {
      window.open(imag,'ventanamax','width=780,height=520,top=0,left=0,scrollbars=yes');    
}


 function AbreVenGen(imag,w,h,t,l) {
      param = 'width='+w+',height='+h+',top='+t+',left='+l+',scrollbars=yes,resizable=no,status=yes';
      window.open(imag,'ventanamax',param);
 }



function onLoad() {
    if (document.layers) {
        loadMenus();
    }
}


function loadMenus() {
     var bn = navigator.appName; var bv = parseFloat(navigator.appVersion);	 
     var IE = (bn == "Microsoft Internet Explorer"); 
	//Dynamic Menus
 
	window.MenuCurs = new Menu();
    //MenuOpc1.addMenuItem("Matrículas abiertas","AbreVenGen('http://www.pucp.edu.pe',200,100,100,100)");
	MenuCurs.addMenuItem("Red Virtual","location='red_virtual/redvirtual.html'");
    MenuCurs.addMenuItem("Nuevo Investigador","location='red_virtual/insc_inv.html'");
    
    MenuCurs.disableDrag = true;   

    window.MenuPres = new Menu();
//	MenuPres.addMenuItem("Qbjetivos","location='sicetic_up/sicetic_up.html'");
    MenuPres.addMenuItem("Objetivos","location='sicetic_up/sicetic_up.html#objGeneral'");
    MenuPres.addMenuItem("DEA THEKE","location='sicetic_up/dea_theke.php'");
	MenuPres.addMenuItem("DEA CCINFO","location='sicetic_up/dea_ccinfo.php'");
	MenuPres.addMenuItem("Nuevo Usuario","location='sicetic_up/inscripcion.php'");
	

    MenuPres.disableDrag = true;   

    window.MenuMod = new Menu();
    MenuMod.addMenuItem("Red de Información","location='red_informacion/redinformacion.php'");
    MenuMod.addMenuItem("Link de interes","location='red_informacion/enlaces/enlaces.php'");
//	MenuMod.addMenuItem("Metodología","location='./?mod_meto.htm'");
//	MenuMod.addMenuItem("Medios y materiales","location='./?mod_mym.htm'");
   // MenuMod.addMenuItem("Sistema de evaluación","location='./?mod_sis_eva.htm'");
   // MenuMod.addMenuItem("Requerimientos tecnológicos","location='./?req_tec.htm'");
    MenuMod.disableDrag = true;   

    window.MenuVent = new Menu();
    MenuVent.addMenuItem("Aprender en entornos virtuales","location='./?entor_virtual.htm'");
    MenuVent.addMenuItem("Aprendizaje colaborativo","location='./?apr_col.htm'");
    MenuVent.addMenuItem("Estilos de aprendizaje","location='./?est_apren.htm'");
    MenuVent.disableDrag = true;   
    //para definir el esquema de todos los menúes declarados 
    MenuCurs.fontSize = 11;
    MenuCurs.fontColor = "#ffffff";
    MenuCurs.fontColorHilite = "#009933";
    MenuCurs.fontWeight = "normal";
    MenuCurs.menuItemBgColor = "#009933";
    MenuCurs.menuHiliteBgColor = "#007D3F";
    MenuCurs.menuBorder = 1;
    MenuCurs.menuItemIndent = 0;
    MenuCurs.fontFamily = "Arial"
    MenuCurs.menuItemWidth = 122; 
    MenuCurs.menuItemHeight = 18; 
    MenuCurs.menuItemBorder = 1;
    MenuCurs.menubgColor="#009933";
    MenuCurs.menuBorderBgColor = "#669966";
    MenuCurs.menuContainerBgColor = "#009933"; 
     
    MenuCurs.prototypeStyles = MenuCurs;
    MenuCurs.writeMenus();     
}

