/// <reference path="jquery-1.3.2.js" />

//OVERLAY
//$(function() {
$(document).ready(function() {

    // if the function argument is given to overlay,
    // it is assumed to be the onBeforeLoad event listener
$("#MenuSub a[rel], #mapresult[rel], .more a[rel], #ToolsUser a[rel]").overlay({

        top: 30,
        expose: {
            color: '#000000',
            loadSpeed: 300,
            opacity: 0.75
        },
        onBeforeLoad: function() {

            // grab wrapper element inside content
            var wrap = this.getContent().find(".contentWrap");

            // load the page specified in the trigger
            wrap.load(this.getTrigger().attr("href"));
        }

    });
});
//OVERLAY -END
