var submenu = {
  
  SPEED : 15,
  DELAY : 50,
  
  targets : new Array(),
  divs : new Array(),
  max_heights : new Array(),
  timeouts : new Array(),
  
  expand : function( event ) {
    var target = event.target ? event.target : event.srcElement;
    if( !this.in_array( target, this.targets ) ) {
      var index = this.targets.length;
      this.targets[index] = target;
    }
    
    if( target.nextSibling ) {
      var div = this.divs[index] = target.nextSibling;
      if( div.style.display == 'none' ) {
        div.style.display = 'block';
        this.max_heights[index] = div.offsetHeight;
        div.style.height = '0px';
        div.style.overflow = 'hidden';
        submenu.grow( index );
      }
    }
    return true;
  },
  
  grow : function( index ) {
    var div = this.divs[index];
    if( div ) {
      if( parseInt( div.style.height ) < this.max_heights[index] ) {
        var next_height = parseInt( div.style.height ) + this.SPEED;
        if( next_height < this.max_heights[index] )
          div.style.height = next_height + 'px';
        else
          div.style.height = this.max_heights[index] + 'px';
        this.timeouts[index] = setTimeout( 'submenu.grow( ' + index + ' )', this.DELAY );
      } else {
        clearTimeout( this.timeouts[index] );
      }
    }
    return true;
  },
  
  collapse : function( index ) {
    var div = this.divs[index];
    if( div ) {
      if( parseInt( div.style.height ) > 0 ) {
        var next_height = parseInt( div.style.height ) - this.SPEED;
        if( next_height > 0 )
          div.style.height = next_height + 'px';
        else
          div.style.height = '0px';
        this.timeouts[index] = setTimeout( 'submenu.collapse( ' + index + ' )', this.DELAY );
      } else {
        this.divs[index].style.display = 'none';
        this.divs[index].style.height = this.max_heights[index] + 'px';
        clearTimeout( this.timeouts[index] );
        this.targets[index] = '';
        this.divs[index] = '';
        this.max_heights[index] = '';
        this.timeouts[index] = '';
      }
    }
    return true;
  },
  
  in_array : function( element, array ) {
    var length = array.length;
    for( var i = 0; i < length; i++ ) {
      if( array[i] == element )
        return true;
    }
    return false;
  },
  
  retract : function() {
    var length = this.targets.length;
    for( var i = 0; i < length; i++ ) {
      clearTimeout( this.timeouts[i] );
      this.collapse( i );
    }
  }
  
}

function settab() {
if (document.all)
{
document.getElementById("filler").style.height = document.body.clientHeight - document.getElementById("page_content").offsetHeight - 185;
}
}
function lalpila() {
if (bepMid.length > 0)
document.getElementById(bepMid).className = 'selected';
if (bepSMid.length > 0) {
document.getElementById(bepSMid).className = 'selected';
document.getElementById(bepSMid).onmouseover='';
}
if (bepSSMid.length > 0)
document.getElementById(bepSSMid).className = 'selected1';
if (bepDTE.length > 0) {
document.getElementById(bepDTE).style.display = 'block';
}
}