js/lightbox.js
function getAttr(obj, attr) {
    if (!obj || !isset(obj)) {
      return false;
    }
    var ret;
    if (obj.getAttribute) {
      ret = obj.getAttribute(attr);
    }
    else
      if (obj.getAttributeNode) {
        ret = obj.getAttributeNode(attr).value;
      }
    if (isset(ret) && ret !== '') {
      return ret;
    }
    return false;
  }
function getAttr(obj, attr) {
    if (!obj || !isset(obj)) {
      return false;
    }
    var ret;
    if (obj.getAttribute) {
      ret = obj.getAttribute(attr);
    }
    else
      if (obj.getAttributeNode) {
        ret = obj.getAttributeNode(attr).value;
      }
    if (isset(ret) && ret !== '') {
      return ret;
    }
    return false;
  }
function getAttr ( obj , attr ) { if ( ! obj || ! isset ( obj ) ) { return false ; } var ret ; if ( obj . getAttribute ) { ret = obj . getAttribute ( attr ) ; } else if ( obj . getAttributeNode ) { ret = obj . getAttributeNode ( attr ) . value ; } if ( isset ( ret ) && ret !== '' ) { return ret ; } return false ; }
Get attribute value cross-browser. Returns the attribute as string if found,
otherwise returns false
@param  {Object} obj
@param  {String} attr
@return {boolean || string}
Get attribute value cross - browser . Returns the attribute as string if found otherwise returns false