$(document).ready(function(){

    $('#Footer .cms a').each(function(){

        var link = this;
        var dialog = '';

        var href = $(this).attr('href');
        if (href && !href.match(/@/) && href != '/') {


            $.get(href, null, function(data, status, response){

                dialog = $(data);

                dialog.dialog({
                    modal : true,
                    autoOpen : false,
                    width : 600,
                    title : $(link).attr('title')
                });

                $(link).click(function(event){

                    dialog.dialog('open');
                    event.preventDefault();
                });
            });
        }
    });


});
