// $Id: agua.js,v 1.1.2.1 2009/12/11 18:31:02 nomonstersinme Exp $

Drupal.behaviors.aguaBehavior = function(context) {
  /**
   * Superfish Menus
   * http://users.tpg.com.au/j_birch/plugins/superfish/
   * To use this feature please add the superfish.js to the js directory
   */
  jQuery('#navigation ul').superfish({
    animation: { opacity: 'show'},
    easing: 'swing',
    speed: 250,
    autoArrows:  false,
    dropShadows: false /* Needed for IE */
  });

  /**
   * Forum Comment Link Dialog Box
   * When clicking the link icon in forum comments,
   * this code triggers a dialog box with a link
   * to the comment for easy access to copy it.
   */
  jQuery(".copy-comment").click(function() {
      prompt('Link to this comment:', this.href);
  });


	borderSize();
	
	function borderSize(){
		if($('.sidebar').height() < $('#main').height()){
			var height = $('#main').height();
			$('.sidebar').css('height', height);
		}
	}
};
