
// Slide the brands up or down

var brandlistvalue = 'click to open';

$j(document).ready( function()
{
	//let all a elements lose their focus
	//$j("a").focus( function() { $j("a").blur(); } );
	$j("area").focus( function() { $j("area").blur(); } );
	
	// check for selected value
	brandlistvalue = $j("ul.brandlist > li[a.selected]").text();
	$j("#brandlistbutton").text( brandlistvalue );
	
	$j("#brandlistbutton").click().toggle( function()
	{
		$j("#brands").SlideInDown(500);
		$j("#brandlistbutton").text('click to close');	
	}, function()
	{
		$j("#brands").SlideOutDown(500);
		$j("#brandlistbutton").text( brandlistvalue );	
	});
		
});