if (typeof HD.community == "undefined" || !HD.community) {
	HD.community = {
		CONTENT_TYPES : {
			BLOG : "blog",
			PHOTO : "photo",
			VIDEO : "video",
			BOTH : "both"
		},
		
		getType : function(contentType) {
			if(contentType.indexOf(" ") < 0) {
				return contentType;
			}
			
			var subTypes = contentType.split(" ");
			return subTypes[1];
		},
		
		isPhoto : function(contentType) {
			return this.getType(contentType) == this.CONTENT_TYPES.PHOTO;
		},
		
		isVideo : function(contentType) {
			return this.getType(contentType) == this.CONTENT_TYPES.VIDEO;
		},
		
		isBlog : function(contentType) {
			return this.getType(contentType) == this.CONTENT_TYPES.BLOG;
		},
		
		isBoth : function(contentType) {
			return this.getType(contentType) == this.CONTENT_TYPES.BOTH;
		}
	};
}

HD.register('hd_community', 'HD.community', {version: "1.0", build: "1"});