// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;

// Duration of crossfade (seconds)
var crossFadeDuration = 3;

// Specify the image files
var Picture = new Array();

// to add more images, just continue
// the pattern, adding to the array below
Picture[0] = '/frontfotos/2.jpg';
Picture[1] = '/frontfotos/3.jpg';
Picture[2] = '/frontfotos/4.jpg';
Picture[3] = '/frontfotos/5.jpg';
Picture[4] = '/frontfotos/6.jpg';
Picture[5] = '/frontfotos/7.jpg';
Picture[6] = '/frontfotos/8.jpg';
Picture[7] = '/frontfotos/9.jpg';

var SlideShowTimer;
var NumberOfPictures = Picture.length;
var PreLoad = new Array();

for (i = 0; i < NumberOfPictures; i++) {
  PreLoad[i] = new Image();
  PreLoad[i].src = Picture[i];
}

function runSlideShow()
{
  if (document.all) {
    document.images.SlideShow.style.filter="blendTrans(duration=2)";
    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
    document.images.SlideShow.filters.blendTrans.Apply();
  }
  var j = 0;
  document.images.SlideShow.src = PreLoad[j].src;
  if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
  }
  j = j + 1;
  if (j > (NumberOfPictures - 1)) j = 0;
  SlideShowTimer = setTimeout('runSlideShow()', slideShowSpeed);
}

function word_of_the_day()
{
  clearTimeout(SlideShowTimer);

  var title = document.getElementById("dynamic-content-title");
  title.style.width = "409px"
  title.style.background = "purple";
  title.style.textAlign = "right";
  title.style.paddingRight = "5px";

  title.innerHTML = "<div style=\"display:inline;float:left;padding-left:5px;\"><a target=\"mapwin\" style=\"color:#fff;text-decoration:none;font-size:80%;\" href=\"http://www.google.com/maps/ms?ie=UTF8&msa=0&msid=106230879206065012570.00046285cfb0ead03527e&z=17\">click here for a full page map</a></div><a style=\"color:#fff;text-decoration:none;font-size:80%;\" href=\"javascript:close_me()\">[x]</a>";  

  var dynamic_content = document.getElementById("dynamic-content");
  dynamic_content.style.background = "#fff";
  dynamic_content.style.border = "thin solid purple";

  dynamic_content.innerHTML = "<div style=\"width:300px; margin:0; padding:0;margin-left:auto; margin-right:auto;\"><object type=\"application/x-shockwave-flash\" data=\"http://wotd.transparent.com/rss/widget_spanish_l2.swf\" height=\"235\" width=\"300\" align=\"\"><param name=\"movie\" value=\"http://wotd.transparent.com/rss/widget_spanish_l2.swf\" align=\"\"><param name=\"quality\" value=\"high\"><param name=\"bgcolor\" value=\"#ffffff\"><param name=\"allowScriptAccess\" value=\"always\"></object><div style=\"background:url(http://www.transparent.com/widgets/images/shadow-all-l.png) no-repeat; FONT-SIZE: 9px; font-weight:bold; margin:0px; padding:0; font-family:verdana; height:18px; line-height:18px; text-indent:0; border-width:0; margin-top:-5px;\"><div style=\"float:right; margin-left:15px; margin-right:23px;\"><a href=\"http://www.transparent.com/languagepages/spanish/spanish.htm\" target=\"_parent\" style=\"COLOR: #004078; text-decoration:none;\">Learn more Spanish >></a></div><div style=\"margin-left:17px;\"><a href=\"http://www.transparent.com/wotd/today/spanish.htm\" target=\"_parent\" style=\"color:#ffffff; text-decoration:none;\">Get this widget</a></div></div></div>";

}

/* eof */
