	var current_href = document.location.href;
	var current_menu = null;
	$(document).ready(function() {
		$('.menu_tab').each(function(){
		   var menu_href = $(this).find("a:first").attr('href');
		   if(menu_href!='#'){
		      if(current_href.indexOf(menu_href)!=-1){
		         current_menu = this;
		         $(this).addClass('menu_tab_active');
		      };
		   }

			$(this).mouseover(function(evt){
					$('.menu_tab_active').removeClass('menu_tab_active');
  					$(this).addClass('menu_tab_active');
  					evt.stopPropagation();
			}).click(function(){
				document.location.href = $('a:first',$(this)).attr('href');
			});
			

		});
		$('body').mouseover(function(){
			if($('.menu_tab_active').size()){
				$('.menu_tab_active').removeClass('menu_tab_active');
			}
			if(current_menu){
				$(current_menu).addClass('menu_tab_active');
			}
		});
		$('#menu').mouseover(function(evt){evt.stopPropagation();});

	});
function twitterCallback2(the_array){
	var the_text = the_array[0]['text'];
	if(the_array[0]['in_reply_to_screen_name']){
		the_text = the_text.replace('@'+the_array[0]['in_reply_to_screen_name'], '');
		the_text = "<a href=\"http://twitter.com/"+the_array[0]['in_reply_to_screen_name']+"\" class=\"selected\">@"+the_array[0]['in_reply_to_screen_name']+"</a> "+the_text;
		
	}
	jQuery('#tweet_container').html(the_text);
}
