var UserIE8=false,c=[];
window.onload=function(){try{if(UseIE)if(navigator.userAgent.indexOf("MSIE 8.0")!=-1)UserIE8=true;if(window.name=="printWindow"){printReady();window.print()}fncLoadResource();fncSearchBox("hdr_srch_w_bg");var b=fncGetConstantByName("search_help");if(b)search_help_node=fncGetTocNodeByLinkName(b);if(fncGetConstantByName("search_option_multibyte")!=1)document.getElementById("id_search_options_multibyte").parentNode.style.visibility="Hidden";var e="";if(document.getElementById("id_level_1"))e=document.getElementById("id_level_1").getAttribute("toc_id");
var h=b="",d=document.getElementById("id_breadcrumbs");if(d){for(var i=d.getElementsByTagName("a").length,f=0;f<i;f++)if(d.getElementsByTagName("a")[f].getAttribute("toc_id")){b+=d.getElementsByTagName("a")[f].getAttribute("toc_id");h=d.getElementsByTagName("a")[f].getAttribute("toc_id")}var g=document.getElementById("id_content").childNodes[0];if(g.className!="h1")g=document.getElementById("id_content").childNodes[1];for(;g.className!="h1"&&g.nextSibling;)g=g.nextSibling;if(g){g.parentNode.insertBefore(d,
g.nextSibling);var a=document.getElementById("id_document_number");a&&g.parentNode.insertBefore(a,g.nextSibling);d.style.display="Block";var m=(g.currentStyle||document.defaultView.getComputedStyle(g,"")).backgroundColor;if(m=="#4682b4"||m=="rgb(70, 130, 180)"){if(d){d.style.display="Block";d.style.position="Static";d.style.backgroundColor="#EEEEFF";d.style.font="Normal 8pt 'Tahoma'";d.style.padding="1px 2px 2px 2px";d.style.borderBottom="Solid 5px #F5F5FF"}if(a){a.style.backgroundColor="#E3E3FF";
a.style.paddingRight="2px"}}else{if(d){d.style.position="Absolute";d.style.left="0px";d.style.top="0px";d.style.zIndex="1";d.style.backgruond="Transparent";d.style.border="None";d.style.font="Normal 8pt 'Tahoma'";d.style.padding="1px 2px 2px 2px"}if(a)a.style.marginTop="-12px"}}}if(h!="")document.body.toc_id=h;if(strWindowType!="HOME"){document.getElementById("id_search_button").onclick=function(){if(document.getElementById("id_search").value!=fncGetResourceByResourceId("enter_search_keyword")){strSearchHelpTocId=
"../search/search";fncOpenSearchPage(1)}};var j=document.location.search.split("?search=")[1];if(j!=undefined){j=decodeURIComponent(j);document.getElementById("id_search").value=j;document.getElementById("id_search").style.color="#000000";fncSetCookie("SEARCH-RESULT-SETTING","");fncDoSearch(1)}if(document.getElementById("id_search_options_label"))document.getElementById("id_search_options_label").innerHTML='<a href="#" onclick="fncToggleSearchOptions();"><img src="../frame_images/srch_opt_show.gif" />'+
fncGetResourceByResourceId("search_options_show")+"</a>";if(document.getElementById("id_search_options_search_scope_all"))document.getElementById("id_search_options_search_scope_all").onclick=function(){fncSelectChaptersFromAll()};if(document.getElementById("id_search_chapters")){var k=eval(toc);i=k.length;for(f=0;f<i;f++)k[f].level==1&&k[f].show_toc!="n"&&c.push(k[f]);i=c.length;d=[];for(f=0;f<i;f++)d.push(fncGenerateChapterCheckbox(c[f].id,c[f].title));document.getElementById("id_search_chapters").innerHTML=
d.join("")}if(document.getElementById("id_res_search_button")){document.getElementById("id_res_search_button").onclick=function(){fncSetCookie("SEARCH-RESULT-SETTING","");fncDoSearch(1)};document.getElementById("id_res_search_button").onmouseover=function(){this.style.backgroundColor="#FFFFFF"};document.getElementById("id_res_search_button").onmouseout=function(){this.style.backgroundColor="#EFEFEF"}}if(fncGetCookie("SEARCH-OPTIONS-CASE")=="TRUE")document.getElementById("id_search_options_case").checked=
true;var l=fncGetCookie("SEARCH-KEYWORD");if(l)document.getElementById("id_search").value=l;fncSearchBox("hdr_srch_w_bg")}fncOnResize();if(document.location.hash!=""&&document.getElementById("id_toc_current")){document.getElementById("id_toc_current").scrollIntoView(true);document.getElementById("id_toc").scrollLeft=0}else if(document.getElementById("id_toc")){if(e=="")e="ALL";if(document.all)window.setTimeout(function(){document.getElementById("id_toc").scrollTop=fncGetCookie("TOC-SCROLL-POSITION-TOP-"+
e);document.getElementById("id_toc").scrollLeft=fncGetCookie("TOC-SCROLL-POSITION-LEFT-"+e)},1);else{document.getElementById("id_toc").scrollTop=fncGetCookie("TOC-SCROLL-POSITION-TOP-"+e);document.getElementById("id_toc").scrollLeft=fncGetCookie("TOC-SCROLL-POSITION-LEFT-"+e)}}if(document.location.search)strWindowType!="HOME"&&window.setTimeout("fncMarkupSearch()",26);else if(document.all)if(document.location.hash!=""){var n=document.location.hash.substring(1);document.all.item(n)&&document.all.item(n).scrollIntoView(true)}if(document.all&&
window.XMLHttpRequest){var o=document.getElementById("id_content").innerHTML;document.getElementById("id_content").innerHTML=o.replace(/<hr>/gi,'<div style="height:40px;vertical-align:Middle;"><hr /></div>')}}catch(p){}};
function fncMarkupSearch(){try{var b=document.location.search.split("?search=")[1];b=b.split("&word=yes")[0];if(b!=""){b=decodeURIComponent(b);b=b.trim();if(b!=fncGetResourceByResourceId("enter_search_keyword")){var e=b.split(/ |\u3000/),h=e.length;for(b=0;b<h;b++)e[b]=e[b].replace(/___SPACE___/g," ");if(document.getElementById("id_search_options_multibyte"))if(document.getElementById("id_search_options_multibyte").checked)for(b=0;b<h;b++)e[b]=fncConvertSearchText(e[b],false);h="i";if(fncGetCookie("SEARCH-OPTIONS-CASE")==
"TRUE")h="";b=false;if(document.location.search.indexOf("&word=yes")!=-1)b=true;fncMarkupText(document.getElementById("id_content"),e,h,b);document.getElementById("id_hit")&&document.getElementById("id_hit").scrollIntoView(true)}}}catch(d){}}
function fncMarkupText(b,e,h,d){try{for(var i=b.childNodes.length,f=0;f<i;f++){var g=b.childNodes[f];if(g.nodeType==3){var a=g.nodeValue;if(a.replace(/\t| |\n/g,"")!=""){for(var m=false,j=0,k=e.length,l=0;l<k;l++){switch(j){case 0:strMarkerColor=String.fromCharCode(8320);break;case 1:strMarkerColor=String.fromCharCode(8321);break;case 2:strMarkerColor=String.fromCharCode(8322);break;case 3:strMarkerColor=String.fromCharCode(8323);break;case 4:strMarkerColor=String.fromCharCode(8324);break;case 5:strMarkerColor=
String.fromCharCode(8325);break;case 6:strMarkerColor=String.fromCharCode(8326);break;case 7:strMarkerColor=String.fromCharCode(8327);break;case 8:strMarkerColor=String.fromCharCode(8328);break;case 9:strMarkerColor=String.fromCharCode(8329)}var n=e[l],o="("+n+")";if(d)o="\\b("+n+")\\b";var p=RegExp(o,"g"+h);if(p.exec(a)!=null){a=a.replace(p,String.fromCharCode(8261)+strMarkerColor+String.fromCharCode(8262)+"$1"+String.fromCharCode(8334));m=true}j++;if(j>=10)j=0}if(m){a=a.replace(/</g,"&lt;");a=a.replace(/>/g,
"&gt;");a=a.replace(/\u2045/g,'<span id="id_hit" class="hit hit_');a=a.replace(/\u2046/g,'">');a=a.replace(/\u2080/g,"0");a=a.replace(/\u2081/g,"1");a=a.replace(/\u2082/g,"2");a=a.replace(/\u2083/g,"3");a=a.replace(/\u2084/g,"4");a=a.replace(/\u2085/g,"5");a=a.replace(/\u2086/g,"6");a=a.replace(/\u2087/g,"7");a=a.replace(/\u2088/g,"8");a=a.replace(/\u2089/g,"9");a=a.replace(/\u208E/g,"</span>");var q=document.createElement("span");q.innerHTML=a;b.replaceChild(q,g)}}}else fncMarkupText(g,e,h,d)}}catch(r){}}
window.onresize=fncOnResize;
function fncOnResize(){try{var b=fncGetWindowWidth(),e=fncGetWindowHeight();if(document.location.search.indexOf("?sub=yes")==-1){document.getElementById("id_panel").style.height=e-93+"px";document.getElementById("id_toc").style.height=e-194+"px";document.getElementById("id_content").style.height=e-93+"px";if(document.getElementById("id_res_bar_icon_toggle_panel"))if(document.getElementById("id_res_bar_icon_toggle_panel").src.indexOf("hide")!=-1)document.getElementById("id_content").style.width=b-
300+"px";else document.getElementById("id_content").style.width=b-0+"px";else document.getElementById("id_content").style.width=b-300+"px";document.getElementById("id_footer").style.top=e-26+"px";document.getElementById("id_footer").style.width=b+"px";if(document.getElementById("id_search_options").style.display.toLowerCase()=="none")document.getElementById("id_search_results").style.height=e-191+"px";else document.getElementById("id_search_results").style.height=e-401+"px";if(!document.getElementById("id_chapter_select")){document.getElementById("id_toc").style.top=
"22px";document.getElementById("id_toc").style.height=e-147+"px"}}else{document.getElementById("id_content").style.height=e-28+"px";document.getElementById("id_close").style.top=e-28+"px"}}catch(h){}}var strWindowType="MAIN";
function fncOpenSearchPage(b){try{var e="",h=encodeURIComponent(document.getElementById("id_search").value),d=document.location.href,i=d.indexOf("/contents/");if(i==-1)e="contents/search/search.html?search="+h;else{for(var f="",g=d.indexOf("/",i+10);g>0;){f+="../";g=d.indexOf("/",g+1)}e=f+"search/search.html?search="+h}fncSetSearchResultsInfo(b);window.open(e,"_self")}catch(a){}};
