var IE4B = false; var NS4B = false; var NS6B = false; var OP5B = false; NS4B = ((document.layers)?true:false); IE4B = ((document.all)?true:false); NS6B = ((document.getElementById)&&(!IE4B))?true:false; uagent = window.navigator.userAgent.toLowerCase(); IE5 = false; IE4 = false; IEold = false; IE5 = (uagent.indexOf('msie 5.0') != -1)?true:false; IE4 = (uagent.indexOf('msie 4') != -1)?true:false; OP5B = (uagent.indexOf('opera') != -1)?true:false; if(IE5||IE4) { IEold=true; } if(OP5B==true) {IE4B=false;NS6B=true;} if(NS6B==true) {IE4B=false;} function abrir_ventana(){ if(!window.open('http://www.universia.edu.pe/includes/common/login.php','registrados','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=225,height=200,top='+centro_y(200)+',left='+centro_x(225))){ alert('No se ha podido realizar la acción puesto que la información solicitada se muestra como una ventana emergente o popup.\nLo mas probable es que tenga instalado software que no permita ventanas emergentes, agregue a www.universia.edu.pe como sitio seguro.\nAnte cualquier duda comuníquese a info@universia.edu.pe.'); } } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i=4)) { var url="http://www.universia.edu.pe/"; var titulo="Universia.edu.pe, el portal de los universitarios"; window.external.AddFavorite(url,titulo); } else { if(navigator.appName == "Netscape") alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks"); } } function ini() { var browsName = navigator.appName; if (browsName == "Microsoft Internet Explorer") { alert ("Gracias por seleccionarnos como tu página de entrada a Internet"); } else if (browsName == "Netscape") { alert ("\nPara poner Universia.edu.pe como tu página de inicio:\n\n Desde Netscape \n- Abre el menu Edit y seleciona la pestaña Preferences\n- En la casilla location introduce la siguiente dirección\n- http://www.universia.edu.pe/\n- Una vez hecho esto, pulsa OK\n\nGracias por dejarnos ser tu página de entrada a Internet"); } else if (browsName == "Opera") { alert ("\nPara poner Universia.edu.pe como tu página de inicio:\n\n Desde Opera 5\n\n- Abre el menu Navegación\n- Selecciona la pestaña Configurar página principal...\n- En la casilla de abajo pon la siguiente dirección\n- http:/www.universia.edu.pe/\n- Una vez hecho esto pulsa OK\n\nGracias por dejarnos ser tu página de entrada a Internet"); } else alert ("\nPara poner Universia.edu.pe como tu página de inicio:\n\n- Consulta las instrucciones de tu navegador\n\nGracias por dejarnos ser tu página de entrada a Internet"); } /* Menus contextuales */ var dpopTimer = ""; var menuId = "menu_paises"; function showMenu(id) { menuId = id; //oculto el otro if(menuId == 'menu_paises' && $('menu_secciones').style.display != 'none') { $('menu_secciones').style.display = 'none'; } if(menuId == 'menu_secciones' && $('menu_paises').style.display != 'none') { $('menu_paises').style.display = 'none'; } //me guio del header para posicionar los menus elemPos = Position.cumulativeOffset($('header')); //calculo el delta elemX = elemPos[0] + Element.getWidth('header') - Element.getWidth(menuId) //tamaño de la sombra ; elemY = elemPos[1] + Element.getHeight('header') - 1 ; $(menuId).style.position = 'absolute'; $(menuId).style.top = elemY + 'px'; $(menuId).style.left = elemX + 'px'; if (dpopTimer != "") { clearTimeout(dpopTimer); dpopTimer = ""; } else { Element.show(menuId); } } function hideMenu(id) { menuId = id; //Start timer to hide the pop-up and the overlay dpopTimer = setTimeout("actuallyHide()", 500); } function actuallyHide() { var popDownload = document.getElementById(menuId); if (dpopTimer != "") { dpopTimer = ""; Element.hide(menuId); return false; } } /* agregado el 05/06/2008 */ function VideoLista(objVideo, texto, objDiv, tipo){ if(tipo=="1"){ JSFX.zoomIn(objVideo); document.getElementById(objDiv).innerHTML=""+texto+""; }else{ JSFX.zoomOut(objVideo); document.getElementById(objDiv).innerHTML=""; } } function ObtenerDatosHome(datos,divID,opcionID) { var peticion = false; if (window.XMLHttpRequest) { peticion = new XMLHttpRequest(); }else if (window.ActiveXObject) { peticion = new ActiveXObject("Microsoft.XMLHTTP"); } var obj = document.getElementById(divID); peticion.open("POST", datos, true); d_sexo = document.frm_home.d_sexo.value; d_perfil = document.frm_home.d_perfil.value; d_uni = document.frm_home.d_uni.value; d_carrera = document.frm_home.d_carrera.value; d_area = document.frm_home.d_area.value; d_carrerapre = document.frm_home.d_carrerapre.value; d_cargopas = document.frm_home.d_cargopas.value; d_profesion = document.frm_home.d_profesion.value; valores = "d_sexo="+d_sexo+"&d_perfil="+d_perfil+"&d_uni="+d_uni+"&d_carrera="+d_carrera+"&d_area="+d_area+"&d_carrerapre="+d_carrerapre+"&d_cargopas="+d_cargopas+"&d_profesion="+d_profesion; if(opcionID == "home-5"){ document.getElementById("home-personal").style.backgroundImage = "url(http://www.universia.edu.pe/_descargas/7/9/fondo_universiando.jpg)"; }else if(opcionID == "home-1"){ document.getElementById("home-personal").style.backgroundImage = "url(http://www.universia.edu.pe/_descargas/7/9/fondo_pre.jpg)"; }else{ document.getElementById("home-personal").style.backgroundImage = "none"; } peticion.onreadystatechange = function() { if (peticion.readyState == 4) { /*START Nielsen//NetRatings Event Tracking function */ _nnEventTrack("http://"+window.location.host+"/"+datos); /*END Nielsen//NetRatings Event Tracking function*/ obj.innerHTML = (peticion.responseText); }else if(peticion.readyState==1){ obj.innerHTML = "


Cargando contenidos...

"; } }; peticion.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); peticion.send(valores); } /*Mods en Noticias*/ function noticiasPorCategoria(categoria) { var url = '/noticias/ajax-noticiasPorCategoria.php'; var pars = {cate:categoria}; //marco los botones $$('.li-noticia-categoria').invoke('removeClassName', 'seleccionado'); $('li-noticia-'+categoria).addClassName('seleccionado'); new Ajax.Request(url, { method:'get', parameters: pars, onLoading: function(){ $('interno-noticias').update("
"); }, onSuccess: function(transport){ var response = transport.responseText; $('interno-noticias').update(response); }, onFailure: function(){ alert('Something went wrong...') } }); }