/***********************************************
* Ventana emergente para el messenger
***********************************************/

function abrirAlvaro()
{
window.open('http://bibliavirtual.comoj.com/servicios/gadgets/im/alvaro.htm','','titlebars=0, toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=400,left=300,top=150');
}


function abrirAmelia()
{
window.open('http://bibliavirtual.comoj.com/servicios/gadgets/im/amelia.htm','','titlebars=0, toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=400,left=300,top=150');
} 

function abrirJoel()
{
window.open('http://bibliavirtual.comoj.com/servicios/gadgets/im/joel.htm','','titlebars=0, toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=400,left=300,top=150');
} 
/***********************************************
* Botones adicionales a un buscador
***********************************************/
function focalizeaza(){
	document.getElementById("sbi").focus();
}

function excForm(frm, actionURL){
	var val = frm.q.value;
	location.href = actionURL + val;}

/***********************************************
* Ventana emergente para la biblia
***********************************************/
function abrirBiblia()
{
window.open('http://bibliavirtual.comoj.com/servicios/gadgets/buscarenbiblia.htm','','titlebars=0, toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,width=440,height=290,left=300,top=150');
} 

/***********************************************
* Cambia el color de los bordes de input type=text
***********************************************/
function foco(elemento) {
elemento.style.border = "1px solid red";
}

function no_foco(elemento) {
elemento.style.border = "1px solid black";
}

/***********************************************
* Ventana emergente para tagboard
***********************************************/
function abrirTagboard()
{
window.open('http://bibliavirtual.comoj.com/servicios/gadgets/tagboard.htm','','titlebars=0, toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,width=320,height=400,left=300,top=150');
} 

/***********************************************
Scripts varios
************************************************/
function quitarFrame() 
{ 
if (self.parent.frames.length != 0) self.parent.location=document.location.href; 
} 
quitarFrame()

window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.choice)
indicateSelected(formref.switchcontrol)
}

var msg_browser = "Te recomendamos actualizar tu navegador a <a href=http://www.mozilla-europe.org/es/firefox/>Mozilla Firefox 3.5</a>, <a href=http://microsoft.com/ie>Internet Explorer 8</a> o <a href=http://www.google.com/chrome>Google Chrome</a>";
var colorFont = "#990000";
var colorBorder = "#990000";
var colorBackground = "#FFFFCC";

    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox() 
    })
