$().ready(function() {
	/* Extend the link from a to conpleted td
	   (it woud be very difficult to make the A same dimension as td and keep the vertical-align)
	*/
	jQuery('td').each(function (i, cell) {
		//consider only the chartkit-cells

		tdClasses = jQuery(cell).attr('class').split(' ');
		
		jQuery.each( tdClasses, function(index, cssClass){

			if (cssClass.substr(0,12) == 'chartkitcell') {

				aTag = jQuery(cell).children('a')[0];
				
				if (aTag) {
					
					//open link in A when clicking on td
					jQuery(cell).bind('click', function() {
						 window.location = jQuery(cell).children('a').attr('href');
					});
					
					//simulate hover on A when hovering
					jQuery(cell).hover(
						function () {
							jQuery(cell).children('a').addClass('hover');
						},
						function () {
							jQuery(cell).children('a').removeClass('hover');
						}
					);
					
					
				}
			
			}
		});
		

	});
	
});
