
$(document).ready(function() {

    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);

    var newFontSizeP = 100;
    newFontSizeP = 12*100/currentFontSizeNum;

    $('body').css('font-size', newFontSizeP+"%");

    var url = window.location.pathname;
    var sarray = url.split("/");
    var lastSegment = sarray[sarray.length-1].split(".");
    var currentId = lastSegment[0];

    if (currentId == null || currentId == "")
        currentId = "index";
    var menuId = "#"+currentId;

    $(menuId).toggleClass("current");

    if (menuId == '#designers') {
        $("div#bshell-desg-content>div").hide();
        // remove the bshell-desg-content class for the start to show.
        $('div#bshell-desg-content').removeClass('bshell-desg-content');
        $("div#bshell-desg-content>div#start").show();
    }

    if (menuId == '#media') {
        $("div#bshell-desg-content>div").hide();
        // remove the bshell-desg-content class for the start to show.
        $('div#bshell-desg-content').removeClass('bshell-desg-content');
        $("div#bshell-desg-content>div#start").show();
    }

    /* Designer/Media Page */
    $("ul#bshell-desg-list > li").click(function (event) {
        $("ul#bshell-desg-list>li").removeClass("current");
        $(this).addClass("current");
        event.preventDefault();
    });

    $("ul#bshell-desg-list > li > a").click(function (event) {
        event.preventDefault();
        var dUrl = $(this).attr("href");
        $('div#bshell-desg-content').addClass('bshell-desg-content');
        $(dUrl).siblings("div").hide("fast");
        $(dUrl).show("slow");
    });

});



