(function($) {
    $.fn.myBox = function(options) {
        var opts = $.extend({}, $.fn.myBox.defaults, options);
        return this.each(function() {
            var o = $.meta ? $.extend({}, opts, anchor.data()) : opts;
            $(this).click(function() {
                $.fn.myBox.Open($(this).attr('href'));
                return false;
            });
        });
    }
    $.fn.myBox.Open = function (href) {
        document.getElementById('myBoxContainer').style.display='block';
        document.getElementById('inner-container').style.display='block';
        document.getElementById('fade').style.display='block';
        $('#iframe-container').append('<iframe scrolling="auto" hspace="0" frameborder="0" src="' + href + '" />');
        $('#close-x, #fade').click(function() {
            $.fn.myBox.Close();
            return false;
        });
    }
    $.fn.myBox.Close = function () {
        document.getElementById('myBoxContainer').style.display='none';
        document.getElementById('fade').style.display='none';
        $('#myBoxContainer iframe').remove();
    }
})(jQuery);
jQuery.fn.myBox.defaults = {
    
}