// ************************************************************************* Handlers

	
// JQuery Document Ready Function 

function handleDocumentReady() {
	initMainNav();
}

function handleFocus() {
  if (!aFormDefaultValues[this.id]) {
    aFormDefaultValues[this.id] = this.value;
  }
  if (this.value == aFormDefaultValues[this.id]) {
    this.value = '';
    this.style.color = active_color;
  }
}

function handleBlur() {
if (this.value == '') {
  this.style.color = inactive_color;
  this.value = aFormDefaultValues[this.id];
  }
}



// *************************************************************** Helper Methods
	

			
// **************************** Initialize

    
// Init Form Styles

function initFormStyles() {
  $("input.default-value").css("color", inactive_color);
  $("input.default-value").focus(handleFocus);
  $("input.default-value").blur(handleBlur);
}

function initMainNav() {
  $('ul.sf-menu').supersubs({ 
      minWidth:    9,      // minimum width of sub-menus in em units 
      maxWidth:    14,   // maximum width of sub-menus in em units 
      extraWidth:  1 
    }).superfish({
      hoverClass:  'sfHover',                     
      pathClass:   'overideThisToUse',
      speed:       'fast',           
      delay:       500,                     
      autoArrows:  false,                         
      dropShadows: true
  });
}


// ******************************************* Utilities (Create a general js file?)


// ***************************** Variable Declarations


// Forms
var aFormDefaultValues = new Array();
var active_color = '#333333'; // Color of user provided text
var inactive_color = '#C7C7C7'; // Color of default text

$(document).ready(handleDocumentReady);