Make sure this line:
$("#dk-main-menu").smartmenus("itemActivate", $("#dk-main-menu").find("a.current").eq( - 1));
is called on document ready – e.g. put it right after this:
$('#dk-main-menu').smartmenus({
subMenusSubOffsetX: 1,
subMenusSubOffsetY: -8,
markCurrentItem: true,
markCurrentTree: true,
hideOnClick: false
});
and it should work.
Cheers!