            // All this to prevent conflicts with other Javascript libraries
            // esp. Recite        
            ki = {} // set up ki namespace;
            ki.$ = jQuery.noConflict(true); // remove jQuery from global namespace

            // now use ki.$ instead of $ for jQuery...


            // Set up superfish for the top menu
            // This aids the user by not loosing the sub menu if their mouse
            // wanders briefly outside the menu
            ki.$(document).ready(function(){
                ki.$('.header .ft .nav ul').superfish({
                    delay:       800,
                    animation:   {opacity:'show', height:'show'},
                    speed:       'fast',
                    autoArrows:  false,
                    dropShadows: false
                });
            });

            ki.$(document).ready(function() {
                ki.$(".accordion").accordion({
                    active:      false,
                    collapsible: true,
                    header:      '.title',
                    icons:       {
                                     'header':         'accordion-icon-plus',
                                     'headerSelected': 'accordion-icon-minus'
                                 }
                });
            });

            ki.$(document).ready(function() {
                ki.$('.dialog').dialog({
                    autoOpen:   false,
                    modal:      true,
                    draggable:  false,
                    resizable:  false,
                    show:       'fade',
                    hide:       'fade',
                    minWidth:   540
                });
                ki.$('#map-large').dialog('option', 'minWidth', 600);
                ki.$('#map-large').dialog('option', 'minHeight', 500);
            });

