function minWidth(min) {
  var width;
  if (window.innerWidth)
    width = window.innerWidth;
  else if (document.body && document.body.offsetWidth)
    width = document.getElementsByTagName('html')[0].offsetWidth;
  if (width - 201 > min) {
    return width - 201;
  }
  return min;
}

function minHeight(min) {
  var height;
  if (window.innerHeight)
    height = window.innerHeight;
  else if (document.body && document.body.offsetHeight)
    height = document.getElementsByTagName('html')[0].offsetHeight;
  if (height - 174 > min) {
    return height - 174;
  }
  return min;
}

function checkBrowserName(name) {
  var agent = navigator.userAgent.toLowerCase();
  if (agent.indexOf(name.toLowerCase()) > -1) {
    return true;
  }
  return false;
}


