﻿/***************************/
//@Author: Adrian "yEnS" Mato Gondelle & Ivan Guardado Castro
//@website: www.yensdesign.com
//@email: yensamg@gmail.com
//@license: Feel free to use it, but keep this credits please!					
/***************************/

$(document).ready(function () {
    $(".menu1 > li").click(function (e) {
        switch (e.target.id) {
            case "news1":
                //change status & style menu
                $("#news1").addClass("active");
                $("#tutorials1").removeClass("active");
                $("#links1").removeClass("active");
                //display selected division, hide others
                $("div.news1").fadeIn();
                $("div.tutorials1").css("display", "none");
                $("div.links1").css("display", "none");
                break;


            case "menu1":
                //change status & style menu
                $("#news1").addClass("active");
                $("#tutorials1").removeClass("active");
                $("#links1").removeClass("active");
                //display selected division, hide others
                $("div.news1").fadeIn();
                $("div.tutorials1").css("display", "none");
                $("div.links1").css("display", "none");
                break;

            case "tutorials1":
                //change status & style menu
                $("#news1").removeClass("active");
                $("#tutorials1").addClass("active");
                $("#links1").removeClass("active");
                //display selected division, hide others
                $("div.tutorials1").fadeIn();
                $("div.news1").css("display", "none");
                $("div.links1").css("display", "none");
                break;
            case "links1":
                //change status & style menu
                $("#news1").removeClass("active");
                $("#tutorials1").removeClass("active");
                $("#links1").addClass("active");
                //display selected division, hide others
                $("div.links1").fadeIn();
                $("div.news1").css("display", "none");
                $("div.tutorials1").css("display", "none");
                break;
        }
        //alert(e.target.id);
        return false;
    });
});

















/***************************/
//@Author: Adrian "yEnS" Mato Gondelle & Ivan Guardado Castro
//@website: www.yensdesign.com
//@email: yensamg@gmail.com
//@license: Feel free to use it, but keep this credits please!					
/***************************/

$(document).ready(function () {
    $(".menu3 > li").click(function (e) {
        switch (e.target.id) {
            case "news2":
                //change status & style menu
                $("#news2").addClass("active");
                $("#tutorials2").removeClass("active");
                $("#links2").removeClass("active");
                //display selected division, hide others
                $("div.news2").fadeIn();
                $("div.tutorials2").css("display", "none");
                $("div.links2").css("display", "none");
                break;


            case "menu3":
                //change status & style menu
                $("#news2").addClass("active");
                $("#tutorials2").removeClass("active");
                $("#links2").removeClass("active");
                //display selected division, hide others
                $("div.news2").fadeIn();
                $("div.tutorials2").css("display", "none");
                $("div.links2").css("display", "none");
                break;

            case "tutorials2":
                //change status & style menu
                $("#news2").removeClass("active");
                $("#tutorials2").addClass("active");
                $("#links2").removeClass("active");
                //display selected division, hide others
                $("div.tutorials2").fadeIn();
                $("div.news2").css("display", "none");
                $("div.links2").css("display", "none");
                break;
            case "links2":
                //change status & style menu
                $("#news2").removeClass("active");
                $("#tutorials2").removeClass("active");
                $("#links2").addClass("active");
                //display selected division, hide others
                $("div.links2").fadeIn();
                $("div.news2").css("display", "none");
                $("div.tutorials2").css("display", "none");
                break;
        }
        //alert(e.target.id);
        return false;
    });
});
