
$(document).ready(function() {
    //Blur Links (Prevents Outline)
    $('#StoreLayout a').click(function() {
        this.blur();
    });

    //Call in the info box
    $("#STAppliances a").click(function() {
        $("#STAppliancesBox").fadeIn("slow");
        $("#fade_bg").fadeIn();
        return false;
    });

    $("#STKitchen a").click(function() {
        $("#STKitchenBox").fadeIn("slow");
        $("#fade_bg").fadeIn();
        return false;
    });

    $("#STCSales a").click(function() {
        $("#STCSalesBox").fadeIn("slow");
        $("#fade_bg").fadeIn();
        return false;
    });

    $("#STHomeTheater a").click(function() {
        $("#STHomeTheaterBox").fadeIn("slow");
        $("#fade_bg").fadeIn();
        return false;
    });

    $("#STTelevision a").click(function() {
        $("#STTelevisionBox").fadeIn("slow");
        $("#fade_bg").fadeIn();
        return false;
    });

    $("#STCustomInstall a").click(function() {
        $("#STCustomInstallBox").fadeIn("slow");
        $("#fade_bg").fadeIn();
        return false;
    });

    $("#STAudio a").click(function() {
        $("#STAudioBox").fadeIn("slow");
        $("#fade_bg").fadeIn();
        return false;
    });

    $("#STGourmetBoutique a").click(function() {
        $("#STGourmetBoutiqueBox").fadeIn("slow");
        $("#fade_bg").fadeIn();
        return false;
    });

    //Expand more info button on hover
    $(".more").hover(function() {
        $(this).stop().animate({ width: '200px' }, 200).css({ 'z-index': '10' }); //Change the width increase caption size
    }, function() {
        $(this).stop().animate({ width: '64px' }, 200).css({ 'z-index': '1' });
    });

    //Remove background, info box and hide all descriptions
    $("#fade_bg, .close").click(function() {
        $("#fade_bg").fadeOut();
        $("div#STAppliancesBox").fadeOut("fast");
        $("div#STKitchenBox").fadeOut("fast");
        $("div#STCSalesBox").fadeOut("fast");
        $("div#STHomeTheaterBox").fadeOut("fast");
        $("div#STTelevisionBox").fadeOut("fast");
        $("div#STCustomInstallBox").fadeOut("fast");
        $("div#STAudioBox").fadeOut("fast");
        $("div#STGourmetBoutiqueBox").fadeOut("fast");
        return false;
    });

}); 


