var Calendar =
{
    baseUrl: null,
    init: function()
    {
        Calendar.setLinks();
    },
    setLinks: function()
    {
        if (isSeoUrl) {
            baseUrl = '../';
        } else {
            baseUrl = '';
        }
        $(".calLink").click(function(){
            $.ajax({
                type: "GET",
                url: baseUrl + "Toolkit/Events/Ajax.php",
                data: $(this).attr('rel'),
                success: function(msg){
                    $("#eventCalendar").html( msg);
                    Calendar.setLinks();
                }
            });
            return false;
        });
    }
};

$(document).ready(Calendar.init);
