$(document).ready(function(){

  var currShow = "home";

  $(".colRight").hide();
  $("#homeR").show();

  $("#aboutL").css('position','absolute').css('top','361px').css('left','0px');
  $("#contactL").css('position','absolute').css('top','361px').css('left','0px');
  $("#followL").css('position','absolute').css('top','361px').css('left','0px');

  $(".aboutlink").click(function() {

      if(currShow != "home") {
        var thisOpenIdL = "#"+currShow+"L";
        var thisOpenIdR = "#"+currShow+"R";
        $(thisOpenIdL).css('z-index','0').animate( { top:"361px" }, 0 );
        $(thisOpenIdR).fadeOut();
      }
      

        $("#name").animate( { paddingLeft:"280px" }, 0 );
        $("#aboutL").css('z-index','9999').animate( { top:"-39px" }, 0 );
        $("#aboutR").fadeIn();

      currShow = "about";
      return false;

  });


  $(".contactlink").click(function() {

      if(currShow != "home") {
        var thisOpenIdL = "#"+currShow+"L";
        var thisOpenIdR = "#"+currShow+"R";
        $(thisOpenIdL).css('z-index','0').animate( { top:"361px" }, 0 );
        $(thisOpenIdR).fadeOut();
      }

        $("#name").animate( { paddingLeft:"280px" }, 0 );
        $("#contactL").css('z-index','9999').animate( { top:"-39px" }, 0 );
        $("#contactR").fadeIn();

      currShow = "contact";
      return false;

  });
  
  $(".followlink").click(function() {

      if(currShow != "home") {
        var thisOpenIdL = "#"+currShow+"L";
        var thisOpenIdR = "#"+currShow+"R";
        $(thisOpenIdL).css('z-index','0').animate( { top:"361px" }, 0 );
        $(thisOpenIdR).fadeOut();
      }

        $("#name").animate( { paddingLeft:"280px" }, 0 );
        $("#followL").css('z-index','9999').animate( { top:"-39px" }, 0 );
        $("#followR").fadeIn();

      currShow = "follow";
      return false;

  });
  
  $(".homelink, .gohomebtn").click(function() {

      if(currShow != "home") {
        var thisOpenIdL = "#"+currShow+"L";
        var thisOpenIdR = "#"+currShow+"R";
        $("#name").animate( { paddingLeft:"0px" }, 0 );
        $(thisOpenIdL).css('z-index','0').animate( { top:"361px" }, 0 );
        $(thisOpenIdR).fadeOut();
      }
      currShow = "home";
      return false;

  });


});