mensaje = 'Bienvenido al Departamento de Informatica y Sistemas de la ULPGC';

if ((navigator.appName == 'Netscape')&&(parseInt(navigator.appVersion) >= 5)) {netscape6 = true}
else {netscape6 = false;}

//tmtC_NNresizeFix
if (document.layers) {
origWidth = innerWidth;
origHeight = innerHeight;}
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();}
if (document.layers) onresize = reDo;
//tmtC_NNresizeFixEnd


function wiper2() {
   if (stringcount > -1) str = themsg[stringcount]; else str = themsg[0];
   if (stringcount-- > 0) status = str;
   clearTimeout(timeID);
   timeID = setTimeout("wiper2()",50);			// EL DIGITO INDICA EL RETARDO.

}
function wiper(){
//Inicializar variables
timeID = 5;
stringcount = 67;					// AQUI DEBE PONERSE LA LONGITUD DE LA CADENA.
msg = mensaje;	// AQUI VA EL MENSAJE.
themsg = new Array(68);				// AQUI DEBE PONERSE LA LONGITUD DE LA CADENA + 1
themsg[0]=msg; blink = "                                                                 ";
for (i=1; i<69; i++)					// AQUI DEBE PONERSE LO MISMO: LONGITUD DE CADENA+1
{b = blink.substring(0,i-1); themsg[i]="";for (j=0; j<msg.length; j++) themsg[i]=themsg[i]+msg.charAt(j)+b;}
// llamar funcion
wiper2()
}

// Si es NETSCAPE el navegador, la variable se pone TRUE.
netscape = navigator.appName == "Netscape"

// Para que no "sustraigan" imágenes. je, je
//function click() { if (event.button==2) alert('Copyright 2001 Departamento de Informática y Sistemas de la ULPGC') }
//if(!netscape) document.onmousedown = click; //por ahora, con netscape no funciona esta opción.

var menuskin=0
var display_url=0
function showmenuie5(){
var rightedge=document.body.clientWidth-event.clientX
var bottomedge=document.body.clientHeight-event.clientY
if (rightedge<ie5menu.offsetWidth)
ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
else
ie5menu.style.left=document.body.scrollLeft+event.clientX
if (bottomedge<ie5menu.offsetHeight)
ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
else
ie5menu.style.top=document.body.scrollTop+event.clientY
ie5menu.style.visibility="visible"
return false
}
function hidemenuie5(){
ie5menu.style.visibility="hidden"
}
function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="highlight"
event.srcElement.style.color="white"
if (display_url==1)
window.status=event.srcElement.url
}
}
function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}
function jumptoie5(){
if (event.srcElement.className=="menuitems"){
if (event.srcElement.getAttribute("target")!=null)
window.open(event.srcElement.url,event.srcElement.getAttribute("target"))
else
window.location=event.srcElement.url
}
}