DIGITALSAINTS = {
}

DIGITALSAINTS.Nav = {
  show: function() {
    $("#main_nav").find("li").each(function() {
      $(this).hover(function() {
        $(this).find("ul").show();  
      }, function() {
        $(this).find("ul").hide();  
      })
    })
  }  
}

DIGITALSAINTS.Projects = {
  show: function() {
	  $(".slider").easySlider();

	  $(".page_column_work_list").find("li.selected").each(function() {
	    $(this).hide();
    })
	  $(".project_1.link").hide();
	  $(".project_1.selected").show();

	  $(".page_column_work_desc").find("div.image").each(function() {
	    $(this).hide();
    })
	  $(".project_1.image").show();

    $(".page_column_work_list").find("li.link").each(function() {
      $(this).click(function() {

        /* link */
    	  $(".page_column_work_list").find("li").each(function() {
    	    $(this).hide();
    	    $(this).removeClass("first");
        })
        var i = parseInt($(this)[0].className.substr(8, 1));
        $(".project_" + i + ".selected").show();
    	  $(".page_column_work_list").find("li.link").each(function() {
    	    $(this).show();
        })
        $(".project_" + i + ".link").hide();
        $(".project_" + (i + 1) + ".link").addClass("first");

        /* image */
    	  $(".page_column_work_desc").find("div.image").each(function() {
    	    $(this).hide();
        })
    	  $(".project_" + i + ".image").show();
        
      })
    })
    
    
    
  }  
}
