<!--
    var divCache = null;


// <-----   SHIM CODE
/**
 * @author Christopher Davis
 * 
 * createShim creates an iframe shim for IE6 divs.  It takes an argument
 *  of type div and then creates an iframe as a child object.  The iframe 
 *  is given a zIndex of one lower than the parent object.  This hides 
 *  selects in ie6 div menus.
 */


function createShim(odiv)
{
        var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
        if( IE6 == true)
        {
                // Create the element
                var shim = document.createElement('iframe');
                
                // Style the iframe and set to the same measurments as the div
                shim.id = odiv.id + "_shim";
                shim.src = "javascript:false";
                shim.style.position = "absolute";
                shim.style.top = "0px";
                shim.style.left = "-1 px";
                shim.style.width = odiv.offsetWidth;
                shim.style.height = odiv.offsetHeight;
                shim.style.zIndex = odiv.style.zIndex - 1;
                shim.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';

                
                
                // Append the element to the parent object
                odiv.appendChild(shim);
                
        }
}

// End Create Shim
//  ----->


        function toggleDivs(e)
        {
            var eventObject = getClickedObject(this);                   
 
                       
            if (divCache == null)
            {
                divCache = new Array();
                allDivArr = document.getElementsByTagName('DIV');
                for(i=0;i<allDivArr.length;i++)
                {
                    currId = allDivArr[i].id;
                    if (currId.substring(0,4) == "roll") // JUBELC - this should be "roll" not "roll_"
                    {  
                        divCache.push(allDivArr[i]);                        
                    }
                }
            }


            triggerId = eventObject.id;
                        
                        // Need to change the following line of code to make it work
                        targetId = triggerId.substring(8, triggerId.length);
                        
            
            for(i=0;i<divCache.length;i++)
            {
              if(divCache[i].id != targetId)
                divCache[i].style.display='none';
            }

           
        myDiv = document.getElementById(targetId);
        myDiv.style.display=(myDiv.style.display=='none')?'block':'none';

// <-----   SHIM CODE
                
                // Fix for not being able to create the shim to
                // the appropriate size to begin with
                var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
                if( IE6 == true)
                {               
                        odiv = document.getElementById(targetId);
                        shim = document.getElementById(targetId + '_shim');
                        shim.style.width = odiv.offsetWidth;
                        shim.style.height = odiv.offsetHeight; 
                }
                
                
//  ----->              
        }

function getClickedObject (obj) {
  var clickedElement = null;
  if (typeof obj != undefined && obj.tagName) {
     //this IS defined, so the browser is following the standards
      return obj;
  } else {
      //this isn't defined, which means IE is in play
      try {
        //get the element from the window event instead
        return window.event.srcElement;
      } catch (e){
      }
  }
}

function initRollovers()
{
        allAArr = document.getElementsByTagName('A');
    for(i=0;i<allAArr.length;i++)
    {
        currId = allAArr[i].id;
        if (currId.substring(0,13) == "trigger_roll_")
        {
                addEvent(allAArr[i], 'click', toggleDivs, true);
                                //addEvent(allAArr[i], 'mouseover', toggleDivs, true);
                //addEvent(allAArr[i], 'mouseout', toggleDivs, true);
                                //addEvent(document.getElementById(currId.substring(8)), 'mouseout', toggleDivs, true);

// <-----   SHIM CODE                           
                                // Add Shims for ie6                            
                                createShim(document.getElementById(currId.substring(8)));
//  ----->
        }
    }
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

function addEvent(obj, evType, fn, useCapture){
  if (obj.addEventListener) {
    obj.addEventListener(evType, fn, useCapture);
    return true;
  } else if (obj.attachEvent){
    var r = obj.attachEvent("on"+evType, fn);
    return r;
  } else {
    //alert('Handler could not be attached');
    return false;
  }
}

addLoadEvent(initRollovers);


-->
