// vim: sw=4:ts=4:nu:nospell
/**
 * HyperCities Global Configuration
 *
 * @author    Chen-Kuei Lee
 * @copyright (c) 2008, by HyperCities Tech Team
 * @date      2009-06-18
 * @version   $Id$
 *
 */
 
HyperCities.config = function() {

	var _id = "[HyperCities.config] ";

	return {
		// Zoomlevel that switch between between city and collection mode
		ZOOM_THRESHOLD: 4,

		// Path for user upload files
		UPLOAD_AUDIO_PATH: "uploadedAudio",
		UPLOAD_IMAGE_PATH: "uploadedImage",
		UPLOAD_KML_PATH: "uploadedKml",

		// Array of city ID that should not show on the map
		HIDDEN_CITIES: ["8", "11"],
        
        // User
        HC_USER_ADMIN: 17,

		// Path for Google Analytics Tracker
		EVENT_TRACKER_ENABLED: true,
		EVENT_VIEW_COLLECTION: "/collection/view/",
		EVENT_LIST_COLLECTION: "/collection/list/",
		EVENT_DETAIL_COLLECTION: "/collection/detail/",
		EVENT_VIEW_OBJECT: "/object/view/",
		EVENT_DETAIL_OBJECT: "/object/detail/",
		EVENT_VIEW_MAP: "/map/view/",
		EVENT_VIEW_CITY: "/city/",

		// Mode of system status
		MODE_DEFAULT: 0,
		MODE_MAP_LIST: 1,
		MODE_COLLECTION_LIST: 2,
		MODE_NARRATIVE: 3,
		MODE_ADD_OBJECT: 4,
		MODE_UPDATE_OBJECT: 5,

		// Root Collection Id & Name
		HC_COLLECTIONS: { 
			PUBLIC   : {id : 1, name: "Public Collections"},
			EARTH    : {id : 2, name: "3D Collections"},
			CLASSES  : {id : 3, name: "Classes"},
			FEATURED : {id : 4, name: "Featured Collections"},
			PARTNER  : {id : 5, name: "Partner Collections"},
			USER     : {id : null, name: "My Collections"}
		},

		// Object State
		HC_OBJECT_PUBLIC: 1,
		HC_OBJECT_PRIVATE: 2, // Private, but show to public
		HC_OBJECT_HIDDEN: 3,  // Private, but show only to member
		HC_OBJECT_FLAGGED: 4, // Being flagged inappropriate
		HC_OBJECT_DELETED: 5, // Being deleted by user

		//access right
		HC_ACCESS_VIEW: 1,
		HC_ACCESS_EDIT: 2,
		HC_ACCESS_VIEW_EDIT: 3,
		HC_ACCESS_VIEW_DELETE: 5,
		HC_ACCESS_VIEW_EDIT_DELETE: 7
	};

}(); // end of Object
// end of file
