jQuery(document).ready(function($){
    var bApp=navigator.appName;
        
        /* navigation keyboard accessibility */
        $('#navigation a').click(function(){
	  if(bApp=="Microsoft Internet Explorer"){
	   return;
	  }
        }).focus(function(){
	  if(bApp=="Microsoft Internet Explorer"){
	   return;
	  }
		$(this).css('text-decoration','underline');
		$(this).parents('ul').eq(0).addClass('over');
		$(this).parent('li').find('ul').eq(0).addClass('over');
        }).blur(function(){
	  if(bApp=="Microsoft Internet Explorer"){
	   return;
	  }
		$(this).css('text-decoration','none');
		$(this).parents('ul').eq(0).removeClass('over');
		$(this).parent('li').find('ul').eq(0).removeClass('over');
        });
        
        /* nav on */
        $('#navigation > ul > li:not(.spacer) > a').hover(function(){
		$(this).parent().parent().find('> li').removeClass('current');
		$(this).parent().addClass('current');
        },function(){
        
        });
        
        /* tabs */
        $('div.tabbedContainer').each(function(){
		var cont = $(this);
		cont.find('ul.anchors li:first-child').addClass('tabs-selected');
		cont.find('ul.anchors li a').click(function(){
			cont.find('ul.anchors li').removeClass('tabs-selected');
			$(this).parent('li').addClass('tabs-selected');
		        
			cont.find('>div:visible').hide();
	    var	re = /([_\-\w]+$)/i;
	    $('#' + re.exec($(this).attr('href'))[1]).show();
		        
			return false;
		});
        });

});
