/* Feature Boxes */
$(function() {	
   $('div.hp-hover-box,div.hp-hover-box-wide').hover(
      function () {
   		$(this).find(".hp-hover-box-hover,.hp-hover-box-wide-hover").show(); 
      }, 
      function () {
   		$(this).find(".hp-hover-box-hover,.hp-hover-box-wide-hover").hide(); 
   	}
   );
});


/* HP Specific Cycling */
$(function() {	
   $("#cycle-1, #cycle-2, #cycle-3").bind("click", function() {
      id = $(this).attr("id");

      //stop any running cycles      
      manual1Box.stopCycle();    
      manual2Box.stopCycle(); 
      manual3Box.stopCycle();  
      
      //remove highlight
      $(".hp-cycle-control a").removeClass("on");  
      $(".hp-cycle-control div").removeClass();        

      //add highlight
      $(this).addClass("on");
      $(".hp-cycle-control div").addClass(id);        

      //hide default text show correct text
      $('.hp-feature-text div').hide();
      $('.hp-feature-text .' + id).fadeIn("fast");
      
      //turn on cycler
      switch (id) {
         case "cycle-1":
           manual1Box.startWipeCycle();
           break;
         case "cycle-2":
           manual2Box.startWipeCycle();
           break;
         case "cycle-3":
           manual3Box.startWipeCycle();
           break;
      } 
              
      return false;
   });
});




