// JavaScript Document

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!-- Original:  Mike W. (mikew@dvol.com) -->
<!-- Web Site:  http://www.dvol.com/~users/mikew -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

function jumpPage(url) {
  parent.location.href = url;
}


<!--

myPix1 = new Array("/images/main/man1_web.jpg",
"/images/main/man2_web.jpg"
 )
 imgCt = myPix1.length 
 
 function choosePic1() {
  if (document.images) {
   randomNum = Math.floor((Math.random() * imgCt))
   document.myPicture1.src = myPix1[randomNum]
  }
 } 
 
myPix2 = new Array("/images/main/group1_web.jpg",
"/images/main/group2_web.jpg"
 )
 imgCt = myPix2.length 
 
 function choosePic2() {
  if (document.images) {
   randomNum = Math.floor((Math.random() * imgCt))
   document.myPicture2.src = myPix2[randomNum]
  }
 } 

myPix3 = new Array("/images/main/woman1_web.jpg",
"/images/main/woman2_web.jpg"
 )
 imgCt = myPix3.length 
 
 function choosePic3() {
  if (document.images) {
   randomNum = Math.floor((Math.random() * imgCt))
   document.myPicture3.src = myPix3[randomNum]
  }
 } 

/**
 * global array for setPointer() function
 */
var markedRow = new Array();


/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 * @param   object   the background color
 *
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, thePointerColor, theNormalBgColor)
{
    var theCells = null;

    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    var currentColor = null;
    var newColor     = null;
    // Opera does not return valid values with getAttribute
    if (typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {
        currentColor = theCells[0].getAttribute('bgcolor');
        newColor     = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
                     ? theNormalBgColor
                     : thePointerColor;
        for (var c = 0; c < rowCellsCnt; c++) {
            theCells[c].setAttribute('bgcolor', newColor, 0);
        } // end for
    }
    else {
        currentColor = theCells[0].style.backgroundColor;
        newColor     = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
                     ? theNormalBgColor
                     : thePointerColor;
        for (var c = 0; c < rowCellsCnt; c++) {
            theCells[c].style.backgroundColor = newColor;
        }
    }

    return true;
} // end of setPointer() function
//-->
