Your IP : 216.73.216.61


Current Path : /home/gonzalx/www/plugins/content/jw_sigpro/jw_sigpro/includes/js/
Upload File :
Current File : /home/gonzalx/www/plugins/content/jw_sigpro/jw_sigpro/includes/js/behaviour.js

/**
 * @version    3.8.x
 * @package    Simple Image Gallery Pro
 * @author     JoomlaWorks - https://www.joomlaworks.net
 * @copyright  Copyright (c) 2006 - 2021 JoomlaWorks Ltd. All rights reserved.
 * @license    https://www.joomlaworks.net/license
 */

var SIGProHelper = {

    ieBrowserDetect: function() {
        if (!document.getElementsByTagName) return false;
        if (!document.getElementById) return false;

        var bodyClass = document.getElementsByTagName("body")[0].className;

        var isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;
        var isIE7 = navigator.userAgent.toLowerCase().indexOf('msie 7') != -1;
        var isIE8 = navigator.userAgent.toLowerCase().indexOf('msie 8') != -1;

        if (isIE6) document.getElementsByTagName("body")[0].className = bodyClass + ' sigProIsIE6';
        if (isIE7) document.getElementsByTagName("body")[0].className = bodyClass + ' sigProIsIE7';
        if (isIE8) document.getElementsByTagName("body")[0].className = bodyClass + ' sigProIsIE8';

    },

    loader: function(func) {
        var oldonload = window.onload;
        if (typeof window.onload != 'function') {
            window.onload = func;
        } else {
            window.onload = function() {
                if (oldonload) {
                    oldonload();
                }
                func();
            }
        }
    }

    // END
};

// Initiate
SIGProHelper.loader(SIGProHelper.ieBrowserDetect);