// 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 (
"The church of St. John the Baptist, Milpitas",
"The entrance procession",
"The banner for Milpitas fraternity is carried into the church",
"Fr. John Gruben (r) was among the concelebrants",
"Bishop Patrick McGrath of the diocese of San Jose was the principal celebrant",
"Bishop McGrath",
"The procession reaches the altar . . .",
". . . and the Bishop greets the assembled secular fraternity members and their families",
"The pastor, Fr. Normal Segovia, welcomes the congregation",
"Fr. John (l) with Bishop McGrath",
"Blessing of the concelebrants . . .",
". . . and the congregation",
"The choir of St. John Parish",
"The opening prayer",
"The reading . . .",
". . . and the responsorial",

"The gifts are brought to the altar",

"The Bishop distributes Communion",

"Bishop McGrath expresses his gratitude to the secular institutes for their contributions to the Diocese . . .",

". . . and gives the final blessing",

"The assembled secular institutes of the Diocese of San Jose",

"The recessional",

"The Milpitas Secular Augustinian Recollects and AR Sisters",

"The SARs with Fr. John",

"Fr. John speaks with the fraternity after the liturgy",

"Meeting of the SARs with Fr. John and Sr. Divina Caabay, AR ",
"SAR president, Demetrio Nitafan (r)",

"Milpitas SARs"
); 
/*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 = count +'.jpg';
s.link =  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>");

//-->

