 Cloud = require("ti.cloud")
+pageNumber  = 1
+pageSection = 0
 if Ti.Platform.name is 'iPhone OS'
   style = Ti.UI.iPhone.ActivityIndicatorStyle.DARK
 else

$.activityIndicator.style = style
$.RightNavButton.text = String.fromCharCode("0xe10e")
$.RightNavButton.addEventListener 'click', (e) ->
  dummyRow = $.UI.create 'TableViewRow',
    classes:'dummyRow'
  $.tableview.setData [dummyRow]
  
  statusesQuery (statuses) ->
    createOnTapInfo statuses
  
  

  return shopDataDetailController.move($.tabOne,shopData)    

createOnTapInfo = (statuses) ->
  moment = require('momentmin')
  momentja = require('momentja')
  section = $.UI.create 'TableViewSection',
    title:'dumy'
    classes:'onTapSection'
  
  for status in statuses
    shopData =
