/* ********************************************** Dam-pro NativeDoc 1.5 ************************************************************************* Go to http://www.dam-pro.com/nativedoc for more information about* Dam-pro NativeDoc code documentation tool.************************************************* JavaScript file.************************************************ */// Fix a jQuery/Opera bug with determining the window heightvar h = $.browser.opera && $.browser.version > "9.5" &&$.fn.jquery <= "1.2.6" ?document.documentElement["clientHeight"] :$(window).height();$(function() {    // If the variable "print" = "print" then the page is displayed in format for printing.    // So disabling all javascript.    if (getValue("print") != "print")    {        $("#Splitter").height(h - $("#block-header").height() - $("#block-footer").height() -4);        $("#Splitter").splitter({            outline: true,            minLeft: 0,            sizeLeft: 150,            minRight: 150,            resizeToWidth: true,            cookie: "vsplitter",            cookiePath: "/",            cookieExpires: 365,            anchorToWindow: true        });        tree1 = new tree_component();        tree1.init($("#jsTree"), {            ui : {                animation : 0,                theme_path  : "",                theme_name : ""            }        });        // Flicker free treeview.        $("#block-body").css("visibility", "visible");        $("#jsTree").css("visibility", "visible");    }    else    {        if ($("#css").attr("href") == "../Style/ndoc.css")            $("#css").attr("href", "../Style/ndoc_print.css");        else            $("#css").attr("href", "Style/ndoc_print.css");        window.print();    }});function resize(){    if (getValue("print") != "print")    {        // Fix a jQuery/Opera bug with determining the window height        var h = $.browser.opera && $.browser.version > "9.5" && $.fn.jquery <= "1.2.6" ? document.documentElement["clientHeight"] : $(window).height();        $("#Splitter").height(h - $("#block-header").height() - $("#block-footer").height() -4);        $("#mainblock").height(h - $("#block-footer").height());    }}function getValue(varname){  var url = window.location.href;  var qparts = url.split("?");  if (qparts.length <= 1)  {    return "";  }  var query = qparts[1];  var vars = query.split("&");  var value = "";  for (i=0;i<vars.length;i++)  {    var parts = vars[i].split("=");    if (parts[0] == varname)    {      value = parts[1];      break;    }  }  value = unescape(value);  value.replace(/\+/g," ");  return value;}
