﻿// JScript File
function POPHTM2(file, ancho, alto) {
	var ventana2, txtBody;

	var leftPos= (screen.width)?parseInt((screen.width-ancho)/2):100;
	var topPos= (screen.height)?parseInt((screen.height-alto)/2):100;

	ventana2=window.open(file,'ventana2','toolbar=no,location=no,directories=no,status=no,menubar=no,width='+ancho+',height='+alto+',top='+topPos+',left='+leftPos);

	if(ventana2.focus)
		ventana2.focus();
}

function openContacto(){
    var file="http://localhost:2709/NBSF/herramientas/contacto.aspx";
    POPHTM(file, 500, 460);
}

function POPHTM(file, ancho, alto) {
	var ventana, txtBody;

	var leftPos= (screen.width)?parseInt((screen.width-ancho)/2):100;
	var topPos= (screen.height)?parseInt((screen.height-alto)/2):100;

	ventana=window.open(file,'ventana','toolbar=no,location=no,directories=no,status=no,menubar=no,width='+ancho+',height='+alto+',top='+topPos+',left='+leftPos+',scrollbars=1');

	if(ventana.focus)
		ventana.focus();
}


function abrir_ventana(url) 
    {
         var prop ="";
         prop = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=100%,height=100%";
         var ventana3;
         vantana3=window.open (url);       
         if (ventana3.focus)
             ventana3.focus();
         
    }

function irA (pagina) { 
    document.location=pagina;
}

function mar_stop(){
	var marquee = document.getElementById('marquesina');
	if(!marquee) marquee = document.getElementById('marquesina2');
	marquee.stop();
}

function mar_start(){	
	var marquee = document.getElementById('marquesina');
	if(!marquee) marquee = document.getElementById('marquesina2');
	marquee.start();
}

function cerrar() {
	document.getElementById("bannerFlash").style.display='none';
}

function mar_stop2(){
	mar_stop();
}
function mar_start2(){	
	mar_start();
}

