PageSourceSearch

https://royblakeley.name/scripts/user.js

js royblakeley.name collected 2026-10-02 13:40:00 UTC 23,762 bytes, 738 lines download raw bytes

1// ----------------------------------------------
2// This function dynamically generates flash file
3// parameters.
4// -----------------------------------------------
5function viewFlash(src, w, h, loop, play)
6{
7   var width = parseInt(w);
8   var height = parseInt(h);
9
10//alert('adWidth = '+width+ '\n Height = '+height);
11
12   eval("win = window.open('','Flash', 'toolbar=0,scrollbars=0,location=0,status=0,resizable=1,menubar=0,width="+width+",height="+height+"');");
13   win.document.writeln('<html>');
14   win.document.writeln('<head><title>Flash Movie</title></head>');
15   win.document.writeln('<body>');
16
17   // for IE users use <object> tag
18   objectTag = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"';
19   win.document.write(objectTag);
20   win.document.write(' width="'+width+'"');
21   win.document.writeln(' height="'+height+'">');
22   win.document.writeln('<param name="movie" value="'+src+'">');
23   win.document.writeln('<param name="loop" value="'+loop+'">');
24   win.document.writeln('<param name="play" value="'+play+'">');
25
26    // for Netscape users use <embed> tag
27   win.document.writeln('<embed src="'+src+'" loop="'+loop+'" play="'+play+'" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />'); 
28   win.document.writeln('</object>');
29   win.document.writeln('</body></html>');
30
31}
32
33// ----------------------------------------------
34// This function dynamically generates a chat 
35// pop-up. (ASV)
36// -----------------------------------------------
37function viewChat(instance_id, url)
38{
39   props = 'toolbar=0,scrollbars=0,location=0,status=0,resizable=1,menubar=0,width=584,height=410';
40   win = window.open('','Chat',props);
41   win.document.writeln('<html>');
42   win.document.writeln('<head><title>Chat Room</title></head>');
43   win.document.writeln('<body>');
44   win.document.writeln('<applet codebase="'+url+'" archive="multichat.jar" CODE="GUIClient.class" width="562" height="385" align="BOTTOM">');
45   win.document.writeln('<param name="CABBASE" value="multichat.cab">');
46   win.document.writeln('<param name="roomid" value="'+instance_id+'">');
47   win.document.writeln('</applet>');
48   win.document.writeln('</body></html>');
49}
50
51//----------------------------------------------------
52// Create a new pop up window for a given URL and type
53//----------------------------------------------------
54function popUp(URL, type) 
55{
56    switch(type)
57    {
58	 case "guestbook":
59	    width = 675;
60	    height = 500;
61	    break;	    
62	 case "forum":
63	    width = 675;
64	    height = 500;
65	    break;	    
66         default:
67            width = 550;
68            height = 580;
69   }
70
71   var token = URL.indexOf('?') > -1 ? '&amp;' : '?';
72   uniqueId = genUniqueId();
73   URL=URL+genUniqueParam(token);
74
75   var leftPosition  = (screen.width - width - 20) / 2;
76   var topPosition = (screen.height - height) / 4;
77
78   //open centered
79   eval("win = window.open(URL, '"+type+"', 'toolbar=0,scrollbars=1,location=0,status=1,resizable=1,menubar=0,width="+width+",height="+height+",left="+leftPosition+",top="+topPosition+"');");
80
81   if (parseInt(navigator.appVersion) >= 4) 
82   { 
83      win.window.focus(); 
84   }
85}
86
87//----------------------------------------------------
88
89// Create a new pop up window for a given MLS action 
90
91//----------------------------------------------------
92
93function popUpMLS(id) 
94
95{
96   var winWidth = 550;
97   var winHeight = 510;
98   eval("win = window.open('"+ window.parent.document.getElementById("ic_mls_url"+id).innerHTML +"', name='_blank');");
99  
100}
101//----------------------------------------------------
102
103// Create a new pop up window for a given referral action 
104
105//----------------------------------------------------
106
107function popUpEReferral(id, http, action, subject) 
108
109{
110   var winWidth = 550;
111   var winHeight = 510;
112   eval("win = window.open('','Referral', 'toolbar=0,scrollbars=1,location=0,status=0,resizable=1,menubar=0,width="+winWidth+",height="+winHeight+"');");
113
114   // clear the content of the document
115   win.document.open();
116   win.document.writeln('<html>');
117   win.document.writeln('<head><title>E-Referral Link</title><script language="JavaScript"> function checkemail(){ var toEmail=document.site_refer.ToEmail.value; fromEmail=document.site_refer.FromEmail.value;
117 var filter=/^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$/i; var toEmailArr = new Array(); toEmailArr = toEmail.split(","); var i=0; for (i=0;i<toEmailArr.length;i++) { if(filter.test(toEmailArr[i].replace(/^\\s\\s*/, "").replace(/\\s\\s*$/, ""))){ continue; }else{ alert("Please enter a valid e-mail address (e.g. [email protected])."); return false; } } if (filter.test(fromEmail)) { return true; } else { alert("Please enter a valid e-mail address (e.g. [email protected])."); return false; } } function onClickForm(){ document.site_refer.return_url.value=window.location.href; alert("Thank you. Your message has been submitted.");  self.close(); } </script><style type="text/css"> .fName { display:none; }  </style></head>');
118   win.document.writeln('<body>');
119   win.document.writeln('<h4>Invite People to this Website</h4>');
120   win.document.writeln('<h4 style="color:#0000CC">Enter email invitation details</h4>');
121   win.document.writeln('<center><table border="0">');
122   win.document.writeln('<form onSubmit="return onClickForm();return false;" name="site_refer" action="' +http+ action +'" method="post">');
123   win.document.writeln('<input type="hidden" value="" name="return_url"/>');
124   win.document.writeln('<div class="fName"><input type="text" name="FirstName" value=""></div></br>');
125
126   win.document.writeln('<table><tr><td><strong>*From Email Address:</strong></td><td><input type="text" style="width:350px;" name="FromEmail" value=""><br/></td></tr>');
127   win.document.writeln('<tr><td><strong>Name:</strong></td><td><input type="text" style="width:350px;" name="VisitorName" value=""><br/></td></tr>');
128   win.document.writeln('<tr><td><strong>Subject:</strong></td><td><input type="text" readonly style="width:350px;" name="Subject" value="'+ subject +'"><br/></td></tr>');
129   win.document.writeln('<tr><td><strong>*To Email Address:</strong></td><td><textarea rows="5" cols="50" style="width:350px;" name="ToEmail"></textarea><br/></td></tr>');
130   win.document.writeln('<tr><td><strong>Message:</strong></td><td><textarea rows="10" cols="50" style="width:350px;" readonly name="Message">'+window.parent.document.getElementById("ic_ereferral_mesg"+id).innerHTML+" "+ window.parent.document.getElementById("ic_ereferral_url"+id).innerHTML +'</textarea><br/></td></tr>');
131   //win.document.writeln('<textarea rows="10" cols="50" readonly name="Message" >'+mesg+'</textarea><br>');
132   //win.document.writeln('<tr><td>&nbsp;</td><td><div style="border: 1px solid #000000; padding: 6px"><b>Subject:</b> '+ subject +'<br><p><b>Message:</b>' + mesg +'</p></div></td></tr>');
133   win.document.writeln('<br/><tr><td>&nbsp;</td><td><input type="submit" name="Send" value="Send Invite" onclick="return checkemail();"/>&nbsp;<input type="button" name="Cancel" value="Cancel" onclick="javascript:self.close();"/></td></tr></table>');
134   win.document.writeln('</form></table><small>The email address your provide is being used solely to invite people to the website. Network Solutions will not collect your email address for marketing or any other prurposes.</small></center>');
135   win.document.writeln('</body></html>');
136   win.document.close();
137}
138
139// ----------------------
140// Generate Unique Id
141// ----------------------
142function genUniqueId()
143{
144   day = new Date();
145   return day.getTime();
146}
147
148// -------------------------------------------------
149// Generate Unique parameter to be appended to the URL
150// This will allow us to realod the HTML from the server
151// -------------------------------------------------
152function genUniqueParam(parameter)
153{
154   return parameter+'unique_id='+genUniqueId();
155}
156
157//
158// Display the target image for this thumbnail
159//
160function displayThumb(src, width, height, title)
161{
162   var winWidth = 650;
163   var winHeight = 510;
164
165   eval("win = window.open('','Thumb', 'toolbar=0,scrollbars=1,location=0,status=0,resizable=1,menubar=0,width="+winWidth+",height="+winHeight+"');");
166
167   // clear the content of the document
168   win.document.open();
169
170   win.document.writeln('<html>');
171
172   if(null != title && title != "")
173   {
174       win.document.writeln('<head><title>' + title + '</title></head>');
175   }
176   else
177   {
178       win.document.writeln('<head><title>Thumbnail Image</title></head>');
179   }
180   win.document.writeln('<body>');
181
182   win.document.writeln('<center><table border="0">');
183   if (width == 0)
184   {
185      win.document.writeln('<tr><td align="center"><img src="'+src+'"></td></tr>');
186   }
187   else if (height == 0)
188   {
189      win.document.writeln('<tr><td align="center"><img width="'+width+'" src="'+src+'"></td></tr>');   
190   } 
191   else
192   {
193      win.document.writeln('<tr><td align="center"><img width="'+width+'" height="'+height+'" src="'+src+'"></td></tr>');   
194   } 
195
196   if(null != title && title != "")
197   {
198       win.document.writeln('<tr><td align="center">
198'+title+'</td></tr>');
199   }
200   win.document.writeln('</table></center>');
201
202   win.document.writeln('</body></html>');
203   win.document.close();
204}
205//------------------------------------------------------------
206// Create a URL which is called from a mapquest Map to get Directions
207//-----------------------------------------------------------
208    function genURL(action,formname,newMap)
209    {
210		var sa = document.getElementById(formname).street_address.value;
211		var cy = document.getElementById(formname).city.value;
212		var st = document.getElementById(formname).state.value;
213		var pc = document.getElementById(formname).postal_code.value;
214		var ct = document.getElementById(formname).country.value;
215		var lat =document.getElementById(formname).latitude.value;
216		var lng =document.getElementById(formname).longitude.value;
217		var uid =document.getElementById(formname).userid.value;
218		var wid =document.getElementById(formname).website_id.value;
219		
220		if (newMap=='true'){
221		// To be added only if the user is a new user.
222			var street=document.getElementById(formname).toStreet.value;
223			var city= document.getElementById(formname).toCity.value;
224			var state=document.getElementById(formname).toState.value;
225			var zip=document.getElementById(formname).toZip.value;
226			var country=document.getElementById(formname).toCountry.value;
227			if(zip=="")
228			{
229				if(city=="" || state=="")
230				{
231					alert("Please select an address by clicking the radio button");
232					return false;
233				}
234			}
235		}
236		if(pc=="")
237		{
238			if(cy=="" || st=="")
239			{
240				alert(ICaltgopub.pe_txt1);
241				return false;
242			}
243		}
244		
245		
246		
247		//pallavi change to send the toAress also to get driving directions
248		var url = action+"&street_address="+sa+"&city="+cy+"&state="+st+"&postal_code="+pc+"&country="+ct
249					+"&latitude="+lat+"&longitude="+lng +"&userid="+uid+"&website_id="+wid;
250		if (newMap=='true'){
251		//WE have toaddress only for new user,old users used Lat and lon.			
252			url=url +"&toStreet="+street+"&toCity="+city+"&toState="+state+"&toZipCode="+zip+"&toCountry="+country
253		}				
254		popUp(url);
255
256   }
257//------------------------------------------------------------
258// Called from Map Element: This method will set hidden parameters
259//-----------------------------------------------------------
260    function setToAddress(street,city,state,zip,country,formname)
261    {
262		document.getElementById(formname).toStreet.value=street;
263		document.getElementById(formname).toCity.value=city;
264		document.getElementById(formname).toState.value=state;
265		document.getElementById(formname).toZip.value=zip;
266		document.getElementById(formname).toCountry.value=country;
267		
268		
269  }
270 
271//------------------------------------------------------------
272// Called from Map Element: This method disables the button Id that is passed
273//-----------------------------------------------------------
274   function disableZoomButton(buttonId,formname,relativepath){
275	    switch(buttonId)
276	    {
277		 case "minus_three":
278		   document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-in.png';
279		    break;	    
280		 case "minus_two":
281		    document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png';
282		    break;
283		case "minus_one":
284		    document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png';
285		    break;
286		 case "plus_two":
287		    document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png';
288		    break;
289		 case "plus_one":
290		    document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png';
291		    break;	
292		 case "center":
293		    document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-level-button.png';
294		    break;		 
295		 case "plus_three":
296		    document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/zoom-out.png';
297		    break;	
298		 case "original":
299		    document.getElementById(formname)[buttonId].src=relativepath+'images/photoalbum/center-map.png';
300		    break;
301		
302	  	 }
303   }
304
305//------------------------------------------------------------
306// Called from Map Element: This method enables all buttons
307//-----------------------------------------------------------  
308 function enableAllbutton(formname,relativepath){
309 	document.getElementById(formname).minus_three.src=relativepath+'images/photoalbum/zoom-in-over.png';
310 	document.getElementById(formname).minus_two.src=relativepath+'images/photoalbum/zoom-level-button-up.png';
311 	document.getElementById(formname).minus_one.src=relativepath+'images/photoalbum/zoom-level-button-up.png';
312 	document.getElementById(formname).plus_one.src=relativepath+'images/photoalbum/zoom-level-button-up.png';
313 	document.getElementById(formname).plus_two.src=relativepath+'images/photoalbum/zoom-level-button-up.png';
314 	document.getElementById(formname).plus_three.src=relativepath+'images/photoalbum/zoom-out-over.png';
315 	document.getElementById(formname).original.src=relativepath+'images/photoalbum/center-map-over.png';
316 	document.getElementById(formname).center.src=relativepath+'images/photoalbum/zoom-level-button-up.png';
317   } 
318 //------------------------------------------------------------
319// Called from Map Element: This is invoked when user clicks zoom buttons or pan buttons
320//-----------------------------------------------------------    
321    function genZoomURL(pageId,elementId,action,zoomLevel,symbolName,formname,panDirection,relativepath)
322    {
323		  enableAllbutton(formname,relativepath);
324		  disableZoomButton(zoomLevel,formname,relativepath);
325		  
326		  var uniqueId = genUniqueId();
327		  var url = action+"page_id="+pageId+"&element_id="+elementId
328							+ "&symbolName=" +symbolName+"&zoomLevel=" + zoomLevel 
329							+ "&panDirection=" + panDirection 
330							+ "&uniqueId=" +uniqueId;
331							
332		//popUp(url);
333		var divImageName= 'mapImage'+	elementId;	
334		document.getElementById(divImageName).style.display='none';
335		var divZoomName= 'zoomDiv'+	elementId;	
336		document.getElementById(divZoomName).style.display='block';
337		var iframeZoomName= 'zoomImageFrame'+	elementId;	
338		document.getElementById(iframeZoomName).src=url;
339	      
340					
341   }
342   
343
344 
345
346
347//-----------
348// BEGIN SCRIPTS FOR NAV MENUS
349//-----------
350
351// MENU GLOBALS
352
353//var navcontname='navcontainer';
354var navcontname;
355var menumainwidth=100;
356var navmode=0;
357// 0 is right 1 is left
358var fldr=0;
359var fldrorg=0;
360//containing menu ids
361var menuids=new Array();
362
363//item that opens this menu
364var menuparitem=new Array();
365var menuparindex=new Array();
366var itemchildren=new Array();
367var timerID;
368var menuactv=0;
369
370
371//item ids
372var itemids=new Array();
373var itemparids=new Array();
374var itemchild=new Array();
375var linkarr=new Array();
376
377var xSize=0;
378var ySize=0;
379
380
381//index to menuids and menuparitem arrays
382var menuids_ct=1;
383//index to itemids and itemmenu arrays
384var itemids_ct=0;
385var step_ct=0;
386
387var nodeposition=new Array();
388var nodelength=new Array();
389
390var absdepth=0;
391var deptharr=new Array();
392
393function parseMenus() {
394
395	if (document.getElementById('nav-left')) {
396		navmode=0;
397		fldr=0;
398	} else if (document.getElementById('nav-right')) {
399		navmode=1;
400		fldr=1;
401	} else if (document.getElementById('nav-top')) {
402		navmode=2;
403		fldr=0;
404	}
405	fldrorg=fldr;
406
407navcontname=document.getElementById('navcontainer');
408menuids[0]=navcontname;
409menuparitem[0]=navcontname;
410deptharr[0]=navcontname;
411nodeposition[0]=0;
412nodelength[0]=deptharr[0].childNodes.length;
413
414
415
416do {
417
418 if (deptharr[absdepth].childNodes[nodeposition[absdepth]].tagName=="DIV") {
419      if (deptharr[absdepth].childNodes[nodeposition[absdepth]].className.indexOf("submenu")!=-1) {
420        menuids[menuids_ct]=deptharr[absdepth].childNodes[nodeposition[absdepth]];
421        deptharr[absdepth+1]=menuids[menuids_ct];
422        menuparitem[menuids_ct]=itemids[itemids_ct-1];
423        menuparindex[menuids_ct]=itemids_ct;
424        itemchildren[menuids_ct]=menuids[menuids_ct];
425        itemchild[itemids_ct-1]=menuids[menuids_ct];
426	
427		//linkarr[itemids_ct].className="tertiary linkHasSub"; // use to apply arrows to subs using class "linkHasSub"
428		
429        rolladd="rollMenu(" + menuids_ct +")";
430		rolladdout="rollMenu(0)";
431		
432        eval('menuparitem[menuids_ct].onmouseover=function(){' + rolladd + '}');
433		eval('menuparitem[menuids_ct].onmouseout=function(){' + rolladdout + '}');
434        nodelength[absdepth+1]=deptharr[absdepth].childNodes[nodeposition[absdepth]].childNodes.length-1;
435        absdepth++;
436        nodeposition[absdepth]=-1;
437        menuids_ct++;
438} else {
439
440     itemids[itemids_ct]=deptharr[absdepth].childNodes[nodeposition[absdepth]];
441     itemparids[itemids_ct]=menuids[menuids_ct-1];
442     nodelength[absdepth+1]=deptharr[absdepth].childNodes[nodeposition[absdepth]].childNodes.length-1;
443     absdepth++;
444     deptharr[absdepth]=itemids[itemids_ct];
445     nodeposition[absdepth]=-1;
446  	 itemids_ct++;
447	 }
448
449 } else if (deptharr[absdepth].childNodes[nodeposition[absdepth]].tagName=="A") {
450	 deptharr[absdepth].childNodes[nodeposition[absdepth]].id="sublink" + itemids_ct;
451     linkarr[itemids_ct]=deptharr[absdepth].childNodes[nodeposition[absdepth]];
452	}
453
454    nodeposition[absdepth]++;
455    if (nodeposition[absdepth]>nodelength[absdepth]) {
456    do {
457        absdepth--;
458        nodeposition[absdepth]++;
459    } while (nodeposition[absdepth]>nodelength[absdepth]);
460    }
461
462} while (nodeposition[0]<nodelength[0]);
463
464
465}
466
467
468function positionMenus() {
469
470//menumainwidth=document.getElementById('navcontainer').clientWidth;
471menumainheight=document.getElementById('navcontainer').clientHeight;
472
473// Nav-Left
474if (navmode==0) {
475	
476	for (i=1; i<menuids.length; i++) {
477
478		ofst=0;
479		ofsl=0;
480		ofsw=0;
481		
482		menuids[i].style.position="absolute";
483	    menuids[i].style.zIndex="10000" + i;
484		ofsw=menuids[i].clientWidth;
485		menuids[i].style.width=ofsw;
486		
487		ofst=linkarr[menuparindex[i]].offsetTop;
488		ofsl=menuparitem[i].offsetLeft + menuparitem[i].clientWidth;
489		
490		edgeAdjuster(ofsl,ofst,ofsw,i);
491	}
492	
493// Nav-Right	
494} else if (navmode==1) {
495	
496	for (i=1; i<menuids.length; i++) {
497		ofst=0;
498		ofsl=0;
499		ofsw=0;
500		
501		menuids[i].style.position="absolute";
502		menuids[i].style.zIndex="10000" + i;
503		ofsw=menuids[i].clientWidth;
504		menuids[i].style.width=ofsw;
505		
506		ofst=linkarr[menuparindex[i]].offsetTop;
507		ofsl=menuparitem[i].offsetLeft - menuids[i].clientWidth;
508
509		edgeAdjuster(ofsl,ofst,ofsw,i);
510	}
511
512// Nav-Top
513} else if (navmode==2) {
514 	
515 	for (i=1; i<menuids.length; i++) {
516	     ofst=0;
517 		 ofsl=0;
518 		 ofsw=0;
519 		 
520    	 menuids[i].style.zIndex="10000" + i;
521 		 ofsw=menuparitem[i].clientWidth;
522 		 
523 		 if (menuparitem[i].offsetParent.id) {
524 		 //ofst=menumainheight + 2;
525 		 ofst=menuparitem[i].clientHeight;
526	     } else {
527	     ofst=linkarr[menuparindex[i]].offsetTop;
528         ofsl=menuparitem[i].offsetLeft + menuparitem[i].clientWidth;
529	     }
530	     
531	     
532	     edgeAdjuster(ofsl,ofst,ofsw,i);
533	}
534 }
535
536}
537
538function edgeAdjuster(xfs,yfs,wdt,i) {
539  
540  getPageSizes();
541  
542        xpg=0;
543		ypg=0;
544		myobj=menuids[i];
545		do {
546		xtest = myobj.offsetLeft;
547		ytest = myobj.offsetTop;
548
549		if (myobj.offsetLeft>0) xpg += myobj.offsetLeft;
550		if (myobj.offsetTop>0) ypg += myobj.offsetTop;
551		myobj= myobj.offsetParent;
552
553		} while ((myobj.tagName!="BODY")&&(myobj.tagName!="HTML"));
554  
555if((navmode==0)||(navmode==2)) {
556  if (fldr==0) {
557  if ((xpg + xfs + wdt)>xSize) {
558  
559  if(xpg>wdt) xfs-=wdt*2;
560 
561  fldr=1;
562  }
563  } else {
564  if ((xpg -xfs)<0) {
565  
566  fldr=0;
567  } else {
568  
569  xfs-=wdt*2;
570  
571  }
572
573  }
574}
575
576if (navmode==1) {
577
578	 if (fldr==0) {
579  if ((xpg + wdt*2)>=xSize) {
580   
581  fldr=1;
582  } else {
583  
584  xfs+=wdt*2;
585  
586  }
587  
588  
589  } else {
590  if ((xpg-wdt)<=-1) {
591
592  xfs+=wdt*2;
593  fldr=0;
594  
595  }
596  
597  }
598
599}
600
601  if(navmode==2) {
602  
603  if(menuids[i].offsetParent.offsetParent.id!="navcontainer") {
604  menuids[i].style.left=xfs + "px";
605  }
606  
607  } else {
608  
609  menuids[i].style.left=xfs + "px";
610  }	
611  menuids[i].style.top=yfs + "px";
612  menuids[i].style.visibility="hidden";
613  
614}
615
616//--end  function menuSetPositions() --
617
618function getPageSizes() {
619	if(typeof(window.innerWidth)=='number') {
620    //IE
621    xSize=window.innerWidth;
622    ySize=window.innerHeight;
623  } else if(document.documentElement &&
624      (document.documentElement.clientWidth||document.documentElement.clientHeight)) {
625    //IE 6 xhtml
626    xSize=document.documentElement.clientWidth;
627    ySize=document.documentElement.clientHeight;
628  } else if(document.body&&(document.body.clientWidth||document.body.clientHeight)) {
629    //IE 4 5 or 6 standard
630    xSize=document.body.clientWidth;
631    ySize=document.body.clientHeight;
632  }
633}
634
635
636function processMenus() {
637	parseMenus();
638	positionMenus();
639}
640
641function resetMenus() {
642	
643	for (i=1; i<menuids.length; i++) {
644	
645  		menuids[i].style.left= "0px";
646 	
647	}
648	fldr=fldrorg;
649	positionMenus();
650
651}
652
653function rollMenu(ref)
654{
655olx=xSize;
656oly=ySize;
657
658getPageSizes();
659
660if ((olx!=xSize)||(oly!=ySize)) resetMenus();
661
662  if(ref>0) {
663	clearTimeout(timerID);
664	turnOff(ref);
665    menuactv=1;
666    itemchildren[ref].style.visibility="visible";
667    menuparitem[ref].style.zIndex=10000-ref;
668    itemchildren[ref].style.zIndex=10000+ref;
669  }
670  else
671  {
672    menuactv=0;
673    clearTimeout(timerID);
674    timerID = setTimeout('turnOff()', 300);
675  }
676}
677
678function turnOff(ref)
679{
680 if (menuactv==0) {
681   for (i=0; i<itemchildren.length; i++) {
682        if ((itemchildren[i]) && (i!=ref)) itemchildren[i].style.visibility="hidden";
683   }
684  }
685
686}
687
688//-----------
689// END SCRIPTS FOR NAV MENUS
690//-----------
691
692
693
694//var colheightofs = 31;
695var colheightofs = 0;
696var pngXOffset=0;
697var pngYOffset=0;
698function sizeColumns() {
699
700if (window.pngHeight) {
701	pngHeight();
702}
703
704if (!document.getElementById('column1')){
705	return;
706}
707
708coldvht1=document.getElementById('column1').offsetHeight;
709coldvht2= document.getElementById('column2') ? document.getElementById('column2').offsetHeight : 0;
710coldvht3=document.getElementById('column3') ? document.getElementById('column3').offsetHeight : 0;
711
712
713if (coldvht1>coldvht2) coldvht2=coldvht1;
714else if (coldvht2>=coldvht1) coldvht1=coldvht2;
715if (coldvht3>=coldvht1) 
716{
717  coldvht1=coldvht3;
718  coldvht2=coldvht3;
719}
720else 
721{
722  coldvht3=coldvht1;
723}
724
725coldvht3=coldvht1;
726coldvht2=coldvht1;
727
728document.getElementById('colbody1').style.height = (coldvht1 - colheightofs) + 'px';
729
730	if(document.getElementById('colbody2')) {	
731		document.getElementById('colbody2').style.height = (coldvht2 - colheightofs) + 'px';
732		return;
733	}
734	
735	if(document.getElementById('colbody3')) {
736		document.getElementById('colbody3').style.height = (coldvht3 - colheightofs) + 'px';	
737	}
738}

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.