jQuery.noConflict();
jQuery(document).ready(function($){
//--------------------------
setInterval("checkAnchor()", 300);
    
$('#people').serialScroll({
        items:'li',
        prev:'#content a.scrollprev',
        next:'#content a.scrollnext',        //offset:0, //when scrolling to photo, stop 230 before reaching it (from the left)
        start:0, //as we are centering it, start at the 2nd
        duration:1200,
        force:true,
        stop:true,
        lock:false,
        cycle:false, //don't pull back once you reach the end
        step: 9,
        //easing:'easeOutQuart', //use this easing equation for a funny effect
        jump: false, //click on the images to scroll to them
        exclude: 8,
        axis: 'y'
});
    
//--------------------------
});
var currentAnchor = null;
//Function which chek if there are anchor changes, if there are, sends the ajax petition
function checkAnchor(){
    var hash = document.location.hash;
    if(currentAnchor != hash){
        currentAnchor = hash;
        jQuery(".pages").hide();
        jQuery("#leftcol li, #leftcol a").removeClass("on");
        if(!currentAnchor) {
            //jQuery("#default").show();
            //show first div
            jQuery("#leftcol li a:first").addClass("on");
            jQuery("#leftcol li:first").addClass("on");
            jQuery(".pages:first").show();
        } else {
            jQuery(currentAnchor).fadeIn();
            jQuery("#leftcol a[href='"+currentAnchor+"']").addClass("on");
            var parent = jQuery("#leftcol a[href='"+currentAnchor+"']").parent();
            jQuery(parent).addClass("on");
        }
    }
}



