function agregar_favoritos() 
{
	var title = 'Buscador IRC Crawler';
  var url = 'http://www.irccrawler.net';

  if (window.sidebar) {
  	window.sidebar.addPanel(title, url,"");
  } else if( document.all ) {
  	window.external.AddFavorite( url, title);
  } else if( window.opera && window.print ){
  	return true;
	}
}

function pagina_inicio(objk,direccion){
        if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>3)){
            objk.style.behavior="url(#default#homepage)";
            objk.setHomePage(direccion);
        }
        else{
            alert("su navegador no dispone de esta opción");
        }
    } 

function cambiarDIV(capaAHacerVisible)
{
		ocultarCapas();
		capaAHacerVisible.style.display="";
}

function ocultarCapas()
{
		document.getElementById("bloque1").style.display="none";
		document.getElementById("bloque2").style.display="none";
		document.getElementById("bloque3").style.display="none";
		document.getElementById("bloque4").style.display="none";
		document.getElementById("bloque5").style.display="none";
		
		document.getElementById("bloque6").style.display="none";
		document.getElementById("bloque7").style.display="none";
		document.getElementById("bloque8").style.display="none";
}

/* Abre una nueva ventana en el navegador */
function nuevaVentana(URL)
{
    var windowWidth, windowHeight;
    
    if (self.innerHeight) 
	{	// all except Explorer
        windowWidth = self.innerWidth;
        windowHeight = self.innerHeight;
    } 
	else if (document.documentElement && document.documentElement.clientHeight) 
	{ // Explorer 6 Strict Mode
        windowWidth = document.documentElement.clientWidth;
        windowHeight = document.documentElement.clientHeight;
    } 
	else if (document.body) 
	{ // other Explorers
        windowWidth = document.body.clientWidth;
        windowHeight = document.body.clientHeight;
    }  
   
    var windowprops ="top=0,left=0,toolbar=yes,location=yes,status=yes, menubar=yes,scrollbars=yes, resizable=yes,width=" + windowWidth + ",height=" + windowHeight;   
   	ventana = window.open(URL,"",windowprops);	
}

function nuevaVentanaVideo(URL,ancho,alto)
{
	var windowprops ="top=0,left=0,toolbar=no,location=no,status=no, menubar=no,scrollbars=no, resizable=no,width=" + ancho + ",height=" + alto;   
  ventana = window.open(URL,"",windowprops);		
}