
	jQuery(document).ready(function(){

		if(!show_highlight){
			show_highlight=0;
		}
		if(show_highlight!=0){
			jQuery('a.menu').each(function(){
				var $a = jQuery(this);
				if(($a.attr('id') && show_highlight) && parseInt(show_highlight) == parseInt($a.attr('id'))){
					$a.addClass('highlighted_menu');
					if(parseInt(show_highlight) == 4){
						var pos = $a.offset();
						jQuery('#dog_submenu').css({'top':(pos.top+$a.height()+10)+'px','left':pos.left+'px'}).show();
					}else if(parseInt(show_highlight) == 2){
						var pos = $a.offset();
						jQuery('#cat_submenu').css({'top':(pos.top+$a.height()+10)+'px','left':pos.left+'px'}).show();
					}
				}
			}); /* end each() */
		}
		
		jQuery('a.menu').mouseover(function(){
				var $a = jQuery(this);
				if(parseInt($a.attr('id')) == 4){
					jQuery('#cat_submenu').hide();
					
					var pos = $a.offset();
					jQuery('#dog_submenu').css({'top':(pos.top+$a.height()+10)+'px','left':pos.left+'px'}).show();
					
				}else if(parseInt($a.attr('id')) == 2){
					jQuery('#dog_submenu').hide();

					var pos = $a.offset();
					jQuery('#cat_submenu').css({'top':(pos.top+$a.height()+10)+'px','left':pos.left+'px'}).show();
				}else{
					jQuery('#dog_submenu').hide();
					jQuery('#cat_submenu').hide();
				}
			});/* end mouseover event  */
	}); /* end document.ready() */
	
	
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);
}
