var pageID='';
      $(document).ready(function(){
        if (window.location.href.search(/print/) != -1) {
          $("head > link").each(function(i){
            this.disabled = true;
            if ($(this).attr("title") == "print") this.disabled = false;
          });
          window.setTimeout("window.print();", 500);
        }
        // Highlight Links in left and right column
        $("#leftcolumn a").each(function(){
          if(document.location.href == $(this).attr("href")){
            $(this).css("font-weight","bold");
          }
        });
        $("#rightcolumn a").each(function(){
          if(document.location.href == $(this).attr("href")){
            $(this).css("font-weight","bold");
          }
        });
        /*
        $("div[id^=switch_] a").each(function(){          
          $(this).attr("href", "javascript:void(0);");
          $(this).click(function() {
            $divLibrary = $(this).parent();
            divId = $divLibrary.attr("id");
            pageIdArr = divId.split("_");
            pageId = pageIdArr[1];
            if($(this).parent().hasClass("middletitledblueClose")){
                $(this).parent().attr("class", "middletitledblueOpen");
                $("#switchEntries_"+""+pageId+"").hide();
            }else{
                $(this).parent().attr("class", "middletitledblueClose");
                $("#switchEntries_"+""+pageId+"").show();
            }
          });
        });*/
        $("div[id^=switch_] a").each(function(){          
          $(this).attr("href", "javascript:void(0);");
          $(this).click(function() {
            $divLibrary = $(this).parent();
            divId = $divLibrary.attr("id");
            pageIdArr = divId.split("_");
            pageId = pageIdArr[1];
            imgSrc = $(this).children("img").attr("src");
            if($(this).hasClass("close")){
                $(this).attr("class", "open");
                imgSrc = imgSrc.replace("close", "open");
                $("#switchEntries_"+""+pageId+"").hide();
            }else{
                $(this).attr("class", "close");
                imgSrc = imgSrc.replace("open", "close");
                $("#switchEntries_"+""+pageId+"").show();
            }
            $(this).children("img").attr("src", imgSrc);
          });
        });
                
      });
