function arendusprojektid_hookup_generic_navi(B, A, C) {
    ($A(B)).each(function (D) {
        Event.observe(D, "click", function (F) {
            Event.stop(F);
            var E = Event.findElement(F, "a");
            new Ajax.Updater(A, E.readAttribute("href") + "/ajax", {
                method: "get",
                onComplete: C,
                evalScripts: true
            })
        })
    })
}
function arendusprojektid_hookup_panel_navi(A) {
    arendusprojektid_hookup_generic_navi($$("#develLeftPane ul.subnavi a"), $("develLeftPane"), arendusprojektid_hookup_panel_navi);
    if (A != true) {
        //GUnload();
        if (EditableText != undefined) {
            ($$("#develLeftPane span.editable_small")).each(function (B) {
                new EditableText(B)
            })
        }
        if (EditableTextMultiline != undefined) {
            ($$("#develLeftPane span.editable_big")).each(function (B) {
                new EditableTextMultiline(B)
            })
        }
        if (EditableImage != undefined) {
            ($$("#develLeftPane img.editable_img")).each(function (B) {
                new EditableImage(B)
            })
        }
        if (myLightbox != undefined) {
            myLightbox.updateImageList()
        }
    }
}
Event.observe(window, "load", function () {
    arendusprojektid_hookup_panel_navi(true)
});
Event.observe(window, "unload", function () {
    //GUnload()
});
