$(document).ready(function(){

    //external links, xhtml friendly
    $('a[rel=external]').click(function(){
        //open new window
        var myurl = $(this).attr('href');
        window.open(myurl, 'external');
        return false;
        });

    if ($('ul#people_list').length) {
        $('ul#people_list').cycle({
            speed:  300,
            pager:  'ul#who', 
            pagerAnchorBuilder: function(idx, slide) { 
                // return selector string for existing anchor 
                return 'ul#who li:eq(' + idx + ') a'; 
            } 
        });
        
        $('ul#who a').click(function(){
            $('ul#people_list').cycle('stop');
            });

    }
    
    if ($('ul.dashboard_cycle').length) {
        $('ul.dashboard_cycle').cycle({
            speed:  500,
            random: 1
        });
    }
    
});