/* Copyright © 1998, 2012, Oracle and/or its affiliates.  All rights reserved. */
/* Version 11.1.0.0 */

function NameOf(a){return a!=null?'"'+a+'"':"(null)"}function TypeOf(a){if(a==null)return a===void 0?"undefined":"null";var b=typeof a;if(IsArray(a))return"object Array";if(b!="object"||a.constructor==null)return b;a=/function\s+([^\(]*)\(/.exec(a.constructor.toString());return b+(a&&a.length>1&&a[1].length>0?" "+a[1]:"")}function IsNullOrString(a){return a==null||typeof a=="string"||a instanceof String}function IsNullOrNumber(a){return a==null||typeof a=="number"||a instanceof Number}
function IsNullOrBoolean(a){return a==null||typeof a=="boolean"||a instanceof Boolean}function IsNullOrRegExp(a){return a==null||a instanceof RegExp}function IsNullOrArray(a){return a==null||IsArray(a)}function IsNullOrInstanceOf(a,b){return a==null||a instanceof b}function IsUndefined(a){return typeof a=="undefined"}function IsString(a){return typeof a=="string"||typeof a=="object"&&a.constructor===String}
function IsNumber(a){return typeof a=="number"||typeof a=="object"&&a.constructor===Number}function IsBoolean(a){return typeof a=="boolean"||typeof a=="object"&&a.constructor===Boolean}function IsArray(a){return typeof a=="object"&&a.join!=void 0&&a.push!=void 0&&a.length!=void 0}function IsFunction(a){return typeof a=="function"||a!=null&&a.constructor===Function}function IsObject(a){return(typeof a=="object"||IsFunction(a))&&a!=null}function IsInstanceOf(a,b){return a instanceof b}
function IsHash(a){return a!=null&&typeof a=="object"&&a.constructor!==String&&a.constructor!==Number&&a.constructor!==Boolean&&a.constructor!==Array&&a.constructor!==Date}function IsEmpty(a){return!a||!a.length}function IsIE(){return navigator.appName=="Microsoft Internet Explorer"}function IsFF(){return navigator.appName=="Netscape"}function ForceEval(a){IsIE()&&IsObject(a)&&IsFunction(a.eval)&&IsObject(a.execScript)&&a.execScript("null")}
function IE_ConvertVBArrayToArray(a){return a==null?null:a.toArray()}
var _BrowserType={NotDetected:-1,MicrosoftInternetExplorer:0,MozillaFirefox:1,GoogleChrome:2},_Browser={Type:_BrowserType.NotDetected,Version:void 0,IE:void 0,FF:void 0,CR:void 0,GetVersionFn:[function(){var a=navigator.userAgent,b=a.indexOf("MSIE ");if(b!=-1){b+=5;var c=a.indexOf(";",b);if(c!=-1)return Number(a.substr(b,c-b))}return-1},null,null]},Browser={IsIE:function(){if(_Browser.IE!==void 0)return _Browser.IE;if(_Browser.IE=navigator.userAgent.indexOf("MSIE ")!=-1){_Browser.Type=_BrowserType.MicrosoftInternetExplorer;
return true}return false},IsFF:function(){if(_Browser.FF!==void 0)return _Browser.FF;if(_Browser.FF=navigator.userAgent.indexOf("Firefox")!=-1){_Browser.Type=_BrowserType.MozillaFirefox;return true}},GetVersion:function(){if(_Browser.Version!==void 0)return _Browser.Version;var a=_Browser.GetVersionFn[_Browser.Type];a=a&&a()||-1;return _Browser.Version=a}},mode=location.search.substr(1);
sorttable={init:function(){if(!arguments.callee.done){arguments.callee.done=true;_timer&&clearInterval(_timer);if(document.createElement&&document.getElementsByTagName){sorttable.DATE_RE=/^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/;forEach(document.getElementsByTagName("table"),function(a){a.className.search(/\bsortable\b/)!=-1&&sorttable.makeSortable(a)})}}},makeSortable:function(a){if(a.getElementsByTagName("thead").length==0){the=document.createElement("thead");the.appendChild(a.rows[0]);a.insertBefore(the,
a.firstChild)}if(a.tHead==null)a.tHead=a.getElementsByTagName("thead")[0];if(a.tHead.rows.length==1){sortbottomrows=[];for(var b=0;b<a.rows.length;b++)if(a.rows[b].className.search(/\bsortbottom\b/)!=-1)sortbottomrows[sortbottomrows.length]=a.rows[b];if(sortbottomrows){if(a.tFoot==null){tfo=document.createElement("tfoot");a.appendChild(tfo)}for(b=0;b<sortbottomrows.length;b++)tfo.appendChild(sortbottomrows[b]);delete sortbottomrows}headrow=a.tHead.rows[0].cells;for(b=0;b<headrow.length;b++)if(!headrow[b].className.match(/\bsorttable_nosort\b/)){if(mtch=
headrow[b].className.match(/\bsorttable_([a-z0-9]+)\b/))override=mtch[1];headrow[b].sorttable_sortfunction=mtch&&typeof sorttable["sort_"+override]=="function"?sorttable["sort_"+override]:sorttable.guessType(a,b);headrow[b].sorttable_columnindex=b;headrow[b].sorttable_tbody=a.tBodies[0];_addEvent(headrow[b],"click",function(){if(this.className.search(/\bsorttable_sorted\b/)!=-1){sorttable.reverse(this.sorttable_tbody);this.className=this.className.replace("sorttable_sorted","sorttable_sorted_reverse");
this.removeChild(document.getElementById("sorttable_sortfwdind"));sortrevind=document.createElement("span");sortrevind.id="sorttable_sortrevind";sortrevind.innerHTML=IsIE()?'&nbsp<font face="webdings">5</font>':"&nbsp;&#x25B4;";this.appendChild(sortrevind)}else if(this.className.search(/\bsorttable_sorted_reverse\b/)!=-1){sorttable.reverse(this.sorttable_tbody);this.className=this.className.replace("sorttable_sorted_reverse","sorttable_sorted");this.removeChild(document.getElementById("sorttable_sortrevind"));
sortfwdind=document.createElement("span");sortfwdind.id="sorttable_sortfwdind";sortfwdind.innerHTML=IsIE()?'&nbsp<font face="webdings">6</font>':"&nbsp;&#x25BE;";this.appendChild(sortfwdind)}else{theadrow=this.parentNode;forEach(theadrow.childNodes,function(e){if(e.nodeType==1){e.className=e.className.replace("sorttable_sorted_reverse","");e.className=e.className.replace("sorttable_sorted","")}});(sortfwdind=document.getElementById("sorttable_sortfwdind"))&&sortfwdind.parentNode.removeChild(sortfwdind);
(sortrevind=document.getElementById("sorttable_sortrevind"))&&sortrevind.parentNode.removeChild(sortrevind);this.className+=" sorttable_sorted";sortfwdind=document.createElement("span");sortfwdind.id="sorttable_sortfwdind";sortfwdind.innerHTML=IsIE()?'&nbsp<font face="webdings">6</font>':"&nbsp;&#x25BE;";this.appendChild(sortfwdind);row_array=[];col=this.sorttable_columnindex;rows=this.sorttable_tbody.rows;for(var c=0;c<rows.length;c++)row_array[row_array.length]=[sorttable.getInnerText(rows[c].cells[col]),
rows[c]];row_array.sort(this.sorttable_sortfunction);row_array.reverse();tb=this.sorttable_tbody;for(c=0;c<row_array.length;c++)tb.appendChild(row_array[c][1]);delete row_array}})}}},guessType:function(a,b){sortfn=sorttable.sort_alpha;for(var c=0;c<a.tBodies[0].rows.length;c++){text=sorttable.getInnerText(a.tBodies[0].rows[c].cells[b]);if(text!=""){if(text.match(/^-?[\u00a3$\u00a4]?[\d,.]+%?$/))return sorttable.sort_numeric;if(possdate=text.match(sorttable.DATE_RE)){first=parseInt(possdate[1]);second=
parseInt(possdate[2]);if(first>12)return sorttable.sort_ddmm;else if(second>12)return sorttable.sort_mmdd;else sortfn=sorttable.sort_ddmm}}}return sortfn},getInnerText:function(a){hasInputs=typeof a.getElementsByTagName=="function"&&a.getElementsByTagName("input").length;if(a.getAttribute("sorttable_customkey")!=null)return a.getAttribute("sorttable_customkey");else if(typeof a.textContent!="undefined"&&!hasInputs)return a.textContent.replace(/^\s+|\s+$/g,"");else if(typeof a.innerText!="undefined"&&
!hasInputs)return a.innerText.replace(/^\s+|\s+$/g,"");else if(typeof a.text!="undefined"&&!hasInputs)return a.text.replace(/^\s+|\s+$/g,"");else switch(a.nodeType){case 3:if(a.nodeName.toLowerCase()=="input")return a.value.replace(/^\s+|\s+$/g,"");case 4:return a.nodeValue.replace(/^\s+|\s+$/g,"");case 1:case 11:for(var b="",c=0;c<a.childNodes.length;c++)b+=sorttable.getInnerText(a.childNodes[c]);return b.replace(/^\s+|\s+$/g,"");default:return""}},reverse:function(a){newrows=[];for(var b=0;b<a.rows.length;b++)newrows[newrows.length]=
a.rows[b];for(b=newrows.length-1;b>=0;b--)a.appendChild(newrows[b]);delete newrows},sort_numeric:function(a,b){aa=parseFloat(a[0].replace(/[^0-9.-]/g,""));if(isNaN(aa))aa=0;bb=parseFloat(b[0].replace(/[^0-9.-]/g,""));if(isNaN(bb))bb=0;return aa-bb},sort_alpha:function(a,b){if(a[0]==b[0])return 0;if(a[0]<b[0])return-1;return 1},sort_ddmm:function(a,b){mtch=a[0].match(sorttable.DATE_RE);y=mtch[3];m=mtch[2];d=mtch[1];if(m.length==1)m="0"+m;if(d.length==1)d="0"+d;dt1=y+m+d;mtch=b[0].match(sorttable.DATE_RE);
y=mtch[3];m=mtch[2];d=mtch[1];if(m.length==1)m="0"+m;if(d.length==1)d="0"+d;dt2=y+m+d;if(dt1==dt2)return 0;if(dt1<dt2)return-1;return 1},sort_mmdd:function(a,b){mtch=a[0].match(sorttable.DATE_RE);y=mtch[3];d=mtch[2];m=mtch[1];if(m.length==1)m="0"+m;if(d.length==1)d="0"+d;dt1=y+m+d;mtch=b[0].match(sorttable.DATE_RE);y=mtch[3];d=mtch[2];m=mtch[1];if(m.length==1)m="0"+m;if(d.length==1)d="0"+d;dt2=y+m+d;if(dt1==dt2)return 0;if(dt1<dt2)return-1;return 1},shaker_sort:function(a,b){for(var c=0,e=a.length-
1,g=true;g;){g=false;for(var f=c;f<e;++f)if(b(a[f],a[f+1])>0){g=a[f];a[f]=a[f+1];a[f+1]=g;g=true}e--;if(!g)break;for(f=e;f>c;--f)if(b(a[f],a[f-1])<0){g=a[f];a[f]=a[f-1];a[f-1]=g;g=true}c++}}};document.addEventListener&&document.addEventListener("DOMContentLoaded",sorttable.init,false);if(/WebKit/i.test(navigator.userAgent))var _timer=setInterval(function(){/loaded|complete/.test(document.readyState)&&sorttable.init()},10);window.onload=sorttable.init;
function _addEvent(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else{if(!c.$$guid)c.$$guid=_addEvent.guid++;if(!a.events)a.events={};var e=a.events[b];if(!e){e=a.events[b]={};if(a["on"+b])e[0]=a["on"+b]}e[c.$$guid]=c;a["on"+b]=handleEvent}}_addEvent.guid=1;function removeEvent(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false);else a.events&&a.events[b]&&delete a.events[b][c.$$guid]}
function handleEvent(a){var b=true;a=a||fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);var c=this.events[a.type],e;for(e in c){this.$$handleEvent=c[e];if(this.$$handleEvent(a)===false)b=false}return b}function fixEvent(a){a.preventDefault=fixEvent.preventDefault;a.stopPropagation=fixEvent.stopPropagation;return a}fixEvent.preventDefault=function(){this.returnValue=false};fixEvent.stopPropagation=function(){this.cancelBubble=true};
if(!Array.forEach)Array.forEach=function(a,b,c){for(var e=0;e<a.length;e++)b.call(c,a[e],e,a)};Function.prototype.forEach=function(a,b,c){for(var e in a)typeof this.prototype[e]=="undefined"&&b.call(c,a[e],e,a)};String.forEach=function(a,b,c){Array.forEach(a.split(""),function(e,g){b.call(c,e,g,a)})};
var forEach=function(a,b,c){if(a){var e=Object;if(a instanceof Function)e=Function;else if(a.forEach instanceof Function){a.forEach(b,c);return}else if(typeof a=="string")e=String;else if(typeof a.length=="number")e=Array;e.forEach(a,b,c)}};
function ClickHeader(a){a=document.getElementById(a).tHead.rows[0].cells;if(a.length>0){a=a[1];if(navigator.userAgent.indexOf("Firefox/")!=-1){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);a.dispatchEvent(b)}else navigator.userAgent.indexOf("MSIE ")!=-1&&a.click()}}function Ready(){setTimeout(function(){ClickHeader("opa3t")},100)}if(/testpage.html/.test(window.location.href)){window.location.href="#anchor1";window.focus()}
var SMTestPage={Show:function(a){if(a==1){this.Table1.Create();this.Table2.Create();this.Table3.Create();this.Table4.Create();this.Table5.Create()}else a==2&&this.TableE.Create()},Table1:{Heads:["ECID PARTS","MAXHIT","REMOVED BY MAXHIT","MAXSEARCH","ECID PARTS SEARCHED","ECID PARTS DROPPED","THRESHOLD (%)","HIGHEST SCORE","LOWEST SCORE BY THRESHOLD","MINSCORE"],TBody:"",TFoot:"",CreateHeaders:function(){var a=[];if(GenericSearch.DbSize>0){Heads.push("SEARCHED");Heads.push("SEARCH DB SIZE")}var b=
SMTestPage.Table1.Heads;a.push("<tr>");for(var c=0;c<b.length;c++)a.push("<th>"+b[c]+"</th>");a.push("</tr>");a="<thead>"+a.join("")+"</thead>";SMTestPage.Table1.THead=a},CreateRows:function(){var a=[],b=GenericSearch.EcidArray.length+GenericSearch.FilteredbyMaxSearch.length;a.push("<tr>");a.push("<td>"+b+"</td>");a.push("<td>"+GenericSearch.Variables.maxhit+"</td>");a.push("<td>"+GenericSearch.FilteredbyMaxHit.length+"</td>");a.push("<td>"+GenericSearch.Variables.maxsearch+"</td>");a.push("<td>"+
GenericSearch.Variables.adjusted_maxsearch+"</td>");a.push("<td>"+GenericSearch.FilteredbyMaxSearch.length+"</td>");a.push("<td>"+GenericSearch.Variables.threshold+"</td>");a.push("<td>"+GenericSearch.HighScore+"</td>");a.push("<td>"+GenericSearch.LowScore+"</td>");a.push("<td>"+(GenericSearch.Variables.minscore/100).toFixed(2)+"</td>");if(GenericSearch.DbSize>0){a.push("<td>"+GenericSearch.DbSearchedSize+"</td>");a.push("<td>"+GenericSearch.DbSize+"</td>")}a.push("</tr>");a="<tbody>"+a.join("")+
"</tbody>";SMTestPage.Table1.TBody=a},Create:function(){this.CreateHeaders();this.CreateRows();GenericSearch.Utility.TestWindow.document.getElementById("opa1").innerHTML="<table class=sortable1 border=1>"+SMTestPage.Table1.THead+SMTestPage.Table1.TBody+SMTestPage.Table1.TFoot+"</table>"}},Table2:{THead:"",Heads:["PREFIX","CAPTION","VALUE","WEIGHT"],TBody:"",Rows:[],TFoot:"",CreateHeaders:function(){var a=[],b=SMTestPage.Table2.Heads;a.push("<tr>");for(var c=0;c<b.length;c++)a.push("<th>"+b[c]+"</th>");
b=GenericSearch.FramesWithHits;c=0;for(var e=b.length;c<e;c++)a.push("<th>"+b[c]+"</th>");a.push("<th>HITS</th>");a.push("</tr>");a="<thead>"+a.join("")+"</thead>";SMTestPage.Table2.THead=a},CreateRows:function(){for(var a=[],b=SMTestPage.Table2.Rows,c=0;c<b.length;c++)if(b[c].length>0){a.push("<tr>");for(var e=0;e<b[c].length;e++)a.push("<td>"+b[c][e]+"</td>");a.push("</tr>")}a="<tbody>"+a.join("")+"</tbody>";SMTestPage.Table2.TBody=a},CreateFooters:function(){var a=[],b=SMTestPage.Table2.Heads;
a.push("<tr>");for(var c=0;c<b.length;c++){a.push("<td>");a.push(b[c]);a.push("</td>")}b=GenericSearch.FramesWithHits;c=0;for(var e=b.length;c<e;c++){a.push("<td>");a.push(b[c]);a.push("</td>")}a.push("<td>");a.push("HITS");a.push("</td>");a.push("</tr>");b=this.AddSummaryRow();a="<tfoot>"+a.join("")+b+"</tfoot>";SMTestPage.Table2.TFoot=a},AddSummaryRow:function(){var a=[];a.push("<tr>");for(var b=0;b<3;b++){a.push("<td>");a.push("</td>")}a.push("<td>");a.push(GenericSearch.AllScore.toString());a.push("</td>");
b=GenericSearch.FramesWithHits;for(var c=0,e=b.length;c<e;c++){var g=GenericSearch.TopicList._tmap[b[c]-1];if(typeof g=="object"&&g!=null)if(g.score>0&&g.frameid!=-1){a.push("<td>");a.push(g.hits.toString());a.push("</td>")}}a.push("</tr>");return a.join("")},CreateTableData:function(){for(var a=0;a<GenericSearch.EcidArray.length;a++){SMTestPage.Table2.Rows[a]=[];var b=GenericSearch.EcidArray[a];if(b.List.length>0&&b.List[0]>-1){SMTestPage.Table2.Rows[a].push(GenericSearch.Utility.GetPrefix(b));SMTestPage.Table2.Rows[a].push(GenericSearch.Utility.GetCaption(b));
SMTestPage.Table2.Rows[a].push(GenericSearch.Utility.GetEcid(b));SMTestPage.Table2.Rows[a].push(GenericSearch.Utility.GetWeight(b));for(var c=0,e=0,g=GenericSearch.FramesWithHits.length;e<g;e++){for(var f=true,h=0;h<b.List.length;h++)if(b.List[h]==GenericSearch.FramesWithHits[e]&&b.List[h]>0){f=false;break}if(f)SMTestPage.Table2.Rows[a].push("0");else{SMTestPage.Table2.Rows[a].push("1");c++}}SMTestPage.Table2.Rows[a].push(c.toString())}}},Create:function(){this.CreateTableData();this.CreateHeaders();
this.CreateRows();this.CreateFooters();if(SMTestPage.Table2.Rows.length>0)GenericSearch.Utility.TestWindow.document.getElementById("opa2").innerHTML="<table class=sortable border=1>"+SMTestPage.Table2.THead+SMTestPage.Table2.TBody+SMTestPage.Table2.TFoot+"</table>"}},Table3:{THead:"",Heads:["TOPIC NAME","ABSOLUTE SCORE","NORMALIZED SCORE","HITS","SEARCH ID"],TBody:"",Rows:[],TFoot:"",CreateHeaders:function(){var a=[],b=SMTestPage.Table3.Heads;a.push("<tr>");for(var c=0;c<b.length;c++)a.push("<th>"+
b[c]+"</th>");a.push("</tr>");a="<thead>"+a.join("")+"</thead>";SMTestPage.Table3.THead=a},CreateTableData:function(){for(var a=0,b=0,c=GenericSearch.TopicList._tmap.length,e=GenericSearch.TopicList._tmap[b];b<c;b++)if(e.frameid!=-1&&e.score>0){SMTestPage.Table3.Rows[a]=[];SMTestPage.Table3.Rows[a].push(GenericSearch.TopicList.GetName(b));SMTestPage.Table3.Rows[a].push(e.ascore);SMTestPage.Table3.Rows[a].push(e.score);SMTestPage.Table3.Rows[a].push(e.hits);SMTestPage.Table3.Rows[a].push(GenericSearch.TopicList.GetIndex(b));
a++}},CreateRows:function(){for(var a=[],b=SMTestPage.Table3.Rows,c=0;c<b.length;c++){a.push("<tr>");for(var e=0;e<b[c].length;e++)a.push("<td>"+b[c][e]+"</td>");a.push("</tr>")}a="<tbody>"+a.join("")+"</tbody>";SMTestPage.Table3.TBody=a},Create:function(){this.CreateTableData();this.CreateHeaders();this.CreateRows();if(SMTestPage.Table3.Rows.length>0){GenericSearch.Utility.TestWindow.document.getElementById("opa3").innerHTML="<table id=opa3t class=sortable border=1>"+SMTestPage.Table3.THead+SMTestPage.Table3.TBody+
SMTestPage.Table3.TFoot+"</table>";GenericSearch.Utility.TestWindow.Ready()}}},Table4:{Heads:["PREFIX (FILTERED OUT BY MAXHIT)","CAPTION","VALUE","WEIGHT","HITS"],TBody:"",Rows:[],TFoot:"",CreateHeaders:function(){var a=[],b=SMTestPage.Table4.Heads;a.push("<tr>");for(var c=0;c<b.length;c++)a.push("<th>"+b[c]+"</th>");a.push("</tr>");a="<thead>"+a.join("")+"</thead>";SMTestPage.Table4.THead=a},CreateTableData:function(){for(var a=0;a<GenericSearch.FilteredbyMaxHit.length;a++){SMTestPage.Table4.Rows[a]=
[];var b=GenericSearch.FilteredbyMaxHit[a];SMTestPage.Table4.Rows[a].push(GenericSearch.Utility.GetPrefix(b));SMTestPage.Table4.Rows[a].push(GenericSearch.Utility.GetCaption(b));SMTestPage.Table4.Rows[a].push(GenericSearch.Utility.GetEcid(b));SMTestPage.Table4.Rows[a].push(GenericSearch.Utility.GetWeight(b));SMTestPage.Table4.Rows[a].push(b.Hits)}},CreateRows:function(){for(var a=[],b=SMTestPage.Table4.Rows,c=0;c<b.length;c++){a.push("<tr>");for(var e=0;e<b[c].length;e++)a.push("<td>"+b[c][e]+"</td>");
a.push("</tr>")}a="<tbody>"+a.join("")+"</tbody>";SMTestPage.Table4.TBody=a},Create:function(){this.CreateTableData();this.CreateHeaders();this.CreateRows();if(SMTestPage.Table4.Rows.length>0)GenericSearch.Utility.TestWindow.document.getElementById("opa4").innerHTML="<table class=sortable border=1>"+SMTestPage.Table4.THead+SMTestPage.Table4.TBody+SMTestPage.Table4.TFoot+"</table>"}},Table5:{Heads:["PREFIX (DROPPED)","CAPTION","VALUE","WEIGHT"],TBody:"",Rows:[],TFoot:"",CreateHeaders:function(){var a=
[],b=SMTestPage.Table5.Heads;a.push("<tr>");for(var c=0;c<b.length;c++)a.push("<th>"+b[c]+"</th>");a.push("</tr>");a="<thead>"+a.join("")+"</thead>";SMTestPage.Table5.THead=a},CreateTableData:function(){for(var a=0;a<GenericSearch.FilteredbyMaxSearch.length;a++){SMTestPage.Table5.Rows[a]=[];var b=GenericSearch.FilteredbyMaxSearch[a];SMTestPage.Table5.Rows[a].push(GenericSearch.Utility.GetPrefix(b));SMTestPage.Table5.Rows[a].push(GenericSearch.Utility.GetCaption(b));SMTestPage.Table5.Rows[a].push(GenericSearch.Utility.GetEcid(b));
SMTestPage.Table5.Rows[a].push(GenericSearch.Utility.GetWeight(b))}},CreateRows:function(){for(var a=[],b=SMTestPage.Table5.Rows,c=0;c<b.length;c++){a.push("<tr>");for(var e=0;e<b[c].length;e++)a.push("<td>"+b[c][e]+"</td>");a.push("</tr>")}a="<tbody>"+a.join("")+"</tbody>";SMTestPage.Table5.TBody=a},Create:function(){this.CreateTableData();this.CreateHeaders();this.CreateRows();if(SMTestPage.Table5.Rows.length>0)GenericSearch.Utility.TestWindow.document.getElementById("opa5").innerHTML="<table class=sortable border=1>"+
SMTestPage.Table5.THead+SMTestPage.Table5.TBody+SMTestPage.Table5.TFoot+"</table>"}},TableE:{Heads:["PREFIX","CAPTION","VALUE"],TBody:"",TFoot:"",CreateHeaders:function(){var a=[],b=SMTestPage.TableE.Heads;a.push("<tr>");for(var c=0;c<b.length;c++)a.push("<th>"+b[c]+"</th>");a.push("</tr>");a="<thead>"+a.join("")+"</thead>";SMTestPage.TableE.THead=a},CreateRows:function(){for(var a=[],b=0;b<GenericSearch.EcidArray.length;b++){a.push("<tr>");var c=GenericSearch.EcidArray[b];a.push("<td>"+GenericSearch.Utility.GetPrefix(c)+
"</td>");a.push("<td>"+GenericSearch.Utility.GetCaption(c)+"</td>");a.push("<td>"+GenericSearch.Utility.GetEcid(c)+"</td>");a.push("</tr>")}a="<tbody>"+a.join("")+"</tbody>";SMTestPage.TableE.TBody=a},Create:function(){this.CreateHeaders();this.CreateRows();GenericSearch.Utility.TestWindow.document.getElementById("opa2").innerHTML="<table class=sortable border=1>"+SMTestPage.TableE.THead+SMTestPage.TableE.TBody+SMTestPage.TableE.TFoot+"</table>"}}},EMTestPage={Test:{GatewayUrl:"",CurrentApplication:"",
Mode:"",CurrentURL:"",CurrentLanguage:"",CurrentSearchExpression:"",CurrentSE:"",HelpUrl:""},Show:function(a){EMTestPage.Test=a;EMTestPage.EM_Table1.Create();EMTestPage.EM_Table2.Create()},EM_Table1:{THead:"",Heads:["VARIABLE","VALUE"],TBody:"",TFoot:"",CreateHeaders:function(){var a=[],b=EMTestPage.EM_Table1.Heads;a.push("<tr>");for(var c=0;c<b.length;c++)a.push("<th>"+b[c]+"</th>");a.push("</tr>");a="<thead>"+a.join("")+"</thead>";EMTestPage.EM_Table1.THead=a},CreateRows:function(){var a=[];a.push("<tr>");
a.push("<td>GATEWAY URL</td><td>"+decodeURIComponent(EMTestPage.Test.GatewayUrl)+"</td>");a.push("</tr>");a.push("<tr>");a.push("<td>APPLICATION NAME</td><td>"+EMTestPage.Test.CurrentApplication+"</td>");a.push("</tr>");a.push("<tr>");a.push("<td>APPLICATION TYPE</td><td>"+EMTestPage.Test.Mode+"</td>");a.push("</tr>");a.push("<tr>");a.push("<td>MAIN PLAYER URL</td><td>"+EMTestPage.Test.CurrentURL+"</td>");a.push("</tr>");a="<tbody>"+a.join("")+"</tbody>";EMTestPage.EM_Table1.TBody=a},Create:function(){EMTestPage.EM_Table1.CreateHeaders();
EMTestPage.EM_Table1.CreateRows();document.getElementById("em1").innerHTML="<table class=sortable1 border=1>"+EMTestPage.EM_Table1.THead+EMTestPage.EM_Table1.TBody+EMTestPage.EM_Table1.TFoot+"</table>"}},EM_Table2:{THead:"",Heads:["VARIABLE","VALUE"],TBody:"",TFoot:"",CreateHeaders:function(){var a=[],b=EMTestPage.EM_Table2.Heads;a.push("<tr>");for(var c=0;c<b.length;c++)a.push("<th>"+b[c]+"</th>");a.push("</tr>");a="<thead>"+a.join("")+"</thead>";EMTestPage.EM_Table2.THead=a},CreateRows:function(){var a=
[];a.push("<tr>");a.push("<td>LANGUAGE CODE</td><td>"+EMTestPage.Test.CurrentLanguage+"</td>");a.push("</tr>");a.push("<tr>");a.push("<td>PLAYER URL QUERY</td><td>"+EMTestPage.Test.CurrentSearchExpression.substr(1)+"</td>");a.push("</tr>");a.push("<tr>");a.push("<td>CTXEX</td><td>"+EMTestPage.Test.CurrentSE+"</td>");a.push("</tr>");a.push("<tr>");a.push("<td>HELP URL</td><td>"+EMTestPage.Test.HelpUrl+"</td>");a.push("</tr>");a="<tbody>"+a.join("")+"</tbody>";EMTestPage.EM_Table2.TBody=a},Create:function(){EMTestPage.EM_Table2.CreateHeaders();
EMTestPage.EM_Table2.CreateRows();document.getElementById("em2").innerHTML="<table class=sortable1 border=1>"+EMTestPage.EM_Table2.THead+EMTestPage.EM_Table2.TBody+EMTestPage.EM_Table2.TFoot+"</table>"}}};
function Initialize(){var a=document.createElement("div");a.setAttribute("id","dheader");document.body.appendChild(a);a=document.createElement("div");a.setAttribute("id","dcontent");document.body.appendChild(a);a="";if(mode=="exactmatch"){a+="<div id='em1'></div>";a+="<br /><hr /><br />";a+="<div id='em2'></div>"}else if(mode=="smartmatch"){a+="<div id='sm'></div>";a+="<div id='opa1'></div><div id='opa1f'></div><br /><div id='opa2'></div><br /><a id='anchor1' href='#anchor1'></a><div id='opa3'></div><div id='opa3f'></div><br /><div id='opa4'></div><br /><div id='opa5'></div>"}var b=
document.getElementById("dheader");if(b)b.innerHTML='<table width="450" border="0" cellspacing="0" cellpadding="0"><tr><td colspan="2"><img src=../../img/large_logo.gif border="0"></td></tr></table><br /><hr /><br />';if(b=document.getElementById("dcontent"))b.innerHTML=a}if(mode=="smartmatch")if(opener)GenericSearch=opener.SmartMatch.GenericSearch;window.ShowTestPage=EMTestPage.Show;
