var UserIE8=false;
window.onload=function(){try{if(UseIE)if(navigator.userAgent.indexOf("MSIE 8.0")!=-1)UserIE8=true;fncLoadResource();fncSearchBox("hdr_srch_w_bg");if(strWindowType!="HOME"){document.getElementById("id_search_button").onclick=function(){if(document.getElementById("id_search").value!=""){strSearchHelpTocId="../search/search";fncOpenSearchPage(1)}};var a=document.location.search.split("?search=")[1];if(a!=undefined){a=decodeURIComponent(a);document.getElementById("id_search").value=a;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(fncGetCookie("SEARCH-OPTIONS-CASE")=="TRUE")document.getElementById("id_search_options_case").checked=true;var c=fncGetCookie("SEARCH-KEYWORD");if(c)document.getElementById("id_search").value=c;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(strCurrentChapterId=="")strCurrentChapterId=
"ALL";if(document.all)window.setTimeout(function(){document.getElementById("id_toc").scrollTop=fncGetCookie("TOC-SCROLL-POSITION-TOP-"+strCurrentChapterId);document.getElementById("id_toc").scrollLeft=fncGetCookie("TOC-SCROLL-POSITION-LEFT-"+strCurrentChapterId)},1);else{document.getElementById("id_toc").scrollTop=fncGetCookie("TOC-SCROLL-POSITION-TOP-"+strCurrentChapterId);document.getElementById("id_toc").scrollLeft=fncGetCookie("TOC-SCROLL-POSITION-LEFT-"+strCurrentChapterId)}}if(document.location.search)strWindowType!=
"HOME"&&window.setTimeout("fncMarkupSearch()",26);else if(document.all)if(document.location.hash!=""){var d=document.location.hash.substring(1);document.all.item(d)&&document.all.item(d).scrollIntoView(true)}if(document.all&&window.XMLHttpRequest){var e=document.getElementById("id_content").innerHTML;document.getElementById("id_content").innerHTML=e.replace(/<hr>/gi,'<div style="height:40px;vertical-align:Middle;"><hr /></div>')}}catch(h){}};
function fncMarkupSearch(){try{var a=document.location.search.split("?search=")[1];a=a.split("&word=yes")[0];if(a!=""){a=decodeURIComponent(a);a=a.trim();if(a!=""){var c=a.split(/ |\u3000/),d=c.length;for(a=0;a<d;a++)c[a]=c[a].replace(/___SPACE___/g," ");if(document.getElementById("id_search_options_multibyte"))if(document.getElementById("id_search_options_multibyte").checked)for(a=0;a<d;a++)c[a]=fncConvertSearchText(c[a],false);d="i";if(fncGetCookie("SEARCH-OPTIONS-CASE")=="TRUE")d="";a=false;if(document.location.search.indexOf("&word=yes")!=
-1)a=true;fncMarkupText(document.getElementById("id_content"),c,d,a)}}}catch(e){}}
function fncMarkupText(a,c,d,e){try{for(var h=a.childNodes.length,g=0;g<h;g++){var f=a.childNodes[g];if(f.nodeType==3){var b=f.nodeValue;if(b.replace(/\t| |\n/g,"")!=""){for(var k=false,i=0,p=c.length,j=0;j<p;j++){switch(i){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 l=c[j],m="("+l+")";if(e)m="\\b("+l+")\\b";var n=RegExp(m,"g"+d);if(n.exec(b)!=null){b=b.replace(n,String.fromCharCode(8261)+strMarkerColor+String.fromCharCode(8262)+"$1"+String.fromCharCode(8334));k=true}i++;if(i>=10)i=0}if(k){b=b.replace(/</g,"&lt;");b=b.replace(/>/g,
"&gt;");b=b.replace(/\u2045/g,'<span id="id_hit" class="hit hit_');b=b.replace(/\u2046/g,'">');b=b.replace(/\u2080/g,"0");b=b.replace(/\u2081/g,"1");b=b.replace(/\u2082/g,"2");b=b.replace(/\u2083/g,"3");b=b.replace(/\u2084/g,"4");b=b.replace(/\u2085/g,"5");b=b.replace(/\u2086/g,"6");b=b.replace(/\u2087/g,"7");b=b.replace(/\u2088/g,"8");b=b.replace(/\u2089/g,"9");b=b.replace(/\u208E/g,"</span>");var o=document.createElement("span");o.innerHTML=b;a.replaceChild(o,f)}}}else fncMarkupText(f,c,d,e)}}catch(q){}}
window.onresize=fncOnResize;
function fncOnResize(){try{var a=fncGetWindowWidth(),c=fncGetWindowHeight();if(document.location.search.indexOf("?sub=yes")==-1){document.getElementById("id_panel").style.height=c-93+"px";document.getElementById("id_toc").style.height=c-194+"px";document.getElementById("id_content").style.height=c-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=a-
300+"px";else document.getElementById("id_content").style.width=a-0+"px";else document.getElementById("id_content").style.width=a-300+"px";document.getElementById("id_footer").style.top=c-26+"px";document.getElementById("id_footer").style.width=a+"px";if(document.getElementById("id_search_options").style.display.toLowerCase()=="none")document.getElementById("id_search_results").style.height=c-191+"px";else document.getElementById("id_search_results").style.height=c-401+"px";if(!document.getElementById("id_chapter_select")){document.getElementById("id_toc").style.top=
"22px";document.getElementById("id_toc").style.height=c-147+"px"}}else{document.getElementById("id_content").style.height=c-28+"px";document.getElementById("id_close").style.top=c-28+"px"}}catch(d){}}var strWindowType="MAIN";
function fncOpenSearchPage(a){try{var c="",d=encodeURIComponent(document.getElementById("id_search").value),e=document.location.href,h=e.indexOf("/contents/");if(h==-1)c="contents/search/search.html?search="+d;else{for(var g="",f=e.indexOf("/",h+10);f>0;){g+="../";f=e.indexOf("/",f+1)}c=g+"search/search.html?search="+d}fncSetSearchResultsInfo(a);window.open(c,"_self")}catch(b){}};
