function scrollTo_top(){
    // $('html, body').animate({
    // scrollTop: '0'}, 2000);
    var pos = $("#content").offset().top-200;
    $('html, body').animate({
    scrollTop: pos
    }, 2000);
}
function scrollTo_work(){
    // window.scrollTo(0,325);
    // $('html, body').animate({
    // scrollTop: '325'}, 2000);---------working on getting this to scroll by div + offset instead
    var pos = $("#work").offset().top-150;
    $('html, body').animate({
    scrollTop: pos
    }, 2000);
}
function scrollTo_resume(){
    // window.scrollTo(0,5100);
    // $('html, body').animate({
    // scrollTop: '5100'}, 2000);
    var pos = $("#resume").offset().top-150;
    $('html, body').animate({
    scrollTop: pos
    }, 2000);
}

function scrollTo_vahi(){
    // window.scrollTo(0,600);
    // $('html, body').animate({
    // scrollTop: '600'}, 2000);
    var pos = $("#vahi").offset().top-150;
    $('html, body').animate({
    scrollTop: pos
    }, 2000);
}

function scrollTo_happy(){
    // window.scrollTo(0,2800);
    // $('html, body').animate({
    // scrollTop: '2800'}, 2000);
    var pos = $("#happy").offset().top-150;
    $('html, body').animate({
    scrollTop: pos
    }, 2000);
}

function scrollTo_collab(){
    // window.scrollTo(0,4025);
    // $('html, body').animate({
    // scrollTop: '4025'}, 2000);
    var pos = $("#collab").offset().top-150;
    $('html, body').animate({
    scrollTop: pos
    }, 2000);
}


// $('.content').jScrollPane({animateTo:true, animateInterval:50, animateStep:3});

// $('#headerContainer').fadeOut(5000);

// function scrollWin(){
// $('html, body').animate({
// scrollTop: $("#section vahi").offset().top
// }, 2000);
// }

// $('#header').fadeOut(5000);

// 
// var CountdownTimer = {
//   endTime:null,
//   timerId:null,
//   minutes:0,
//   maxWidth:0,
//   maxTime:(25 * 60 * 1000),
//   isBreak:false,
// 
//   normalColors:["#e47a80", "#eb363b"],
//   breakColors: ["#97c751", "#759f58"],
// 
//   start: function(minutes, isBreak) {
//     if (this.maxWidth == 0)
//       this.maxWidth = $('#timer-bar').width();
// 
//     if (this.timerId)
//       this.cancel();
// 
//     this.minutes = minutes;
//     this.isBreak = isBreak;
// 
//     this.setupTimer();
//     this.flashBar();
//   },
// 
//   setupTimer:function() {
//     $('#timer-finished').fadeOut();
// 
//     var date     = new Date();
//     this.endTime = date.getTime() + (this.minutes * 60 * 1000);
//     this.timerId = setInterval(this.tick, 1000);
// 
//     this.setBarToTime(this.minutes * 60 * 1000);
//     $('title').text("Started " + 
//       (this.isBreak ? this.minutes + " minute break." : "pomodoro."));
//   },
// 
//   flashBar:function() {
//     var lightColor, darkColor;
//     if (this.isBreak)
//     {
//       lightColor = this.breakColors[0];
//       darkColor  = this.breakColors[1];
//     } else {
//       lightColor = this.normalColors[0];
//       darkColor  = this.normalColors[1];
//     }
//     $('#timer-bar').animate({backgroundColor:lightColor})
//       .animate({backgroundColor:darkColor})
//       .css('background-color', darkColor);
//   },
// 
//   setBarToTime:function(time) {
//     $('#timer-bar').animate({width:(time/this.maxTime) * this.maxWidth});
//   },
// 
//   cancel:function() {
//     clearInterval(this.timerId);
//   },
// 
//   tick:function() {
//     // NOTE: Called externally, so must use "CountdownTimer" 
//     //       instead of "this".
//     CountdownTimer.tock();
//   },
// 
//   tock:function() {
//     var date = new Date();
//     var remainingTime = this.endTime - date.getTime();
//     if (remainingTime <= 0) {
//       this.cancel();
//       this.setBarToTime(0);
//       this.showCompletedInLog();
//       this.showCompletedMessage();
//     } else {
//       this.setBarToTime(remainingTime);
//     }
//   },
// 
//   showCompletedInLog:function() {
//     var logClass = "timer-log-" + 
//       this.minutes + (this.isBreak ? "-break" : "");
//     $('#timer-log').append('<div class="' + logClass + '"></div>');
//   },
// 
//   showCompletedMessage:function() {
//     if ($('#timer-finished').length == 0)
//       $('#timer').append('<div id="timer-finished"></div>');
//     var message = "Finished " + 
//       (this.isBreak ? this.minutes + " minute break." : "one pomodoro.");
//     $('title').text(message);
//     $('#timer-finished').text(message).fadeIn(1000);
//   },
// };
// 
// 
// jQuery.fn.extend({
// 
//   taskStates:['task-empty', 'task-x', 'task-apostrophe', 'task-dash'],
// 
//   resetTaskStateClassNames:function() { 
//     var elements = this;
//     jQuery.each(jQuery.fn.taskStates, function() {
//       elements.removeClass(this);
//     })    
//     return this;
//   },
// 
//   resetTaskState:function() {
//     this.resetTaskStateClassNames();
//     
//     return this.each(function() {
//       jQuery(this).data('taskStateIndex', 0)
//         .addClass(jQuery.fn.taskStates[0]);
//     });
//   },
// 
//   toggleTaskState:function() { 
//     this.resetTaskStateClassNames();
//   
//     return this.each(function() {
//       var element = jQuery(this);
//       var taskStateIndex = element.data('taskStateIndex') || 0;
//       taskStateIndex = (taskStateIndex + 1) % jQuery.fn.taskStates.length;
//       
//       element.data('taskStateIndex', taskStateIndex)
//         .addClass(jQuery.fn.taskStates[taskStateIndex]);
//     });
//   },
// 
// });
// 
// jQuery(function () {
// 
//   $('#button-25').click(function(e) {
//     e.preventDefault();
//     CountdownTimer.start(25);
//   });
// 
//   $('#button-5-break').click(function(e) {
//     e.preventDefault();
//     CountdownTimer.start(5, true);
//   });
// 
//   $('#button-25-break').click(function(e) {
//     e.preventDefault();
//     CountdownTimer.start(25, true);
//   });
// 
// 
//   $('.completion a').live("click", function(e) {
//     $(this).toggleTaskState();
//     return false;
//   });
//   
//   $('#add').click(function(e) { 
//     var taskItem = $('#tasks ul li:first').clone();
//     taskItem
//         .find('.completion a').resetTaskState()
//       .end()
//         .find('input[type="text"]').val("");
//     $('#tasks ul').append(taskItem);
//     taskItem.find('input[type="text"]:first').focus();
//     return false;
//   });
//   
//   $('#add').click().click();
// 
//   $('#tasks ul').sortable({handle:".handle"}).disableSelection();
//   
//   $('#task-footer').bg([0,0,10,10]);
// 
//   $('input[type="text"]:first').focus();
//   
// });