function contentType(sName) {
		if (rEndsWithXML.test(sName)) {
			return "application/xml";
		}
		if (rEndsWithJSON.test(sName)) {
			return sJson;
		}
		return "application/x-octet-stream";
	}
Gets the content type from the given resource name.
@param {string} sName The resource name
@returns {string} The content type