   $(document).ready(function(){
      $("a.fancybox").fancybox({
         'speedIn' : 600,
         'speedOut' : 200,
         'overlayShow' : true,
         'onClosed' : function() {
            parent.location.reload(true);
         }
      });
      

      //Button functions for vertical scroller on home page
      function mycarousel_initCallback(carousel)
   {
       // Disable autoscrolling if the user clicks the prev or next button.
       carousel.buttonNext.bind('click', function() {
           carousel.startAuto(0);
       });

       carousel.buttonPrev.bind('click', function() {
           carousel.startAuto(0);
       });

       // Pause autoscrolling if the user moves with the cursor over the clip.
       carousel.clip.hover(function() {
           carousel.stopAuto();
       }, function() {
           carousel.startAuto();
       });
   };
      
      //Scroll content on home page vertical
      $('#scroll').jcarousel({
           vertical: true,
           auto: 3,
           wrap: 'last',
           initCallback: mycarousel_initCallback 
       });
       
       //Scroll content on jobs page horizontal
      $('#items').jcarousel();
      
      //Give tables Zebra stripes
      $(function() {
           $("table.manage-users tr:nth-child(odd)").addClass("striped");
           $("table.manage-articles tr:nth-child(odd)").addClass("striped");
           $("table.manage-jobs tr:nth-child(odd)").addClass("striped");
           $("table.manage-category tr:nth-child(odd)").addClass("striped");
           $("table.manage-tags tr:nth-child(odd)").addClass("striped");
         });
         
       //make links slide from under buddy avatar
        $('.buddy-container-exist').hover(function() {
           $(this).find('.buddy-menu').animate({bottom:'0px'}, {queue:false, duration:200});
               }, function() {
                  $(this).find('.buddy-menu').animate({bottom:'21px'}, {queue:false, duration:200});
            });
        
        //step description scroll
        $('.step-one').stop().hover(function(){
       	 $('.step-one-info').css("display", "block");
        }, function() {
       	 $('.step-one-info').css("display", "none");
        });
        
        $('.step-two').stop().hover(function(){
       	 
        	$('.step-two-info').css("display", "block");
         }, function() {
        	 $('.step-two-info').css("display", "none");
         });
        
        $('.step-three').stop().hover(function(){
       	 
        	$('.step-three-info').css("display", "block");
         }, function() {
        	 $('.step-three-info').css("display", "none");
         });
         
          //avatar hover slides down change avatar button   
      $('.avatar-edit').hover(function(){
          $('.avatar-change').fadeIn('fast');
      }, function(){
          $('.avatar-change').fadeOut('fast');
      });
              
       //chosen one plugin for mutliselect boxes
       $('select').data("placeholder","Select Option ...")
                  .chosen({no_results_text: "No entries available"});

       // login form labels initiate
       $('#email-login').inFieldLabels();
       $('#password-login').inFieldLabels();

      // remember anything after this will break, youngen please fix when you have a chance.
      
   });
