/* 
*  Author:  David Gailey
*  File name: cmHelper.js
*
*  provides functions to throw coremetrics tags
*  			
*  REQUIRES jquery 1.3.2 +   
* 
*/

	$(document).ready(function(){
		try{
			//creates an event handler on elements with class of ".cm_element"
			//uses rel and rev attributes to hold "elementID" and "elementCategory" parameters
			//cmCreatePageElementTag( "elementID", "elementCategory");
			$('.cm_element').click(function(event){
				try
				{
					cmCreatePageElementTag($(this).attr('rel'),$(this).attr('rev'));
				}catch(e){}
				//try{console.info($(this).attr('rel') + ' - ' + $(this).attr('rev'));}catch(e){}
				//event.preventDefault();
			});
		}catch(e){};
	});