/*==============================================================================

name:       puako.js

version:    00.01.060117

purpose:    Puako Website Javascript

package:    org.puako

exports:

imports:

history:    Mon Jun 19, 2006 10:30:00 (Giavaneers - LBM) created.

notes:
                  This program was created by Giavaneers
        and is the confidential and proprietary product of ImaageSnap, Inc.
      Any unauthorized use, reproduction or transfer is strictly prohibited.

                     COPYRIGHT 2006 BY GIAVANEERS, INC.
      (Subject to limited distribution and restricted disclosure only).
                           All rights reserved.

==============================================================================*/
/*------------------------------------------------------------------------------

@name       loadImages - load images
                                                                              */
                                                                             /**
            Load images.

@return     void

@history    Mon Jun 19, 2006 10:30:00 (Giavaneers - LBM) created.

@notes
                                                                              */
//------------------------------------------------------------------------------
function loadImages() 
{
                                       // refresh the images                  //
   
   avoidCacheParam  = "reqId=" + (Math.random() * 9999);
   elemImageTopLeft = document.getElementById("communityContentImageTopLeft");
   
   if (elemImageTopLeft != null)
   {
      elemImageTopLeft.style.backgroundImage =
         "url(http://cfht.hawaii.edu/webcams/gemdome/gemdome.jpg"
            + "?" + avoidCacheParam + ")";
   }
   elemImageTopRight = document.getElementById("communityContentImageTopRight");
   
   if (elemImageTopRight != null)
   {
      elemImageTopRight.style.backgroundImage =
         "url(http://camera1.jupiterfoundation.org/axis-cgi/jpg/image.cgi"
            + "?resolution=320x240&camera=1&compression=25"
            + "&" + avoidCacheParam + ")";
   }
                                       // restart the refresh timer           //
   self.setTimeout("loadImages()", 120000);
}

