window.hpMonitor = new Monitor('hpMonitor');
window.hpMonitor.add(	'searchFocusUpdater',
						function() {
							var d = document.getElementById('tSearchCriteria');
							if(d != null) {
								d.focus();
								window.hpMonitor.remove('searchFocusUpdater');
							}
						},
						300,
						10
					);

function decorateProdCells($cells) {
	var a = $('a', $cells).get(0);

	$cells
		.addClass('prodPointer')
		.click(function(e) {
			e.preventDefault();
			document.location.href = a.href;				
		})
	;
}

$(document).ready(function() {
	var singleTable = false;
	if($('#prodTable').size() == 0) {
		singleTable = true;
	}
	
	$('#prodTable tr,.prodTable tr').each(function() {
		var $tr = $(this);
		
		if(singleTable) {
			decorateProdCells($('td', $tr));
			
		} else {
			decorateProdCells($('.prodLeft', $tr));
			decorateProdCells($('.prodRight', $tr));			
		}
	});
});
