1///window.onerror=null; 2 3var srcs = ["/ti/node.gif","/ti/node-last.gif", 4 "/ti/plus.gif","/ti/plus-last.gif", 5 "/ti/minus.gif","/ti/minus-last.gif"]; 6var imgs = new Array(); 7var TreeId="Tree"; 8for(i=0;i<srcs.length;i++) { 9 fn=srcs[i]; 10 im=new Image(); 11 im.src=fn; 12 imgs[i]=im; 13} 14 15 16 17function ChangeVisible(li) { 18 if ( li && li.tagName && li.tagName.toLowerCase() == 'li') { 19 for (var i = 0; i < li.childNodes.length; i++) { 20 ch=li.childNodes[i]; 21 if (ch && ch.tagName && ch.tagName.toLowerCase() == 'ul') { 22 opened = ch.style.display != 'none'; 23 if (opened) { 24 ch.style.display='none'; 25 if (li.parentNode.lastChild != li) 26 li.className = 'plus'; 27 else 28 li.className = 'plus-last'; 29 } else { 30 ch.style.display=''; 31 if (li.parentNode.lastChild != li) 32 li.className = 'minus'; 33 else 34 li.className = 'minus-last'; 35 } 36 } 37 } 38 } 39} 40 41 42function AnchorClick() { 43 n=this; 44 cpath=""; 45 while (n && n.id != TreeId) { 46 if (n && n.tagName && n.tagName.toLowerCase() == 'li') 47 cpath=n.id +";"+cpath; 48 n=n.parentNode; 49 } 50 if (cpath=="") { 51 code=""+document.location; 52 code=code.replace(/.*cpath=([t0-9;]+).*/, "$1"); 53 cpath=code; 54 if (cpath==""+document.location) cpath=""; 55 } 56 if (cpath!="") { 57 d=(this.href.indexOf("?")==-1)?"?":"&"; 58 this.href=this.href+d+"cpath="+cpath; 59 } 60 return true; 61} 62 63function NodeClick(e) { 64 if (!e) var e = window.event 65 if (!e) var e = window.Event 66 if (!e) return; 67 if (e.srcElement) n=e.srcElement; 68 if (e.target) n=e.target; 69 if (!n) return; 70 e.cancelBubble = true; 71 if (e.stopPropagation) e.stopPropagation(); 72 ChangeVisible(n); 73} 74 75 76function SetId(li) { 77 a=li.firstChild; 78 if (a && a.tagName && a.tagName.toLowerCase() == 'a') { 79 hr=""+a.href; 80 id=hr.replace(/.*\/([0-9]+)\/?/, "$1"); 81 li.id="t"+id; 82 } 83} 84 85function GotoID(root, id) { 86 if (document.location.pathname == "/") return; 87 88 var code=""+document.location; 89 if (code==id) id=""; 90 code=code.replace(/.*cpath=([t0-9;]+).*/, "$1"); 91 re = /[0-9]*/g; 92 ids = code.match(re); 93 94 if (id) { 95 n = document.getElementById("t"+id); 96 if (!n) return; 97 aa=n.getElementsByTagName('a'); 98 if (aa.length > 0) { 99 a=aa[0]; 100 a.className='active'; 101 } 102 } else { 103 for(i=ids.length-1;i>=0;i--) { 104 if (ids[i]!="") { 105 li = document.getElementById("t"+ids[i]); 106 if (li) { 107 aa=li.getElementsByTagName('a'); 108 if (aa.length > 0) { 109 a=aa[0]; 110 a.className='active'; 111 } 112 break; 113 } 114 } 115 } 116 } 117 118//alert('p='+Get_Cookie('cpath')); 119//str = ""+Get_Cookie('cpath'); 120 121//alert("ids="+ids); 122for(i=0;i<ids.length;i++) 123 if (ids[i]!='') { 124 li = document.getElementById("t"+ids[i]); 125 ChangeVisible(li); 126// alert("li.id=t"+ids[i]) 127 } 128 129 130} 131 132 133function init(RootName) { 134 if (!document.getElementById) return; 135 root = document.getElementById(RootName); 136 if (!root) return; 137 root.style.display='none'; 138 TreeId=RootName; 139 var nodes = root.getElementsByTagName('li'); 140 for (var li = 0; li < nodes.length; li++) { 141 n=nodes[li]; 142 SetId(n); 143 if (n.getElementsByTagName('ul').length > 0) { 144 n.onclick=NodeClick; 145 if (n.captureEvents) n.captureEvents(Event.CLICK); 146 ChangeVisible(n); 147 } else { 148 if (n.nextSibling) 149 n.className = '' 150 else 151 n.className = 'last'; 152 } 153 // AnchorClick 154 aa=n.getElementsByTagName('a'); 155 if (aa.length > 0) { 156 aa[0].onclick=AnchorClick; 157 } 158 } 159 160 var code=""+document.location; 161 code=code.replace(/.*category\/([0-9]+).*/, "$1"); 162 if (code == ""+document.location) code=""; 163 GotoID(root, code); 164 root.style.display=''; 165 166 window.onload=TreeOnLoad; 167 NewHrefsPather(); 168 169} 170 171 172 173function HrefsPatcher() { 174 aa=document.getElementsByTagName('a'); 175 for (i=0;i<aa.length;i++) { 176 if(aa[i].id != 'sp') 177 aa[i].onclick=AnchorClick; 178 } 179} 180 181function TreeOnLoad() { 182 HrefsPatcher(); 183} 184 185function NewHrefsPather() { 186 HrefsPatcher(); 187 if ((document.readyState!="loaded") && (document.readyState!="complete")) 188 setTimeout('NewHrefsPather()',200); 189 //window.status=document.readyState; 190 // setTimeout('window.status="ok"',50); 191} 192
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.