$(document).ready(function() {
    $("map area").each(function(idx) {
        $(this).hover(
            function() {
                $("div.map").addClass($(this).attr("class"));
            },
            function() {
                $("div.map").removeClass($(this).attr("class"));
            }
        ).click(function() {
            $("ul.map").accordion("activate", "#" + $(this).attr("class"));
            return false;
        });
    });
    $("ul.map").accordion({
        active: false,
        autoHeight: false,
        header: 'h2',
        alwaysOpen: false
    });
    $("ul.map h2").mouseover(function() {
        $(this).css("cursor", "pointer");
    });

    return;

    $("ul.societies").accordion({
        active: false,
        autoHeight: false,
        animated: false,
        header: 'div.header',
        alwaysOpen: false
    });
    $("ul.societies div.header").mouseover(function() {
        $(this).css("cursor", "pointer");
    });
    $("ul.societies a").each(function(idx) {
        $(this).click(function() {
            window.open(this.href);
            return false;
        });
    })

});
