// requires jQuery

$.fn.sitemap = function(el) {
    var topMenuAll;
    var $map = $($(this).attr('href'));
    $(this).click( function () { $map.toggle(); return false; });
    $(this).mouseover(function(){ clearTimeout(topMenuAll); });
    $map.mouseover(function(){ clearTimeout(topMenuAll); });
    $(this).mouseout(function(){ topMenuAll = setTimeout ( function(){ $map.hide(); }, 1000); });
    $map.mouseout(function(){ topMenuAll = setTimeout ( function(){ $map.hide(); }, 1000); });
};