old_contents: Ti.include('/ttyl/utils/constants.js');
  Ti.include('/ttyl/utils/json2.js');
  //Ti.include('/ttyl/utils/jquery-1.6.2.min.js')
  Ti.include('/ttyl/utils/sha1.js');
  Ti.include('/ttyl/utils/utils.js');
  
  Ti.include('/ttyl/db/db.js');
  
  Ti.include('/ttyl/home/home.js');
  Ti.include('/ttyl/friends/friends.js');
  Ti.include('/ttyl/login/login.js');
  Ti.include('/ttyl/feed/feed.js');
  Ti.include('/ttyl/profile/profile.js');
  Ti.include('/ttyl/setting/setting.js');
  
  // create tab group
  // var loginTabGroup = Titanium.UI.createTabGroup();
  var tabGroup = Titanium.UI.createTabGroup();
  
  login.setOnLoggedInCallback(function(e) {	
  	login.onLoading();
  	Titanium.API.info(' setOnLoggedInCallback : ' + JSON.stringify(e));
  	if(e.type == "login") {
  		e.uid = Titanium.Facebook.uid;
  	}
  	if (e.uid) {
  		_db.onLoggedIn(e, function() {
  			login.win.close();
  			tabGroup.open();
  			_utils.hideLoading();
  		});		
  	}	
  });
  
  if(Titanium.Facebook.loggedIn) {
  	Titanium.Facebook.fireEvent("login");
  }
  
  tabGroup.addTab(_home.tab);
  feed.init();
  tabGroup.addTab(feed.tab);
  profile = new Profile();
  tabGroup.addTab(profile.tab);
  tabGroup.addTab(_friends.tab);
  setting = new Setting();
  tabGroup.addTab(setting.tab);
  // open login window
  // loginTabGroup.open();
  login.win.open();
  
new_contents: Ti.include('/ttyl/utils/constants.js');
  //Ti.include('/ttyl/utils/json2.js');
  //Ti.include('/ttyl/utils/jquery-1.6.2.min.js')
  Ti.include('/ttyl/utils/sha1.js');
  Ti.include('/ttyl/utils/utils.js');
  
  Ti.include('/ttyl/db/db.js');
  
  Ti.include('/ttyl/home/home.js');
  Ti.include('/ttyl/friends/friends.js');
  Ti.include('/ttyl/login/login.js');
  Ti.include('/ttyl/feed/feed.js');
  Ti.include('/ttyl/profile/profile.js');
  Ti.include('/ttyl/setting/setting.js');
  
  // create tab group
  // var loginTabGroup = Titanium.UI.createTabGroup();
  var tabGroup = Titanium.UI.createTabGroup();
  
  login.setOnLoggedInCallback(function(e) {	
  	login.onLoading();
  	Titanium.API.info(' setOnLoggedInCallback : ' + JSON.stringify(e));
  	if(e.type == "login") {
  		e.uid = Titanium.Facebook.uid;
  	}
  	if (e.uid) {
  		_db.onLoggedIn(e, function() {
  			login.win.close();
  			tabGroup.open();
  			_utils.hideLoading();
  		});		
  	}	
  });
  
  if(Titanium.Facebook.loggedIn) {
  	Titanium.Facebook.fireEvent("login");
  }
  
  tabGroup.addTab(_home.tab);
  feed.init();
  tabGroup.addTab(feed.tab);
  profile = new Profile();
  tabGroup.addTab(profile.tab);
  tabGroup.addTab(_friends.tab);
  setting = new Setting();
  tabGroup.addTab(setting.tab);
  // open login window
  // loginTabGroup.open();
  login.win.open();
  
subject: Remove JSON2