
//set "Find It Fast" DIV height to equal tallest body DIV
setFastFindHeight();


// Set the Fast Find Nav Height to match tallest wrapper DIV
function setFastFindHeight() {
	// get the heights
	var box = new Array("c1","c2","c3"); //list of DIV ids
	var h = 0;
		for(x=0;x<box.length;x++){
			if( document.getElementById(box[x]) ){
				div = document.getElementById(box[x]);
				test_h = div.offsetHeight;
				if( test_h > h ){ h = test_h; }
			}
	}
	
	// set the height of all divs to the tallest
		if( document.getElementById('bodyRightCol') ){
			div = document.getElementById('bodyRightCol');
			div.style.height = (h - 40) +"px";
			div.style.scrollHeight = h +"px";
		}
	}


	
/*************************************************************
 *				UTILITIY FUNCTIONS
*************************************************************/
//get object handle function from Prototype 1.4
function $() {
  var elements = new Array();

  for (var i = 0; i < arguments.length; i++) {
    var element = arguments[i];
    if (typeof element == 'string')
      element = document.getElementById(element);

    if (arguments.length == 1)
      return element;

    elements.push(element);
  }

  return elements;
}

//cross platform event registrar
function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, false); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}
