// JavaScript Document by jeff mcfarland
	
$(document).ready(function () {

    $('.bio_expanded').hide();

    $('.expand').click(function () {

        $(this).toggleClass('close');

        $(this).parent().prev('.bio_expanded').toggle('fast');

        return false;

    });
});

$('div.pane').scrollTo(0);
// Reset the screen to (0,0)
$.scrollTo(0);


$('.scroll').click(function () {
    $.scrollTo(this.hash, 800, { offset:-193 });

    return false;





});

$(document) .ready(function(){
  $("#first").delay(1000).animate({"left": "-=693px"}, 500);  
   $("#second").delay(2700).animate({"left": "-=700px"}, 500);
      $("#third").delay(4200).animate({"left": "-=415px"}, 500);
	        $("#fourth").delay(5700).animate({"left": "-=400px"}, 500);

});


/* BACKUP OF JEFF's ORIGINAL

$(document) .ready(function(){
  $("#first").delay(1000).animate({"left": "+=550px"}, 500);  
   $("#second").delay(2700).animate({"left": "+=650px"}, 500);
      $("#third").delay(4200).animate({"left": "+=942px"}, 500);
	        $("#fourth").delay(5700).animate({"left": "+=960px"}, 500);

});

/*
var scrollElem = $(document);
 scrollElem.scroll(function() {
	
    var scrollElemPos = $(document).height();
	
    var newCenter = $(document.elementFromPoint(
        scrollElemPos.left + scrollElem.width()  / 2,
        scrollElemPos.top  + scrollElem.height() / 2)
    ).closest('.row');

	$("#" + $(newCenter).attr("id") + "-menu").addClass("
	
	$(newCenter).parent.siblings("#nav li").removeClass("selected")
}); */



