$(document).ready(function() {


    // slideshow code for homepage
    $('#homepage_slider').cycle({ 
    prev:   '#prev', 
    next:   '#next', 
    timeout: 7000,
    speed: 1000,
    after: slideOnAfter
   
    });
    
    // update #currslide of #totalslides portion of slideshow
    function slideOnAfter(curr,next,opts) {
   
        $('#last_slide').html(opts.slideCount);
        $('#current_slide').html(opts.currSlide + 1);
    
    }
    

    
    
    // biography popup code
    $('a.tips').cluetip({
        showTitle: false, // hide the clueTip's heading
        local: false,
        hideLocal: false,
        sticky: false,
        closeText: '',
        width: 450,
        cluezIndex:  48,
        cluetipClass: 'default',
        positionBy: 'fixed',
        topOffset: -70,
        leftOffset: -600,
        dropShadow: true,
        closeText: '<p class="close"><a href="#">close <span>x</span></a></p>',
        closePosition: 'top'
        // function to run just before clueTip is shown.
        
    });
    
          
});
