 log = new Log logSettings
 
 
-# Map of resolution property names.
+# Array of resolution property names.
 resolutions = [
   'previewURL'
   'webformatURL'

]


isValidId = (id) -> !isNaN(id) && parseInt(id) >= 0


isValidResolution = (res) -> humanResolutions.indexOf(res) > -1


getResolutionCode = (res) -> humanResolutions.indexOf res



]


# Array of human-readable resolution names.
humanResolutions = [
  'tiny'
  'small'
