(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: drop-down.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.DropDown = 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.
  */

  /*  
  ** 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.
  */
  var that =
    /*
    ** publicly accessible variables where we store AJAX results by
    ** evaluating valid js pointing to these arrays.
    */
    { translations: [] // Ticode.DropDown.translations[]

      /*
      ** public method Ticode.DropDown.dropRed() -- Method moves input
      **					    button to bottom of
      **    containing div to make it look like a it drops down and around
      **    the bottom.
      */
    , dropRed: function ()
      {
	var $button = $(this)
	  , $trail  = $('<div class="trail">&nbsp;</div>' )
	  , $hook   = $('<div class="hook">&nbsp;</div>'  )
	  , $holder = null
	  , title   = null
	  , $link   = $('<span class="link" />')
	  , $shadow =
		$('<span class="shadow element-hidden-for-readers"></span>')
	  ;

	$($button).after($trail);
	$($button).wrapInner($link);

	$link = $($button).children().first();

	title = $($link).html();
	$($shadow).html(title);
	$($shadow).html($($link).html());
	$($link).after($shadow);

	$($button).wrap('<div class="drop-red"></div>');
	$($button).after($hook);

	$holder = $($button).closest('div.content');
	
	$($holder).addClass('drop-red-holder');
      }
    };
      /*
      ** 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.dropdown =
{
  attach: function(context, settings)
  {
    // first we init the hs and then create other attached behaviors
    //
    $('input.drop-down-red',  context)	.once('drop-down-prep', 
					      Ticode.DropDown.dropRed);
    $('a.drop-down-red',      context)  .once('drop-down-prep', 
					      Ticode.DropDown.dropRed);

    $('span.drop-down-red a', context)	.once('drop-down-prep', 
					      Ticode.DropDown.moveRed);
  }
};

}
)(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: superior960.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.Superior960 = function ()
{
  /*  
  ******************************************************************
  ** private variables available only to methods of the module.
  */

  /*  
  ** private shorthand variables to page elements
  */

  /*  
  ** private shorthand variable for built jQuery objects. set in init()
  */
  var grandfather = null
    , fathers	  = null
    , kids	  = null
    , selected	  = null
    ;

  /*  
  ** constants used in this module.
  */
  var openers = []
    ;

  /*  
  ** 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.
  */
  var clearSelection = function ( )
    {
      $(this).removeClass('selected');
    };

  var addSelection = function ( )
    {
      $(this).addClass('selected');
    };

  var openAction  = function (e)
    {
      if ((e) && (e.preventDefaults | false))
      {
	e.preventDefault();
      }
      var li  = $(this).closest('li')
	;
      $(fathers)  .removeClass('selected');
      $(li)	  .each(addSelection);

      $('.display-box')		      .hide();
      $(openers[$(this).attr('id')])  .show();
    };

  var setOpeners = function ()
    {
      var id  = $(this).attr('id')
	;
      openers[id] = '#' + id + '-box';

      $(this).click(openAction);

      if ($(this).hasClass('start-visible'))
      {
	selected = this;
      }
    };

  var catalog_load_default = function ( nid )
    {
      $('a#catalog-' + nid + '-link img').click();
    };

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

      /*
      ** public method Ticode.Superior960.switchmenu_init() --
      **
      **    Initialize the switching boxes that will hide and show based 
      **    on user selection in activator buttons, mainly for the history 
      **    page but may apply to other pages.
      */
    , switchmenu_init: function ( )
      {
	grandfather = $(this)	      .children('ul');
	fathers	    = $(grandfather)  .children('li');
	kids	    = $(fathers)      .children('a');

	$(kids)	    .each(setOpeners);
	$(selected) .each(openAction);
      }

      /*
      ** public method Ticode.Superior960.switchbox_init() --
      **
      **    Setup links that will display hidden boxes.  This is a nice
      **    effect for a menu to contents in the same page.
      */
    , switchbox_init : function ()
      {
	var clicker_id	= '#' + $(this).attr('id')
	  , box_id	= clicker_id + '-box'
	  , def_flag	= $(box_id).hasClass('show-default')
	  , boxes_class	= '.display-box'
	  ;
	
	// Function for showing the selected box.  It will also hide
	// all other boxes.
	//
	var show_fun  = function ( )
	  {
	    $(boxes_class).hide();
	    $(box_id).show();
	  };

	// Attach event to clicker link
	//
	$(clicker_id).click(show_fun);

	// If this box doesn't have the default open mark, hide it as
	// initial state.
	//
	if (!def_flag)
	{
	  $(box_id).hide();
	}
      }

      /*
      ** public method Ticode.Superior960.catalog_load_fs_default() -
      **
      **    On Fashion Seal Catalog page, this will preload one of the
      **    catalogs on the viewing area.
      */
    , catalog_load_fs_default : function ()
      {
	// Load scrubs by default
	//
	catalog_load_default(255);
      }

      /*
      ** public method Ticode.Superior960.catalog_load_ia_default() -
      **
      **    On Image Apparel Catalog page, this will preload one of the
      **    catalogs on the viewing area.
      */
    , catalog_load_ia_default : function ()
      {
	// err.. no default catalog.
	//
	catalog_load_default(255);
      }
    };
      /*
      ** 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.Superior960 =
{
  attach: function(context, settings)
  {
    $('#year-selector', context)

		    .once('superior', Ticode.Superior960.switchmenu_init);

    $('.box-opener', context)

		    .once('superior', Ticode.Superior960.switchbox_init);
  }
};

}
)(jQuery);
;
// $Id: niceControls.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.NiceControls = function ()
{
  /*  
  ******************************************************************
  ** private variables available only to methods of the module.
  */

  /*  
  ** private shorthand variables to page elements
  */
  var $message	= null
    ;

  /*  
  ** 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.
  */

  var startMessageToggle  = function ( )
    {
      $($message) .slideToggle('slow').delay('5000').slideToggle('slow');
    };

  var pauseToggle = function ( )
    {
      $(this) .stop('true', 'true');
    };

  var startToggle = function ( )
    {
      $(this) .slideToggle('slow');
    };

  /*  
  ** ******************************************************************
  ** 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.NiceControls.translations[]

      /*
      ** public method Ticode.NiceControls.unobtrusive -- Makes a message 
      **						  disappear at first
      **    then slowly appear and disappear, pausing while hovered.  Also
      **    adds a control to re-show the message.
      */
    , unobtrusive: function ( )
      {
	var $show = $('<a class="message-control" title="show messages">' +
			'Show Messages</a>')
	  ;
	$message  = this

	$($message) .hide()
		    .hover(pauseToggle, startToggle);

	$($show)  .click(startMessageToggle);
	$('body') .append($show);
	$($show)  .click();
      }

    };
      /*
      ** 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.NiceControls =
{
  attach: function(context, settings)
  {
    /*
    ** no shadow
    **
    $('.blue-front-menu li a', 
      context)		      	.once('superior',
				      Ticode.NiceControls.shadow_link);
    */
    $('#block-delta-blocks-messages', context)

		    .once('niceControls', Ticode.NiceControls.unobtrusive);
  }
};

}
)(jQuery);
;

