﻿/***************************/
//@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!					
/***************************/


var mainid;
function showonout() {

}

function show(id) { 
   
   
        

        //change status & style menu
    $("div#container ul li").removeClass("active");
        
        $("div#main div").css("display", "none");
        //alert(e.target.id);
        $("#" + id).addClass("active");
        //display selected division, hide others
        $("div." + id).fadeIn();
        $("#" + id).css("display", "");


        //alert(e.target.id);
        return false;
}

$(document).ready(function() {

    $(".menu > li").click(function(e) {
        

        //change status & style menu
    $("div#container ul li").removeClass("active");
        
        $("div#main div").css("display", "none");
        //alert(e.target.id);
        $("#" + e.target.id).addClass("active");
        //display selected division, hide others
        $("div." + e.target.id).fadeIn();
        $("#" + e.target.id).css("display", "");


        //alert(e.target.id);
        return false;
    });
});


/*switch(e.target.id){
        case "news":
        //change status & style menu
        $("#news").addClass("active");
        $("#tutorials").removeClass("active");
        $("#links").removeClass("active");
        //display selected division, hide others
        $("div.news").fadeIn();
        $("div.tutorials").css("display", "none");
        $("div.links").css("display", "none");
        break;
        case "tutorials":
        //change status & style menu
        $("#news").removeClass("active");
        $("#tutorials").addClass("active");
        $("#links").removeClass("active");
        //display selected division, hide others
        $("div.tutorials").fadeIn();
        $("div.news").css("display", "none");
        $("div.links").css("display", "none");
        break;
        case "links":
        //change status & style menu
        $("#news").removeClass("active");
        $("#tutorials").removeClass("active");
        $("#links").addClass("active");
        //display selected division, hide others
        $("div.links").fadeIn();
        $("div.news").css("display", "none");
        $("div.tutorials").css("display", "none");
        break;
        }*/
