/*
* softcall 0.0.45 - jQuery Plugin
* http://www.tiquy.com/projects/softcall/
* Copyright (c) 2009 Carlos Martinez
* Dual licensed under the MIT and GPL licenses
*/
(function($) {

    $.softcall = function(options) {
        return $.softcall.impl.init(options);
    };
    $.fn.softcall = function(options) {
        return $.softcall.impl.init(options);
    };
    $.fn.softcall = function(options) {
        return $.softcall.impl.init(options);
    };
    $.softcall.defaults = {
        anchorSelector: '.navigation a'
    };
    $.softcall.impl = {
        opts: null,
        init: function(options) {
            this.opts = $.extend({}, $.softcall.defaults, options);
            
            
            var zzz = this.opts.anchorSelector;
            $(this.opts.anchorSelector).click(function(event) {
                $.ajax({
                    type: "GET",
                    url: $(this).attr('href'),
                    success: function(html) {
                        $('body').html(html);
                        $.softcall(zzz);
                    }

                });
                event.preventDefault();
            });
        }
    };
})(jQuery);

