/*
+---------------------+
| Includes/General.js |
+---------------------+-----------------------------------------+
| Rutinas en javascript comunes                                 |
+---------------------------------------------------------------+
| Última modificación: 29/06/03 - 17:47                         |
+---------------------------------------------------------------+
*/

// *****************************************************
// Título de la barra de estado
// *****************************************************


function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus

// *****************************************************
// Cambio colores TD con dedo
// *****************************************************

function overTD(td,color){td.style.cursor='hand';td.bgColor=color;}
function outTD(td,color){td.style.cursor='default';td.bgColor=color;}
function clickTD(td){td.children.tags('A')[0].click();}

// *****************************************************
// Cambio colores TD sin dedo
// *****************************************************

function overTD2(td,color){td.style.cursor='default';td.bgColor=color;}
function outTD2(td,color){td.style.cursor='default';td.bgColor=color;}
function clickTD2(td){td.children.tags('A')[0].click();}

// *****************************************************
// Popup centrado
// *****************************************************

function NewWindow(mypage, myname, w, h, scroll)
{var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no,toolbar=no,status=no,location=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}

// *****************************************************
// Publi
// *****************************************************

inerte = 1+Math.round(5 * Math.random());
function nuevaventana(myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no,toolbar=no,status=no,location=no'
win = window.open('publicidad/popup'+inerte+'.htm',myname, winprops)
if (parseInt(navigator.appVersion) >= 4) {win.window.focus(); }}


// *****************************************************
// Para el menú
// *****************************************************


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

para=0
function Esconde(){MM_showHideLayers('Menu','','hide');}
function Retardo(){para=setTimeout('Esconde()',5000);}
function Cancelar(){clearTimeout(para);}


function view1(){
MM_swapImage('menu41','','img/submenu_41_on.gif',1);
}

function view2(){
MM_swapImage('menu42','','img/submenu_42_on.gif',1);
}

function view3(){
MM_swapImage('menu43','','img/submenu_43_on.gif',1);
}

