//Copyright (c) 2008, Omnicognic LLC.
//All rights reserved.
//Written by Conrad Sollitt.
//Software License Agreement (BSD License)
//See full version of InfoFind Web Tools for comments and full license.

//Page Object
var ThisPage = new Object();

//Add HTML for SlideShow
ThisPage.AddSlideShow = function() {
    InfoFind.HTML.Element.Show("DivSlideShow");
}

//Show the SlideShow
ThisPage.ShowSlideShow = function() {
    var e = new Object();
    e.target = InfoFind.HTML.ByID("Image1");
    InfoFind.SlideShow.Show(e);
}

//OnLoad function
ThisPage.OnLoad = function() {
    Environment.DetermineBrowser();
    if (Environment.IsSupported()) {
        InfoFind.SlideShow.PageOverlayBackgroundColor = "Blue";
        ThisPage.AddSlideShow();
    }
}
                
//Global Code that executes once the Page loads.
InfoFind.HTML.AddEvent(window, "load", ThisPage.OnLoad);
