
function bmRollover( id, cnt ) {

    bmInstruct.style.display = "none";

    for (var x = 1; x <= cnt; x++)
    {
        document.getElementById('bm'+x).style.display = "none";
        document.getElementById('imgID'+x).className='bmPhotoNone';
    }

    document.getElementById('bm'+id).style.display = "block";
    document.getElementById('imgID'+id).className='bmPhotoSelected';

}

function popup( obj, id ) { 
	
	with( obj.style ) {
		display = "block";
	}
	
	animateHeight(popupDiv, 200);
	
}

function unpop( obj ) { 

    obj.style.display = "none"; 
    //obj.style.height = "10px";

}


function animateHeight(id, height) {
   height = parseFloat(height); 
   el = document.getElementById(id); 
   var step_size = 10; 
   var h_size1 = el.offsetHeight; 
   if (h_size1 < height) {
      if (h_size1 < height - step_size) {
         el.style.height = (h_size1 + step_size) + "px"; 
         timeout_id = setTimeout("animateHeight('" + id + "','" + height + "')", 1); 
         }
      else {
         el.style.height = height + "px"; 
         el.style.overflow = 'auto'; 
         }
      }
   else if(h_size1 > height) {
      if (h_size1 > height + step_size) {
         el.style.height = (h_size1 - step_size) + "px"; 
         timeout_id = setTimeout("animateHeight('" + id + "'," + height + ")", 1); 
         }
      else {
         el.style.height = height + "px"; 
         }
      }
   }


