/* =============================================================================
* iFadeImg v1.2 -- DOM Fade Script
*
* In this file, create the iFade object arrays for each iFade in the site. Then,
* build a function iFadeCalls() that makes calls to the function iFadeImgSetup()
* for each image rotation with intermediate fade effects. iFadeImgSetup() takes
* two arguments, the ID of the image to rotate and the variable name of the JS
* array for that iFade.
*
* Developed by Puna Tannehill
* Revised by Jake Kronika <jkronika@imagescape.com>
* For Imaginary Landscape, LLC <www.imagescape.com>
* Copyright (c) 2005-2006
*
* Last updated 2006.11.03
*
* Reuse or modification without permission is prohibited.
*
* ==============================================================================
*
* Use one of the following formats for objects in the JS array. There can be any
* combination of the formats, and each rotated image will be built accordingly.
* If a caption DIV is not specified for one object, but one had been specified
* previously, that previous caption DIV will be reused.
*
* No Link:
* { image   : 'images/sunset-pan.jpg',
*   alt     : 'Google Search' }
*
* Link to open in same window:
* { image   : 'images/sunset-pan.jpg',
*   alt     : 'Google Search',
*   href    : 'http://www.google.com' }
*
* Link to open in a targeted window:
* { image   : 'images/sunset-pan.jpg',
*   alt     : 'Google Search',
*   href    : 'http://www.google.com',
*   target  : '_blank' }
*
* No Link, with caption in element with ID = htmlDiv:
* { image   : 'images/NW.jpg',
*   alt     : 'Imaginary Landscape, LLC',
*    html    : 'Lets change it up a bit',
*    htmlDiv : 'iFadeImg1HTML' }
*
* Link to open in same window, with caption in element with ID = htmlDiv:
* { image   : 'images/NW.jpg',
*    alt     : 'Imaginary Landscape, LLC',
*    href    : 'http://www.imagescape.com',
*    html    : 'Lets change it up a bit',
*    htmlDiv : 'iFadeImg1HTML' }
*
* Link to open in targeted window, with caption in element with ID = htmlDiv:
* { image   : 'images/NW.jpg',
*   alt     : 'Imaginary Landscape, LLC',
*   href    : 'http://www.imagescape.com',
*   target  : '_blank',
*   html    : 'Lets change it up a bit',
*   htmlDiv : 'iFadeImg1HTML' }
*
* Assuming an array named hm_ifade is created, and is to be used for an image
* with the ID of 'hm-ifade', the resulting iFadeCalls function would look like
* the following:
*
* var iFadeCalls = function() {
*   iFadeImgSetup('hm-ifade', hm_ifade);
* };
*
* In this file, also, set the following:
* initPause:   the initial pause before fading the image displayed when the page
*              loads
* subseqPause: the subsequent pause before continuing fading to the next image
* loop:        should the iFade return to the first image after the last one?
* --------------------------------------------------------------------------- */

////////////////////////////////////////////////////////////////////////////////
// iFade Rotation Definitions
// --------------------------
var ifade_array = [
  { 'image' : '/images/home/ifade/ifade01.jpg',
    'alt'   : 'Pic 01' },
  { 'image' : '/images/home/ifade/ifade02.jpg',
    'alt'   : 'Pic 02' },
  { 'image' : '/images/home/ifade/ifade03.jpg',
    'alt'   : 'Pic 03' },
  { 'image' : '/images/home/ifade/ifade04.jpg',
    'alt'   : 'Pic 04' }
];

////////////////////////////////////////////////////////////////////////////////
// Setup for iFade Rotations
// -------------------------
if (iFade && typeof iFade == 'function') {
  iFadeCalls = function() {
    ifade_slideshow = new iFade('ifade_main', ifade_array, {
      loop          : true,
      initial_pause : 7,
      subseq_pause  : 5
    });
  };
}

/*
new iFade('ifade', ifadeArray, {
  'loop' : true,
  'initial_pause' : 7,
  'subseq_pause' : 5
});
*/