var select_category = null;

$(document).ready(function() { 
	$('table.blueStripe table td').addClass('plain');
	$('table.stripeMe tr:odd').find('td').addClass('odd');
	
	//$('table.stats td:even').addClass('right');
	
	//to highlite top navigation 
	$('a.toplevel:contains("Related Links")').addClass('highlite');
	
	
	select_category = $("select#select_category");			
	
	select_category.change ( function ()
		{
			if ( select_category.val () == "" ) return;
			else if (  select_category.val () == "all" ){
				var url = "/related_links/";
				window.location.replace ( url );
			}
			else{
				var url = "/related_links/category/" + select_category.val () + "/";
				window.location.replace ( url );
			}
		}
	);

});

