var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);

function printPage() {
  if (pr) // NS4, IE5
    window.print()
  else if (da && !mac) // IE4 (Windows)
    vbPrintPage()
  else // other browsers
    alert("Su navegador no soporta esta acción.");
  return false;
}

if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln('  OLECMDID_PRINT = 6');
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
  writeln('  On Error Resume Next');
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}





	function obroContingut(url,ample,altura,finestra,barres,xloc,yloc)
		{
		finestreta=window.open(url,finestra,"left="+xloc+",top="+yloc+",toolbar=no,scrollbars=" + barres + ",directories=no,status=no,menubar=no,resizable=no,width=" + ample + ",height=" + altura);
		finestreta.location=url;
		finestreta.focus();
		}

	function refciclo()
		{
		obroContingut('ciclo.html',580,560,'refciclo','no',20,0);
		}
	function refcicle()
		{
		obroContingut('refcicle.php',580,560,'refcicle','no',20,0);
		}

	function casainterior()
		{
		obroContingut('casainterior.html',360,520,'casainterior','no',60,20);
		}

	function bgermanica()
		{
		obroContingut('bgermanica.html',470,460,'bgermanica','no',20,0);
		}

	function borientalis()
		{
		obroContingut('borientalis.html',480,460,'borientalis','no',20,0);
		}

	function pamericana()
		{
		obroContingut('pamericana.html',480,460,'pamericana','no',20,0);
		}
	function bgermanica2()
		{
		obroContingut('bgermanica2.php',470,425,'bgermanica2','no',20,0);
		}

	function borientalis2()
		{
		obroContingut('borientalis2.php',480,426,'borientalis2','no',20,0);
		}

	function pamericana2()
		{
		obroContingut('pamericana2.php',480,434,'pamericana2','no',20,0);
		}
	function sistemas()
		{
		obroContingut('sistemas.html',440,540,'sistemas','no',20,0);
		}
	function sistemes()
		{
		obroContingut('sistemes.php',440,570,'sistemes','no',20,0);
		}
	function erodent()
		{
		obroContingut('erodent.html',540,540,'erodent','no',20,0);
		}
	function erodent1()
		{
		obroContingut('erodent1.php',540,520,'erodent1','no',20,0);
		}


	function barrera()
		{
		obroContingut('barrera.html',520,320,'barrera','no',20,0);
		}
	function barrera1()
		{
		obroContingut('barrera1.php',520,320,'barrera1','no',20,0);
		}

	function mapaweb()
		{
		obroContingut('../../ayuda/mapaweb.html',560,540,'mapaweb','no',0,0);
		}
	function mapaweb6()
		{
		obroContingut('../../ajuda/mapaweb.html',560,540,'mapaweb6','no',0,0);
		}
	function mapaweb1()
		{
		obroContingut('ayuda/mapaweb.html',560,540,'mapaweb1','no',0,0);
		}
	function mapaweb5()
		{
		obroContingut('ajuda/mapaweb.html',560,540,'mapaweb5','no',0,0);
		}
	function mapaweb2()
		{
		obroContingut('../ayuda/mapaweb.html',560,540,'mapaweb2','no',0,0);
		}
	function mapaweb4()
		{
		obroContingut('../ajuda/mapaweb.html',560,540,'mapaweb4','no',0,0);
		}
	function mapaweb3()
		{
		obroContingut('mapaweb.html',560,540,'mapaweb3','no',0,0);
		}
	function mapa()
		{
		obroContingut('mapa.html',500,490,'mapa','no',0,0);
		}
	function mapacat()
		{
		obroContingut('mapacat.html',500,490,'mapa','no',0,0);
		}
	function vuelos()
		{
		obroContingut('vuelos.html',500,540,'vuelos','no',20,0);
		}
	function vols()
		{
		obroContingut('vols.html',500,540,'vols','no',20,0);
		}

function makeArray(n){
  this.length = n;
  for (i=1;i<=n;i++){
    this[i]=0;
  }
  return this;
}

// standard date display function with y2k compatibility

function displayDate() {
  var this_month = new makeArray(12);
    this_month[0]  = "Enero";
    this_month[1]  = "Febrero";
    this_month[2]  = "Marzo";
    this_month[3]  = "Abril";
    this_month[4]  = "Mayo";
    this_month[5]  = "Junio";
    this_month[6]  = "Julio";
    this_month[7]  = "Agosto";
    this_month[8]  = "Septiembre";
    this_month[9]  = "Octubre";
    this_month[10] = "Noviembre";
    this_month[11] = "Diciembre";
  var today = new Date();
  var day   = today.getDate();
  var month = today.getMonth();
  var year  = today.getYear();
  if (year < 1000) {
    year += 1900;
  }
  
  return(this_month[month]+" "+day+", "+year);
}


window.name='ibertrac'


