//########### DETECCIÓN DEL NAVEGADOR Y POP UP
IE = navigator.appName=="Microsoft Internet Explorer";
NS = navigator.appName=="Netscape";
bVer = parseInt(navigator.appVersion);
var radval = 0;
var newWin=null;

function popup(loc, name, width, height, scroll) {
	if (scroll == 'yes'){
	scroll = 'yes';
	}else{
	scroll = 'no';
	}
        var _params = "width="+width+",height="+height+",resizable=no, scrollbars="+scroll+",status=no";

        // CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
        if (bVer >= 4) {
                 _left = ( (screen.width-width) >>1 );
                 _top = ( (screen.height-height) >>1 );
        } else {
                 _left = ( (800-width) >>1 );
                 _top = ( (600-height) >>1 );
        }

        if (IE) _params += ",top=" + _top + ",left=" + _left;
        else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
        
		newWin = window.open(loc, name, _params);
        if ( newWin!=null && !(IE && bVer<5) )
        newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}

function popup2(loc, name, width, height, scroll) {
	if (scroll == 'yes'){
	scroll = 'yes';
	}else{
	scroll = 'no';
	}
        var _params = "width="+width+",height="+height+",resizable=no, scrollbars="+scroll+",status=no";

        // CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
        if (bVer >= 4) {
                 _left = ( (screen.width-width) >>1 );
                 _top = ( (screen.height-height) >>1 );
        } else {
                 _left = ( (800-width) >>1 );
                 _top = ( (600-height) >>1 );
        }

        if (IE) _params += ",top=" + _top + ",left=" + _left;
        else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
        
		newWin = window.open(loc, name, _params);
        //if ( newWin!=null && !(IE && bVer<5) )
        //newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}

//####### BARRA DEL NAVEGADOR
var message = 'Sociedad Venezolana de Bionalaistas Especialistas';
statuss();
function statuss()
    {
    window.status = message;
    //timerID = setTimeout("statuss()", 25);
}

//####### BOTONES DE NAVEGACION
    var prev=new Array("out", "over");
    var next=new Array("out", "over");
    
    prev["out"] = "/images/prev.jpg";
    prev["over"] = "/images/prevover.jpg";
    next["out"] = "/images/next.jpg";
    next["over"] = "/images/nextover.jpg";

  	function HandleContext()
  	{
		var thisLocation = document.location;
  		if( document.location == top.location ) {
			top.location.replace("Help.htm");
			top.document.cookie = "content=" +thisLocation;
  		}
  	}

//####### POLITICAS DE PRIVACIDAD
function politicas(){
	popup( '/politicas/politica_privacidad.asp', 'POLITICAS', 500, 550, 'yes');
}

//####### ACCESESIBILIDAD
function accesibilidad(){
	popup( '/politicas/accesibilidad.asp', 'ACCESIBILIDAD', 500, 550, 'yes');
}

//########### TAMAÑOS DE FUENTES
function AumentarTamano(){
var Boton=window.event.srcElement
var Elementos=document.all.tags("span")
var tam

for (i=0;i<Elementos.length;i++){
tam = 0;
tam=parseFloat(Elementos[i].style.fontSize);
Elementos[i].style.fontSize=tam + 1
if (tam>=13) {
Elementos[i].style.fontSize=10
}
}
}

function DisminuirTamano(){
var Boton=window.event.srcElement
var Elementos=document.all.tags("span")
var tam

for (i=0;i<Elementos.length;i++){
tam = 0;
tam=parseFloat(Elementos[i].style.fontSize);
Elementos[i].style.fontSize=tam - 1
}
if (tam<=10) {
//tool.disminuir.disabled = true;
}else{
//tool.aumentar.disabled = false;
}
}

function Inicio(){
var Elementos=document.all.tags("span")
for (i=0;i<Elementos.length;i++){
Elementos[i].style.fontSize=10
}
}

//########### RECOMENDAR ARTICULO
function recomendar_articulo(id,sec){
	popup2( '/soporte/recomendar.asp?id='+ id +'&sec='+ sec, 'RECOMENDAR', 400, 350, 'no');
}

//########### IMPRIMIR ARTICULO
function imprimir_articulo(art){
	popup2( art, 'IMPRIMIR', 635, 550, 'yes');
}
function printWindow() {
	bV = parseInt(navigator.appVersion);
	if (bV >= 4) {
		self.print();
		self.close();
	}
}

//########### IMPRIMIR INSCRIPCIÓN
function imprimir_inscripcion(art){
	popup( art, 'IMPRIMIR', 500, 450, 'yes');
}

//########### CODIGO  DE CONDUCTA
function codigo(){
	popup( 'politicas/codigo_conducta.asp', 'CODIGO', 500, 550, 'yes');
}