function Is ()
{   // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();

    // --- BROWSER VERSION ---
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);

    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
    this.nav2 = (this.nav && (this.major == 2));
    this.nav3 = (this.nav && (this.major == 3));
    this.nav4 = (this.nav && (this.major == 4));
	this.nav5 = (this.b=="ns" && this.v==5)
 

    this.ie   = (agt.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major == 4));
    this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);

    this.opera = (agt.indexOf("opera") != -1);
     
    this.NN =	this.nav && (this.major >= 4);
    this.IE  = this.ie  && (this.major >= 4);
	if (this.ie5) this.v = 5
    this.min = (this.NN||this.IE)

}
document.write("<SCR" + "IPT type='text" + "/java" + "scr" + "ipt' SRC='" + HM_DirJs+ "ginhsihp.js'><\/SCR" + "IPT>");
var is = new Is();


function findObj(n, d) { 
  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=findObj(n,d.layers[i].document); return x;
}
if (Menu_TituloFavoritos==null)
	var Menu_TituloFavoritos="INE";
	 
if (Menu_UrlFavoritos==null)
	var Menu_UrlFavoritos="http://www.ine.es";
function AgregarFavoritos(titulo,url){
 title =titulo; 
 url = url;
  try{
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); 
	} else if(window.opera && window.print) { // Opera Hotlist
		return true; }
  }catch(e) {

  }	
}

function Mensaje (fichero,scroll,ancho,alto) {

  var w=ancho;
  var h=alto;
  var t=(screen.height-h)/2
  var l=(screen.width-w)/2
  if (scroll==0){
    prop='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top='+t+',left='+l+',width='+w+',height='+h
    msgWindow=window.open(fichero,'legal',prop)
  } else {
    prop='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top='+t+',left='+l+',width='+w+',height='+h
    msgWindow=window.open(fichero,'legal',prop)
  }

}

function changeBackgroundColor(obj,color){
	document.getElementById(obj).style.background=color;
}

function changeBackgroundColorObj(obj,color){
	obj.style.background=color;
}

function changeColor(obj,color){
	document.getElementById(obj).style.color=color;
}

function changeColorObj(obj,color){
	obj.style.color=color;
}




