/***************************/
//@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(){  

//Add A JS tag to MenuHeader so we know whether JS is enabled and whether to insert hard links 
$("#Superhunt-Header").addClass("js");

$(".menu > li").click(function(e){  
        switch(e.target.id){  
            case "home":  
                //change status & style menu  
                $("#home").addClass("active");  
                $("#about").removeClass("active");  
                $("#prices").removeClass("active");  
                $("#testimonials").removeClass("active");  
                $("#contact").removeClass("active");  
                //display selected division, hide others  
                $("div.home").fadeIn();  
                $("div.about").css("display", "none");  
                $("div.prices").css("display", "none");  
                $("div.testimonials").css("display", "none");  
                $("div.contact").css("display", "none");  
            break;  
            case "about":  
                //change status & style menu  
                $("#home").removeClass("active");  
                $("#about").addClass("active");  
                $("#prices").removeClass("active"); 
                $("#testimonials").removeClass("active");  
                $("#contact").removeClass("active");  
                //display selected division, hide others  
                $("div.about").fadeIn();  
                $("div.home").css("display", "none");  
                $("div.prices").css("display", "none");  
                $("div.testimonials").css("display", "none");  
                $("div.contact").css("display", "none");  
            break;  
            case "prices":  
                //change status & style menu  
                $("#home").removeClass("active");  
                $("#about").removeClass("active");  
                $("#prices").addClass("active");  
                $("#testimonials").removeClass("active");  
                $("#contact").removeClass("active");  
                //display selected division, hide others  
                $("div.prices").fadeIn();  
                $("div.home").css("display", "none");  
                $("div.about").css("display", "none"); 
                $("div.testimonials").css("display", "none");  
                $("div.contact").css("display", "none");  
            break;  
            case "testimonials":  
                //change status & style menu  
                $("#home").removeClass("active");  
                $("#about").removeClass("active");  
                $("#prices").removeClass("active");  
                $("#testimonials").addClass("active");  
                $("#contact").removeClass("active");  
                //display selected division, hide others  
                $("div.testimonials").fadeIn(); 
                $("div.home").css("display", "none");  
                $("div.about").css("display", "none");  
                $("div.prices").css("display", "none");  
                $("div.contact").css("display", "none");  
            break; 
            case "contact":  
                //change status & style menu  
                $("#home").removeClass("active");  
                $("#about").removeClass("active");  
                $("#prices").removeClass("active");  
                $("#testimonials").removeClass("active");  
                $("#contact").addClass("active");  
                //display selected division, hide others 
                $("div.contact").fadeIn(); 
                $("div.testimonials").css("display", "none"); 
                $("div.home").css("display", "none");  
                $("div.about").css("display", "none");  
                $("div.prices").css("display", "none");  
            break;  
        }  
        //alert(e.target.id);  
        return false;  
    });  
    
$(".footerlinks > area").click(function(e){  
        switch(e.target.id){  
            case "foothome":  
                //change status & style menu  
                $("#home").addClass("active");  
                $("#about").removeClass("active");  
                $("#prices").removeClass("active");  
                $("#testimonials").removeClass("active");  
                $("#contact").removeClass("active");  
                //display selected division, hide others  
                $("div.home").fadeIn();  
                $("div.about").css("display", "none");  
                $("div.prices").css("display", "none");  
                $("div.testimonials").css("display", "none");  
                $("div.contact").css("display", "none");  
            break;  
            case "footabout":  
                //change status & style menu  
                $("#home").removeClass("active");  
                $("#about").addClass("active");  
                $("#prices").removeClass("active"); 
                $("#testimonials").removeClass("active");  
                $("#contact").removeClass("active");  
                //display selected division, hide others  
                $("div.about").fadeIn();  
                $("div.home").css("display", "none");  
                $("div.prices").css("display", "none");  
                $("div.testimonials").css("display", "none");  
                $("div.contact").css("display", "none");  
            break;  
            case "footprices":  
                //change status & style menu  
                $("#home").removeClass("active");  
                $("#about").removeClass("active");  
                $("#prices").addClass("active");  
                $("#testimonials").removeClass("active");  
                $("#contact").removeClass("active");  
                //display selected division, hide others  
                $("div.prices").fadeIn();  
                $("div.home").css("display", "none");  
                $("div.about").css("display", "none"); 
                $("div.testimonials").css("display", "none");  
                $("div.contact").css("display", "none");  
            break;  
            case "foottestimonials":  
                //change status & style menu  
                $("#home").removeClass("active");  
                $("#about").removeClass("active");  
                $("#prices").removeClass("active");  
                $("#testimonials").addClass("active");  
                $("#contact").removeClass("active");  
                //display selected division, hide others  
                $("div.testimonials").fadeIn(); 
                $("div.home").css("display", "none");  
                $("div.about").css("display", "none");  
                $("div.prices").css("display", "none");  
                $("div.contact").css("display", "none");  
            break; 
            case "footcontact":  
                //change status & style menu  
                $("#home").removeClass("active");  
                $("#about").removeClass("active");  
                $("#prices").removeClass("active");  
                $("#testimonials").removeClass("active");  
                $("#contact").addClass("active");  
                //display selected division, hide others 
                $("div.contact").fadeIn(); 
                $("div.testimonials").css("display", "none"); 
                $("div.home").css("display", "none");  
                $("div.about").css("display", "none");  
                $("div.prices").css("display", "none");  
            break;  
            case "digicution":
            	//redirect to digicution.com
            	window.location("http://www.digicution.com");
            break;
        }  
        //alert(e.target.id);  
        return false;  
    });  
    
}); 
