(function ($) {
  Drupal.behaviors.manipulateFormElements = {
    attach: function(context, settings) {
    // give the login form some love
    $('#user-login-form .login-submit-link').click(function(){
    	$('#user-login-form').submit();
    	return false;
    });
    }
  };
  Drupal.behaviors.correctActiveTrails = {
    attach: function(context, settings) {
      // fix menus that don't respect active trail because drupal links are stoopid
    $('#region-menu ul li.active').parents('li').addClass('active-trail');
    }
  };
})(jQuery);
;
// $Id: ruxisa.js $
/*
** we're using the jQuery based javascript, but our design pattern will be
** the Yui object paradigm which is much better at stability and 
** expandability.
*/
var Ticode = (("undefined" == typeof Ticode) || (!Ticode)) ? {} : Ticode;

(
function ($)
{

Ticode.ZoomUp = function ()
{
  /*  
  ******************************************************************
  ** private variables available only to methods of the module.
  */

  /*  
  ** private shorthand variables to comon jQuery parts/utilities
  */

  /*  
  ** private shorthand variable for built jQuery objects. set in init()
  */

  /*  
  ** constants used in this module.
  */
  var imgpopup	= { autoOpen: false
		  , show:     'blind'
		  , width:    480
		  , modal:    true
		  , hide:     'explode'
		  , closeText:''
		  , top:      10
		  , left:     400
		  }
    ;

  /*  
  ** module state:
  */
  var built = { }
    ;

  /*  
  ** these are Dom refrences that won't change, they are set by direct
  ** calls when needed, and then used freely after that.
  */

  /*  
  ** ******************************************************************
  ** private methods available only to other methods of the module.
  */
  var that =
    /*
    ** publicly accessible variables where we store AJAX results by
    ** evaluating valid js pointing to these arrays.
    */
    { translations: [] // Ticode.ZoomUp.translations[]

      /*
      ** public method Ticode.ZoomUp.popZU() -- Method setus up jquery 
      **                                          dialog imageing.
      */
    , popZU: function ()
      {
	var a	  = $(this)
	  , link  = null
	  ;
	link  = $(a).attr('href');

	if (!built[link])
	{
	  var box = $('<div />')
	    , ac  = $('<a />')
	    , img = $('<img />')
	    ;
	  $(img)  .attr('src', link);
	  $(ac)	  .append(img);
	  $(box)  .append(ac);
	  $(box)  .dialog(imgpopup);

	  var popup = function ()
	      {
		$(box).dialog('open');

		return false;
	      }
	    , closer = function ()
	      {
		$(box).dialog('close');

		return false;
	      }
	    ;
	  $(this) .click(popup);
	  $(ac)	  .click(closer);

	  built[link] = 1;
	}
      }
    };
      /*
      ** for finding .attr('style', 'background:#ee9933');
      */
        //attr('style', 'background:#ee9933');

  return that;

}(); // the parens here cause the anonymous func to execute and return

Drupal.behaviors.zoomup =
{
  attach: function(context, settings)
  {
    // first we init the hs and then create other attached behaviors
    //
    $('a.zoomup', context)	.once('zoomup-prep', Ticode.ZoomUp.popZU);
  }
};

}
)(jQuery);
;
// $Id: ace_980.js $
/*
** we're using the jQuery based javascript, but our design pattern will be
** the Yui object paradigm which is much better at stability and 
** expandability.
*/
var Ticode = (("undefined" == typeof Ticode) || (!Ticode)) ? {} : Ticode;

(
function ($)
{

Ticode.Ace980 = function ()
{
  /*  
  ******************************************************************
  ** private variables available only to methods of the module.
  */
  var menu_hide_time = 25
    ;

  /*  
  ** private shorthand variables to comon jQuery parts/utilities
  */

  /*  
  ** private shorthand variable for built jQuery objects. set in init()
  */

  /*  
  ** constants used in this module.
  */

  /*  
  ** module state:
  */

  /*  
  ** these are Dom refrences that won't change, they are set by direct
  ** calls when needed, and then used freely after that.
  */

  /*  
  ** ******************************************************************
  ** private methods available only to other methods of the module.
  */

  /*
  ** private method show_sub_timed() -- Calls the show_sub() function 
  **					after a time has passed.
  */
  var show_sub_timed  = function ()
    {
      // This time is the wait time before re-enabling the submenu 
      // display.
      //
      setTimeout('Ticode.Ace980.show_sub()', menu_hide_time);
    };

  var that =
    /*
    ** publicly accessible variables where we store AJAX results by
    ** evaluating valid js pointing to these arrays.
    */
    { translations: [] // Ticode.Ace980.translations[]

      /*
      ** public method Ticode.Ace980.hide_sub() - Sets the submenu to be
      **					  hidden from view.
      */
    , hide_sub  : function ()
      {
	$('#block-superfish-1').removeClass('sf-ace-show-submenu');
      }

      /*
      ** public method Ticode.Ace980.show_sub() - Sets the submenu to be
      **					  displayed.
      */
    , show_sub  : function ()
      {
	$('#block-superfish-1').addClass('sf-ace-show-submenu');
      }

      /*
      ** public method Ticode.Ace980.sf_onload_fix() --	Performs a fix
      **						on superfish
      **    menus, that fixes a wrong display for all the submenus at 
      **    the same time on page loading time.
      */
    , sf_onload_fix: function ( )
      {
	// Superfish module uses JS code to hide all secondary menus,
	// but in the first 1-2 seconds, the JS hasn't run yet, so all
	// menus are visible.
	// In this case, our solution is to have css rules that
	// will hide all submenus on page load (before JS actually 
	// happens), and our fix will add a class that will make the
	// active one visible.
	//
	Ticode.Ace980.show_sub();
      }

      /*
      ** public method Ticode.Ace980.sf_nochild_fix() -	Performs a fix
      **						on superfish
      **    menus, that fixes the hovering on elements with no children.
      */
    , sf_nochild_fix: function ( )
      {
	// Yet another fix... if the user is in a page with suboptions,
	// then the submenu will display by default, the suboptions for
	// that 'current' page.  Hovering over other option will display
	// the suboptions for that option.  That's okay, problem is that
	// if we hover over an item with no suboptions, the default will
	// display, and this will confuse the user.
	// Our fix in this case is to add an action for the hover event
	// that will hide the submenu.
	//
	$(this).mouseenter(Ticode.Ace980.hide_sub);
	$(this).mouseleave(show_sub_timed);
      }

      /*
      ** public method Ticode.Ace980.startTabs() -- Converts html markup
      **					    to jq ui tabs.
      */
    , startTabs: function ( )
      {
	$(this).tabs();
      }
    };
      /*
      ** for finding .attr('style', 'background:#ee9933');
      */
        //attr('style', 'background:#ee9933');

  return that;

}(); // the parens here cause the anonymous func to execute and return

Drupal.behaviors.Ace980 =
{
  attach: function(context, settings)
  {
    $('#block-superfish-1', context).
			    once('ace-done', Ticode.Ace980.sf_onload_fix);

    $('.sf-depth-1.sf-no-children', context).
			   once('ace-done', Ticode.Ace980.sf_nochild_fix);

    $('div.jq-ui-tabs', context).
				once('ace-done', Ticode.Ace980.startTabs);
  }
};

}
)(jQuery);
;

