/*
 * Custom JS for CCTA
 *
 * @author Benjamin Lowenstein, 4/2009
 */

function CCTA(){
  this.superfish();
};

// create dropdown menus with jquery superfish plugin
CCTA.prototype.superfish = function(){
  var options = {};
  options = {
    //hoverClass:    'sfHover',          // the class applied to hovered list items 
    delay:         250,                // the delay in milliseconds that the mouse can remain outside a submenu without it closing 
    animation:     {opacity:'show'},   // an object equivalent to first parameter of jQuery’s .animate() method 
    speed:         'fast',           // speed of the animation. Equivalent to second parameter of jQuery’s .animate() method 
    autoArrows:    true,               // if true, arrow mark-up generated automatically = cleaner source code at expense of initialisation performance 
    dropShadows:   false,               // completely disable drop shadows by setting this to false 
    disableHI:     true              // set to true to disable hoverIntent detection 
  };

  $("#primaryNav").superfish(options); 
};

$(document).ready(function(){
  new CCTA();
  
  // check and load ajax page
  if($("#rpr")){
  	
  	$("#rpr").load("/ws_rpr.php");
  	
  }
});
