      function showWidth(ele, w) {
        $("#devdiv").text("The width for the " + ele + " is " + w + "px.");
      }

      $("#getp").click(function () {
        showWidth("paragraph", $("p").width());     });

       $("#getd").click(function () {
        showWidth("document", $(document).width());     });

      $("#getw").click(function () {
        showWidth("window", $(window).width());     });



      function getDocW(){
        //showWidth("window", $(window).width());
        if( $(window).width() <= 1330){
          $("#sidebarContainerIK").width(20);
          $("#sidebarContainerIK2").width(20);
          GLOB_SIDEBAR_OPEN = false;
          GLOB_PAY_OPEN = false;
           $('#sidebarPayload').hide();
           $('#flashContent1').css({visibility: "visible"});
           $('#flashContent2').css({visibility: "visible"});
        } else if($(window).width() > 1330){
          $("#sidebarContainerIK").width(199);
          $("#sidebarContainerIK2").width(199);
          GLOB_SIDEBAR_OPEN = true;
          GLOB_PAY_OPEN = true;
          $('#sidebarPayload').show();

          $('#flashContent1').css({visibility: "hidden"});
          $('#flashContent2').css({visibility: "hidden"});
        }
      }






