DynAPI.setLibraryPath('/javascripts/lib/')

DynAPI.include('dynapi.api.*')
DynAPI.include('dynapi.event.listeners')
DynAPI.include('dynapi.event.mouse.js')
DynAPI.include('dynapi.ext.inline.js')
DynAPI.include('narchief.event.submenu.js');

var collectiessub, voorouderssub, onderwijssub, archiefbeheersub, organisatiesub;
var oldSubmenu;

//
//
//
DynAPI.onLoad=function() {

blackRoller = new DynLayer('blackTimeRoll',0,30,600,33,'#000000');
DynAPI.document.addChild(blackRoller);

if (currentHeaderTypeText == 'tijdbalkHeaderOther') headerX = 60
else if (currentHeaderTypeText == 'tijdbalkHeaderJaar') headerX = 100

DynAPI.document.all['tijdbalkHeader'].setX(headerX);

if (is.ns4) {
   DynAPI.document.all['tijdbalkHeader'].setY(-10);

   DynAPI.document.all['tijdbalkTitleLayer'].moveTo(60,40);
   DynAPI.document.all['tijdbalkTitleLayer'].setVisible(true);
   DynAPI.document.all['tijdbalkTitleLayer'].setZIndex(10);
}
else {
   DynAPI.document.all['tijdbalkTitleDiv'].setZIndex(10);
}

// set layer width for all divs (with id) or ie4 will set endless width
// divs need to be absolutionally positioned!
if (is.ie4) {
   allDivsWithID = new Array(); y = 0;
   
   for (i=0;i<document.all.tags('div').length;i++) {
   var allDivs = document.all.tags('div');
      if (allDivs[i].id) {
         allDivsWithID[y] = allDivs[i];
         y++;
      }
   }
   if (allDivsWithID!=null) {
      for (i=0; i<allDivsWithID.length; i++) {
         DynAPI.document.all[allDivsWithID[i].id].setWidth(this.getContentWidth,null);
      }
   }

}

}

