// JavaScript Document

//var SymRealOnLoad;
//var SymRealOnUnload;

function SymOnUnload()
{
  window.open = SymWinOpen;
  if(SymRealOnUnload != null)
     SymRealOnUnload();
}

function SymOnLoad()
{
  if(SymRealOnLoad != null)
     SymRealOnLoad();
  window.open = SymRealWinOpen;
  SymRealOnUnload = window.onunload;
  window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
<!-- Load the slideshow JavaScript code -->


function SymError()
{
  return true;
}

window.onerror = SymError;

//var SymRealWinOpen = window.open;

//function SymWinOpen(url, name, attributes)
//{
  //return (new Object());
//}

window.open = SymWinOpen;

//-->

document.write("<script language=\"JavaScript\" src=\"slideshow.js\" type=\"text\/JavaScript\"></script>");
////////////////////////Captions
quote = new Array(
"Arrival at Las Rozas: Fra. Juan José with Frs. John and Michael.",
"\"Casa Alta\", which contains principal chapel, refectory and other facilities of the seminary.",
"\"Casa Baja\", former convent now used as residence at seminary in Madrid.",
"The main facade of El Escorial, outside of Madrid.",
"Visit to El Escorial: (l. to r.): Frs. Michael and John, Fr. Domingo Canet, OSA, director of students, Fra. Juan José, and Fr. Marciano Santervás, prior at Las Rozas.",
"Courtyard and main entrance to the chapel at El Escorial.",
"Frs. Michael and John in the countyard outside El Escorial",
"Birthday celebration at Las Rozas: Fr. Tomás Perez joins Frs. John, Michael and other friars for the festivities at Las Rozas.",
"Another view of the celebration.",
"Students at the seminary enjoying one of their weekly soccer matches.",
"Frs. Michael, John, and Fra. Juan José with the Chinese seminarians at Las Rozas.",
"Dinner in Monteagudo (l. to r.): Fr. Ricardo Mediavilla (novice master); Fr. José Maria Lorenzo (pastor of local church); Frs. John and Michael; and Fr. Miguel Ángel Tejada, local prior.",  
"Celebration of Mass in the community chapel in Monteagudo; Fr. Ricardo presided.",
"Frs. John and Michael assist Fr. Ricardo at the Mass.",
"Informal meeting with the Novice Master.",
"Frs. Michael and John with our novice for this year, Fra. Eduardo Rodriguez.",
"New museum of OAR missionaries and St. Ezekiel Moreno, Monteagudo (l. to r.): Frs. Michael, Michael Ángel, and John.",
"The main chapel in Monteagudo (l. to r.): Frs. Michael, John, Miguel Ángel, and José Javier Lizarraga, visiting from Marcilla.",
"Frs. Michael and John in front of tomb of St. Ezekiel Moreno, Monteagudo.",
"Tomb of Bishop Javier Ochoa, OAR, set in floor of the main chapel, Monteagudo.",
"Frs. Michael and John share news of St. Augustine Province with the novices.",
"Discussion with the novices.",
"Fr. John (c.) with Fra. Eduardo and members of English class he conducts (taller) for the novices.",
"A visit to the convent of the Missionary Augustinian Recollect sisters (MAR) in Monteagudo; (second from left) Fr. José María Lorenzo.",
"Frs. John and Michael gather with other celebrants for Palm Sunday liturgy.",
"Fr. Francisco Javier Monroy, prefect of postulants, was main celebrant for liturgy.",
"The procession begins with music and olive branches, moving from the entrance of the \"Casa Alta\" to the chapel in the \"Casa Baja\".",
"Fr. Javier Jiménez, prefect of professed, was Narrator for the reading of the Passion.",
"Fr. Michael took the part of the Crowd in the Passion.",
"Celebrants gathered for Palm Sunday liturgy.",
"The Eucharistic Prayer.",
"Recessional following the liturgy.",
"The friars enjoyed a bountiful lunch after the liturgy.",
"Fra. Juan José displays his hair-cutting talents on a fellow student.",
"Fr. John, Fra. Juan José and Fr. Michael preparing for Mass at Las Rozas.",
"New museum in Marcilla (l. to r.): Frs. Michael, Ricardo, John, and José Manuel Bengoa, prior.",
"Fr. John with Fra. Juan José in the Plaza Mayor, Madrid."

);
/*for (var i = 0; i < quote_gal.length; ++i) {
document.write("<p>" + quote_gal[i]);
}*/
/////////////////

<!--

ss = new slideshow('ss');
ss.prefetch = 3;
ss.timeout = 7000;

for (var count=1; count <= quote.length; count++){
s = new slide();
s.src = 'spain' + count +'.jpg';
s.link = 'spain' + count +'.jpg';
s.title = count;
s.text = "<p align=center>" + quote[count-1];
ss.add_slide(s);

}
// The following loop sets an attribute for all of the slides.
// This is easier than setting the attributes individually.

for (var j=0; j < ss.slides.length; j++) {

  s = ss.slides[j];
  s.target = "slideshow_popup";
  s.attr = "width=620,height=420,resizable=yes,scrollbars=yes";
}

document.write("<script language=\"JavaScript\" src=\"slideshow.js\" type=\"text/JavaScript\"><\/script>");
document.write("<body><FORM NAME=\"slideshow_form\" ACTION=\"\" METHOD=\"GET\"> ");
document.write("<DIV ID=\"slideshow\"> <DIV ID=\"slideshow_controls\"> ");
document.write("<p>"); 
document.write("  <INPUT TYPE=\"button\" VALUE=\"play\" onClick=\"ss.next();ss.play()\"> ");
document.write("  <INPUT TYPE=\"button\" VALUE=\"stop\" onClick=\"ss.pause()\"> ");
// document.write(" &nbsp; 
 document.write(" <INPUT TYPE=\"button\" VALUE=\"previous\" onClick=\"ss.previous()\"> ");
document.write("  <INPUT TYPE=\"button\" VALUE=\"next\" onClick=\"ss.next()\"> ");
 document.write(" <SELECT ID=\"slideshow_select\" NAME=\"slideshow_select\" ");
document.write("onChange=\"ss.goto_slide(this.selectedIndex)\"> ");
document.write("<OPTION>Welcome to the JavaScript Slideshow");
document.write("  <\/SELECT>");
//document.write("  &nbsp; */


function set_slideshow_select_options(selectlist) {

  selectlist.options.length = 0;

  for (var i = 0; i < ss.slides.length; i++) {
    selectlist.options[i] = new Option();
    selectlist.options[i].text = (i + 1) + '. ' + ss.slides[i].title;
  }

  selectlist.selectedIndex = ss.current;
}

set_slideshow_select_options(document.slideshow_form.slideshow_select);

//-->
document.write("<TABLE width=\"75%\" BORDER=0 align=\"center\" CELLPADDING=0 CELLSPACING=0>");
document.write("<Td><Tr ALIGN=center>");
document.write("<A ID=\"slideshow_image_link\" HREF=\"javascript:ss.hotlink()\" TITLE=\"De Click para Alargar\"><IMG SRC=\"Gallegos\/1a.jpg\" ");
document.write("ALT=\"Slideshow image\" ");
document.write("NAME=\"slideshow_img\" ");
 document.write("WIDTH=450 ID=\"slideshow_img\" ");
 document.write("STYLE=\"filter:progid:DXImageTransform.Microsoft.Fade()\" BORDER=0><\/A>");
 document.write(" <\/Tr>");
 ////Captions
 //document.write("<TD ID=\"slideshow_text\">");
document.write("<Td align=center ID=\"slideshow_text\">");
 //document.write("<p>Bienvenidos! Si usted ve estas palabras es que su \"Buscador\" no soporta el cambio de palabras en la presentacion.");

document.write("<\/Td>");
/////
document.write("<\/TABLE>");
	//document.write("<p align=\"center\"><font color=\"#0000FF\">" + texto[i][0] + "<\/font>");

<!--
// Tell the slideshow which image and text id to change 
if (document.images)
{
  ss.image = document.images.slideshow_img;
  ss.textid = "slideshow_text";

  ss.post_update_hook = function() {
document.slideshow_form.slideshow_select.selectedIndex = ss.current;
}

  ss.update();
  //ss.play();
}

// Display all of the text from the slideshow.
//Esta Linea de abajo solo sirve para que el texto aparesca en la parte de abajo
//
//document.write(ss.get_all_text("<DIV STYLE=\"border-top:1px solid #ddd;padding:6px 0px 16px 0px;\">\n", "<\/DIV>\n"));

// The following function is normally left commented out.
// It is used only to produce the HTML that is copied
// into the NOSCRIPT section below, then it is commented out again.
// The HTML produced will contain all of the slideshow images,
// plus the text for each image.

//document.write("<PRE>" + ss.noscript() + "<" + "/PRE>");

//-->

