Hi Joey, I might have forgotten a curly brace in my snippet, since everything worked out fine after I changed the order, so lib.leftmenu is now declared before lib.left Thanks a lot for your help :) Rgds Jacob