/** * iBox trunk (Build 1210) * For more info & download: http://www.ibegin.com/labs/ibox/ * Created as a part of the iBegin Labs Project - http://www.ibegin.com/labs/ * For licensing please see readme.html (MIT Open Source License) */ var iBox = function() { var _pub = { // label for the close link close_label: 'Close', // show iframed content in the parent window // this *does not* work with #containers inherit_frames: false, // how fast to fade in the overlay/ibox (this is each step in ms) fade_in_speed: 300, fade_out_speed: 300, // our attribute identifier for our iBox elements attribute_name: 'rel', // tags to hide when we show our box tags_to_hide: ['embed', 'object'], // default width of the box (when displaying html only) // height is calculated automatically default_width: 450, // Session id/Base => Settings needed for xmlhttps request SessionId: 0, Base: '', // public version number version_number: 'trunk', // internal build number build_number: '1210', // browser checks is_opera: navigator.userAgent.indexOf('Opera/9') != -1, is_ie: navigator.userAgent.indexOf("MSIE ") != -1, is_ie6: false /*@cc_on || @_jscript_version < 5.7 @*/, is_firefox: navigator.appName == "Netscape" && navigator.userAgent.indexOf("Gecko") != -1 && navigator.userAgent.indexOf("Netscape") == -1, is_mac: navigator.userAgent.indexOf('Macintosh') != -1, // url for including images/external files base_url: '', /** * Updates the base_url variable. * @param {String} path Relative or absolute path to this file. */ setPath: function(path) { _pub.base_url = path; }, /** * Checks a container for specified tags containing rel="ibox" * @param {Object} container * @param {String} tag_name */ checkTags: function(container, tag_name) { if (!container) var container = document.body; if (!tag_name) var tag_name = 'a'; var els = container.getElementsByTagName(tag_name); for (var i=0; i