// Profile tabs 
var tab_masks = new Array();


function collapseBox(id, container, dopen, dclose, group){
  var box = $(id);
  if (!box){
    return;
  }
  

      
  var c = document.getElementsByClassName("c", box);
  if (c.length > 0 && !c[0].blinding){
    c[0].blinding = true;
    if (c[0].style.display == "none"){
      Effect.BlindDown(c[0], {
        afterFinish: function(){
          c[0].blinding = false;
        },
        duration: dopen
      });
      container.parentNode.className = "bOpen";

    } else {
      Effect.BlindUp(c[0], {
        afterFinish: function(){
          c[0].blinding = false; 
        },
        duration: dclose
      });
      container.parentNode.className = "bShut";
    }
  }
  return false;
}


