/**************************
//@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(){

    if(!isRunningIE6OrWorse)
    {
        $ourTabs = $(".tabs > li");
    }
    else
    {
        $ourTabs = $(".tabs li a");
    }
    $ourTabs.click(function(e){
        switch(e.target.id){
                case "tab_1":
                        //change status & style menu
                        $("#tab_1").addClass("active");
                        $("#tab_2").removeClass("active");
                        $("#tab_3").removeClass("active");
                        //display selected division, hide others
                        $("#touch").css("display", "block");
                        $("#jobs").css("display", "none");
                        $("#twitter").css("display", "none");
                break;
                case "tab_2":
                        //change status & style menu
                        $("#tab_1").removeClass("active");
                        $("#tab_2").addClass("active");
                        $("#tab_3").removeClass("active");
                        //display selected division, hide others
                        $("#jobs").css("display", "block");
                        $("#touch").css("display", "none");
                        $("#twitter").css("display", "none");
                break;
                case "tab_3":
                        //change status & style menu
                        $("#tab_1").removeClass("active");
                        $("#tab_2").removeClass("active");
                        $("#tab_3").addClass("active");
                        //display selected division, hide others
                        $("#twitter").css("display", "block");
                        $("#jobs").css("display", "none");
                        $("#touch").css("display", "none");
                break;
        }
        //alert(e.target.id);
        return false;
    });
});
