/**
 * UTILITIES.JS
 *
 * This file consolidates the JavaScript code dedicated to the 
 *    presentation of the Programming Concepts website.  Assorted 
 *    utilities are collected here.
 *
 * It is important to note that there may be HTML component element
 *    references (tables, colors, components) hardcoded within this
 *    script.  With more time, attention and design, these should be 
 *    removed if possible.
 */


/////////////////////////////////////////////////////////////////////////
//  blending
/////////////////////////////////////////////////////////////////////////

/**
 * Blend a component into the page.
 */
function blendIn( c )
{
   // blend in
   c.filters("blendTrans").apply();
   c.style.visibility = "visible";
   c.filters("blendTrans").play();         
}
      
/**
 * Call for the blending all page transition components.
 */
function blendAll()
{
   // blend
   // commenting out blendin for use with netscape 4.0. Just for now.
   //blendIn(imageOutsourcing);
}

/////////////////////////////////////////////////////////////////////////
//  image management
/////////////////////////////////////////////////////////////////////////

/**
 * Switch an image source to the specified one.
 *
 * @param c     the image component to switch
 * @param image an image object, containing the new source
 */
function toImage( c, image )
{
   // switch to the new image source
   c.src = image.src;
}