/* Provides a method that will tick an internal tracked event off. Very simple for now. */
/* requires jQuery */

/*
  name: name of file, document, video, etc.
  action: 0=view, 1=download
  resource: 0=document, 1=image, 2=video, 3=file
  resourceId: the id of the resource
  subresource: doctype, imagetype, [video?], or file extension/filetype?
*/

var _teBaseUrl = "/track/event"; 

function internalTrackEvent(name, action, resource, resourceId, subresource) {
     //   $.ajaxSetup();
	jQuery.get(_teBaseUrl,{'name':name,'action':action,'resource':resource,'resourceid':resourceId,'subresource':subresource}, function(data) {
//		alert(data);
        });
}

