// -----------------------------------------------------------------------------------
// spaceFiller(/*image ID*/, /*Div id 1*/, /*div id 2*/);
// -----------------------------------------------------------------------------------
// Created     : 4/7/04
// Revision    : 4/7/04
// Version     : 1.00
// Authors     : Justin Jakubowicz 
// Name        : spaceFiller
// Usage       : NA
// Description :
//    Compare the offsetheight of two div layers and adjust the image height 
//    to fill the difference.
// -----------------------------------------------------------------------------------

function spaceFiller(imgId,compId1,compId2)
{ 
    var img = document.getElementById(imgId);
    var left = document.getElementById(compId1);
    var right = document.getElementById(compId2);
    img.height= ((right.offsetHeight - left.offsetHeight)>0)? (right.offsetHeight - left.offsetHeight):0;

}


// -----------------------------------------------------------------------------------
// End of spaceFiller()
// -----------------------------------------------------------------------------------


// -----------------------------------------------------------------------------------
// moveWith(/*moved element*/, /*move element*/);
// -----------------------------------------------------------------------------------
// Created     : 4/7/04
// Revision    : 4/7/04
// Version     : 1.00
// Authors     : Justin Jakubowicz 
// Name        : bumpElement
// Usage       : NA
// Description :
//   Used this function to reposition an object, if another object has changed its posiiton
//   i.e. header div layer changes top from 10px to 40px and menu div on the right needs to be
//   adjusted equally it will be moved too. 
// -----------------------------------------------------------------------------------

function moveWith(movedId,moveId)
{
	var moved = document.getElementById(movedId);
	var move = document.getElementById(moveId);
	move.style.top = (moved.offsetTop)+"px";
}


// -----------------------------------------------------------------------------------
// End of moveWith()
// -----------------------------------------------------------------------------------
