(function(n){function p(n){for(u=0;u<n.length;u++){if(r=n[u],f='<link type="text/css" rel="stylesheet" ',typeof r=="object")for(i in r)f+=i+'="'+(i==="href"?c:"")+r[i]+(i==="href"&&s?"?r="+ +new Date:"")+'" ';else f+='href="'+c+r+(s?"?r="+ +new Date:"")+'" ';document.write(f+"/>")}}function l(n){for(u=0;u<n.length;u++){if(r=n[u],f='<script type="text/javascript"',typeof r=="object")for(i in r)f+=" "+i+'="'+(i==="src"?o:"")+r[i]+(i==="src"&&s?"?r="+ +new Date:"")+'"';else f+=' src="'+o+r+(s?"?r="+ +new Date:"")+'"';document.write(f+"><\/script>")}}function w(n){var r=window.location.href,i,t;return(n=n.replace(/[\[\]]/g,"\\$&"),i=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),t=i.exec(r),!t)?null:t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):""}var e={meta:[],css:["nethelp.css"],js:["jquery.js","jquery-ui.js","nethelp.js"],css2:[],js2:[]},t=document.getElementsByTagName("script"),h;t=t[t.length-1];var o=t.getAttribute("data-js")||/^(.*\/)?[^\/]*$/.exec(t.getAttribute("src"))[1],a=/(^|\/)js\/$/i.test(o)?o.replace(/js\/$/i,""):o+"../",c=t.getAttribute("data-css")||a+"css/",d=t.getAttribute("data-themes")||a+"themes/",g=t.getAttribute("data-docs")||n,b=t.getAttribute("data-settings")||a+"settings.xml",k=t.getAttribute("data-placeholder")||'[data-c1-role="nethelp"], body',nt=t.getAttribute("data-start")||n,rt=/true/i.test(t.getAttribute("data-topiconly")),ut=/true/i.test(t.getAttribute("data-istopic")),v=/true/i.test(t.getAttribute("data-responsive")),tt=/true/i.test(t.getAttribute("data-server")),it=/true/i.test(t.getAttribute("data-manual")),s=/false/i.test(t.getAttribute("data-cache")),u,i,r,f,y;for(v&&(e.js=["jquery.js","nethelp.responsive.jqm.js","jquery.mobile.js","nethelp.js","nethelp.responsive.js"],e.css=["nethelp.responsive.css"],e.css2.push("jquerymobile/jquery.mobile.structure.css")),tt&&e.js.push("nethelp.server.js"),y=function(){p(e.css2),l(e.js2)},u=0;u<e.meta.length;u++){r=e.meta[u],f="<meta ";for(i in r)f+=i+'="'+r[i]+'" ';document.write(f+"/>")}h=window.location.protocol==="file:",h&&(h=location.search&&w("local")==="true"?!0:!1,h&&l(["../local.js"])),p(e.css),l(e.js),window.nethelpOptions={paths:{js:o,css:c,themes:d,docs:g},autostart:!it,pureNetHelp:!v,settings:b,placeholder:k,start:nt,topiconly:rt,istopic:ut,disableCache:s,headCallback:y,local:h}})()