/**
 * LiveUnsigned.com
 * tr_link: jQuery plugin to convert table rows to highlighted links
 * based on the first <a href=".."> tag found
 *
 * to invoke: 
 * $('#upcoming tr').tr_link();
 *
 * Only tested with jQuery 1.3.2
 * Tested in FF3, IE7, IE6 and works
 *
 * Copyright 2009 Rob Searles. http://www.robsearles.com
 */
$.fn.tr_link = function() {
	$(this).hover(
			function() { 
				$(this).addClass("highlight"); 
				$(this).bind("click", function() {
					document.location.href = $(this).children().children("a").attr("href");
				});
			},
			function() { 
				$(this).removeClass("highlight");
				$(this).unbind("click"); 
			}
		);
};
