jQuery(document).ready(function(){
 jQuery(function() {
		$("#mousetabs").tabs({
			event: 'mouseover'
		});
	});
  jQuery('#date').datepicker();
  jQuery(".inner").hide();
  jQuery(".tblMore").hide();
  jQuery(".vm").toggle(function(){
/*jQuery(this).parents("div").prev(".inner").show('slow'); */
  jQuery(this).next(".inner").show('slow');
  jQuery(this).css('background-image','url(css/gr_up.png)');
  /*jQuery(this).text("View Less"); 
  jQuery(this).attr("title", "View Less"); */
  },function(){
  jQuery(this).next(".inner").hide('slow');
  jQuery(this).css('background-image','url(css/gr_down.png)');
/*  jQuery(this).text("View More");
  jQuery(this).attr("title", "View More"); */
  });
/* This function shows/hides additional content about organizations */
/*    The template that creates the content (a table of items) is in resources.tpl */
 jQuery(".moreRow").toggle(function(){
  jQuery(this).parent().parent().next(".tblMore").show();
  jQuery(this).css('background-image','url(css/gr_up.png)');
  },function(){
  jQuery(this).parent().parent().next(".tblMore").hide();
  jQuery(this).css('background-image','url(css/gr_down.png)');
  });  
  
  jQuery(".inlineref").mouseover(function() {
	jQuery(this).next(".inner").show('fast');
/*	jQuery(this).next(".inner").css('border','none'); */
	}
   );
  
   jQuery(".inlineref").mouseout(function() {
	 jQuery(this).next(".inner").hide('fast');
	 }
    );
   
  });

