/**
 * @package ONW DropDown Menus
 */
 
window.addEvent('domready', function()
{
    var drops = $$('.dDown');
   
    drops.each(function(item)
    {
        //we get the ul.dropdown child instead of the parent of .dDown
        var actbut = $(item.get('id').replace(/dropdown/,'page_item_')),
            ul = item.getElement('ul.dropdown'),
            cords = actbut.getCoordinates();
       
        //we slide the ul element instead
        ul.set('slide',{link:'cancel',transition:'sine:in:out'}).slide('hide');
       
        actbut.addEvents(
        {
            'mouseenter': function(){ ul.slide('in') },
            'mouseleave': function(){ ul.slide('out') }
        });
       
        item.addEvents(
        {
            'mouseenter': function(){ ul.slide('in') },
            'mouseleave': function(){ ul.slide('out') }
        });
       
        //you also don't need to build a Hash to get the coordinates
        //note that we set the style of the .dDown element itself, not its parent
        item.setStyles({
            position:'absolute',
            left:cords.left,
            top:cords.top + cords.height
        });
$$('body').addEvent('load',function(){
        item.setStyles({
            position:'absolute',
            left:cords.left,
            top:cords.top + cords.height
        });
       });
  });
});