// Framework Version: 1.0.14
/*
 * Insert framework functions using jQuery
 */

$(document).ready(function() {
    
	$(".YellClick").click(function() {
		var classList = jQuery(this).attr('class').split(/\s+/);
		var areThereAnyEvent = false;
		for (var i = 0; i < classList.length; ++i) {
			// search events to be called
			var matches = /yellevt_(.*)/.exec(classList[i]);
			if (matches != null) {
				var event = eval(matches[1]);
				areThereAnyEvent |= yellPrepareTrackLinkEvent(event);
			}
		}

		// If there are any event to be sended ...
		if (areThereAnyEvent) {
			// ... send it
		    yellSendTrackLinks(this);
		}

	});
	
	// Send page events, if there are any
	yellSendPageEvents();
});
