PageSourceSearch

https://newsen.com/script/newsen.js

js newsen.com collected 2026-10-02 05:43:44 UTC 20,548 bytes, 736 lines download raw bytes

1
2function MM_openBrWindow(theURL,winName,features) {
3	window.open(theURL,winName,features);
4}
5
6function MM_swapImgRestore() { //v3.0
7  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
8}
9
10function MM_preloadImages() { //v3.0
11  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
12    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
13    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
14}
15
16function MM_findObj(n, d) { //v4.0
17  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
18    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
19  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
20  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
21  if(!x && document.getElementById) x=document.getElementById(n); return x;
22}
23
24function MM_swapImage() { //v3.0
25  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
26   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
27}
28
29function MM_showHideLayers() { //v6.0
30  var i,p,v,obj,args=MM_showHideLayers.arguments;
31  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
32    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
33    obj.visibility=v; }
34}
35
36//ÇѱÛüũ
37function hanCheck(Str)
38{
39	var Re=false;
40	for(i=0;i<Str.length;i++){
41		var a=Str.charCodeAt(i);
42		if (a > 128) {
43			Re=true;
44		}
45	}
46	return Re;
47}
48
49//ÆÄÀϸí ÇÑ±Û Ã¼Å©
50function filehanCheck(Str)
51{
52	var Arr = new Array();
53	var Re=false;
54	Arr=Str.split("\\");
55	return hanCheck(Arr[Arr.length-1]);
56}
57
58//¼ýÀÚüũ
59function numCheck(Str)
60{
61    var Re=true;
62	for(i=0;i<Str.length;i++){
63		var a=Str.charCodeAt(i);
64		if(a<48 || a>57)
65			Re=false;
66	}
67	return Re;		
68}
69
70//¿¬¶ôóüũ
71function telCheck(Tel1, Tel2, Tel3){
72	var Re=true;
73	if(!numCheck(Tel1) ||!numCheck(Tel2) ||!numCheck(Tel3) )
74		Re = false;
75	else if(Tel1.length <2 || Tel1.length >3)
76		Re = false;
77	else if(Tel2.length <3 || Tel2.length >4)
78		Re = false;
79	else if(Tel3.length <4 || Tel3.length >4)
80		Re = false;
81	return Re;
82}
83//<tr> ¹è°æ»ö ¹Ù²Ù±â
84function bgcolorChange(Obj,Color)
85{
86	Obj.backgroundColor = Color;
87}
88
89//Áֹεî·Ï¹øÈ£ üũ
90function bsshChek(ssh1,ssh2)
91{
92	var reginum = ssh1+ssh2;
93	var weight = "234567892345";
94	var sum = 0;
95	if (isNaN(reginum) || reginum.length != 13) return false;
96
97	for (var i=0;i<12;i++)
98		sum = sum + (reginum.substring(i,i+1) * weight.substring(i,i+1));
99
100	var result = (11 - (sum % 11)) % 10;
101	if (result != reginum.substring(12,13)) return false;
102	return true;
103}
104
105//¸¸³ªÀÌ Ã¼Å©
106function manChek(ssh1)
107{
108	var today = new Date();
109	var day = today.getDate();
110	var month = today.getMonth()+1;
111	var year = today.getYear();
112
113	ssh=year*10000+month*100+day;
114	ssh=ssh-ssh1-19000000;
115	return ssh;
116}
117
118//À̸ÞÀÏüũ
119function isEmail(str) {
120  var supported = 0;
121  if (window.RegExp) {
122    var tempStr = "a";
123    var tempReg = new RegExp(tempStr);
124    if (tempReg.test(tempStr)) supported = 1;
125  }
126  /*
127  var mail_array = str.split("@"); 
128  if(mail_array[1] == 'hanmail.net' || mail_array[1] == 'daum.net') 
129	  return false;
130  */
131  if (!supported) 
132    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
133  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
134  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
135  return (!r1.test(str) && r2.test(str));
136}
137
138//°´Ã¼ Ȱ¼º,ºñȰ¼º ¼³Á¤ ÇÔ¼ö
139function showObject(Obj,Boolen)
140{
141	if(Boolen){					//Ȱ¼ºÈ­
142		Obj.disabled = false;
143		Obj.style.background = "#ffffff";
144	}
145	else{						//ºñȰ¼ºÈ­
146		Obj.disabled = true;
147		Obj.style.background = "#dddddd";
148	}
149}
150//ÄíŰÀúÀå
151function setCookie( name, value, expiredays )
152{
153	var todayDate = new Date();
154	todayDate.setDate( todayDate.getDate() + expiredays );
155	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
156	//document.cookie = name + "=" + escape( value ) + "; path=/;";
157}
158
159function view_flash(L,W,H){
160	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+W+'" height="'+H+'">');
161	document.write('<param name="movie" value="'+L+'">');
162	document.write('<param name="quality" value="high">');
163	document.write('<param name="wmode" value="transparent">');
164	document.write('<embed src="'+L+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+W+'" height="'+H+'"></embed>');
165	document.write('</object>');
166}
167function view_flash2(L,W,H,P){
168	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+W+'" height="'+H+'">');
169	document.write('<param name="movie" value="'+L+'">');
170	document.write('<param name="quality" value="high">');
171	document.write('<param name="wmode" value="transparent">');
172	document.write('<param name="click" value="http://www.porart.com">');
173	if(P) document.write('<param name="FlashVars" value="'+P+'">');
174	document.write('<embed src="'+L+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+W+'" height="'+H+'"></embed>');
175	document.write('</object>');
176}
177
178function getflash(L,W,H)
179{
180	var flash = '';
181	flash += '<obj'+'ect classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+W+'" height="'+H+'">';
182	flash += '<param name="movie" value="'+L+'">';
183	flash += '<param name="quality" value="high">';
184	flash += '<param name="wmode" value="transparent">';
185	flash += '<emb'+'ed src="'+L+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+W+'" height="'+H+'"></embed>';
186	flash += '</object>';
187	return flash;
188}
189function WriteBanner(L,W,H)
190{
191	var flash = getflash(L,W,H);
192
193	var html = '';
194	html += '<style type="text/css">';
195	html += ' #banner_wrap {position:relative;z-index:4000;height:250px;}';
196	html += ' #banner {position:relative;width:250px;height:0px;z-index:4000;overflow:hidden;}';
197	html += '</style>';
198	html += '<div id="banner_wrap">';
199	html += ' <div><div id="banner"></div><div></div></div>';
200	html += flash;
201	html += '</div>';
202	document.writeln(html);
203}
204
205
206function Scroll() {
207	this.version = "0.2";
208	this.name = "NewsenScroll";
209	this.item = new Array();
210	this.itemcount = 0;
211	this.currentspeed = 0;
212	this.scrollspeed = 50;
213	this.pausedelay = 1000;
214	this.pausemouseover = false;
215	this.stop = false;
216	this.height = 100;
217	this.width = 100;
218	this.stopHeight=0;
219	this.i=0;
220	this.reloadData = 0;
221
222	this.add = function () {
223		var text = arguments[0];
224		this.item[this.itemcount] = text;
225		this.itemcount = this.itemcount + 1;
226	};
227
228	this.start = function () {
229		if ( this.itemcount == 1 ) {
230			this.add(this.item[0]);
231		}
232		this.display();
233		this.currentspeed = this.scrollspeed;
234		this.stop = true;
235		var _this = this;
236
237		setTimeout(function() { _this.scroll();},this.currentspeed);
238		window.setTimeout(function() { _this.stop = false;}, this.pausedelay);
239	};
240	
241	this.display = function () {
242		document.write('<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">');
243		for(var i = 0; i < this.itemcount; i++) {
244			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'; position:absolute; top:'+(this.height*i)+'px; ">');
245			document.write(this.item[i]);
246			document.write('</div>');
247		}
248		document.write('</div>');
249	};
250	
251	this.scroll = function () {
252		var _this = this;
253		if ( this.pause == true ) {
254			window.setTimeout(function() { _this.scroll();},this.pausedelay);
255			this.pause = false;
256		} else {
257			this.currentspeed = this.scrollspeed;
258			if ( !this.stop ) {
259				for (var i = 0; i < this.itemcount; i++) {
260					obj = document.getElementById(this.name+'item'+i).style;
261					obj.top = parseInt(obj.top) - 1;
262					if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1);
263					if ( parseInt(obj.top) == 0 ) {
264						this.currentspeed = this.pausedelay;
265						this.i = i;
266					}
267				}
268			}
269			if( !this.stop && i == this.itemcount && parseInt(obj.top) == 0 && this.reloadData == 1 ) {
270				this.reloadData = 0;
271			}else {
272				window.setTimeout(function() { _this.scroll();},this.currentspeed);
273			}
274		}
275	};
276	
277	this.rolling = function () {
278		if ( this.stop == false  ) {
279			this.next();
280		}
281		var _this = this;
282		window.setTimeout(function() { _this.rolling();},this.scrollspeed);
283	}
284	
285	this.onmouseover = function () {
286		if ( this.pausemouseover ) {
287			this.stop = true;
288		}
289	};
290	
291	this.onmouseout = function () {
292		if ( this.pausemouseover ) {
293			this.stop = false;
294		}
295	};
296	
297	this.next = function() {
298		this.stop = true;
299		for (i = 0; i < this.itemcount; i++) {
300			obj = document.getElementById(this.name+'item'+i).style;
301			if ( parseInt(obj.top) < 1 ) { 
302				height = this.height + parseInt(obj.top);
303				break;
304			}
305		}
306		for (i = 0; i < this.itemcount; i++) {
307			obj = document.getElementById(this.name+'item'+i).style;
308			if ( parseInt(obj.top) < 1 ) { 
309				obj.top = this.height * (this.itemcount-1);
310			} else {
311				obj.top = parseInt(obj.top) - height;
312			}
313		}
314		this.stop = false;
315		this.pause = true;
316	}
317
318	this.prev = function() {
319		this.stop = true;
320		for (i = 0; i < this.itemcount; i++) {
321			obj = document.getElementById(this.name+'item'+i).style;
322			if ( parseInt(obj.top) < 1 ) { 
323				height = parseInt(obj.top) * (-1);
324				break;
325			}
326		}
327		if ( height == 0 ) {
328			total_height = this.height * (this.itemcount-1);
329			for (i = 0; i < this.itemcount; i++) {
330				obj = document.getElementById(this.name+'item'+i).style;
331				if ( parseInt(obj.top) + 1 > total_height ) { 
332					obj.top = 0;
333				} else {
334					obj.top = parseInt(obj.top) + this.height;
335				}
336			}
337		} else {
338			for (i = 0; i < this.itemcount; i++) {
339				obj = document.getElementById(this.name+'item'+i).style;
340				if ( parseInt(obj.top) < 1 ) { 
341					obj.top = 0;
342				} else {
343					obj.top = parseInt(obj.top) + height;
344				}
345			}
346		}
347		this.stop = false;
348		this.pause = true;
349	}
350
351	this.unext = function () {
352		this.onmouseover();
353		this.next();
354		var _this = this;
355		window.setTimeout(function() { _this.onmouseout();},this.pausedelay);
356	}
357	
358	this.uprev = function () {
359		this.onmouseover();
360		this.prev();
361		var _this = this;
362		window.setTimeout(function() { _this.onmouseout();},this.pausedelay);
363	}
364}
365
366function NvScroll() {
367
368this.version = "0.2";
369this.name = "NvScroll";
370this.item = new Array();
371this.itemcount = 0;
372this.currentspeed = 0;
373this.scrollspeed = 50;
374this.pausedelay = 1000;
375this.pausemouseover = false;
376this.stop = false;
377this.type = 1;
378this.height = 100;
379this.width = 100;
380this.stopHeight=0;
381this.i=0;
382
383this.add = function () {
384	var text = arguments[0];
385	this.item[this.itemcount] = text;
386	this.itemcount = this.itemcount + 1;
387};
388
389this.add2 = function () {
390	var url = arguments[0];
391	var title = arguments[1];
392	this.item[this.itemcount] = "<a href=" + url + ">" + title + "</a>";
393	this.itemcount = this.itemcount + 1;
394};
395
396this.start = function () {
397	if ( this.itemcount == 1 ) {
398		this.add(this.item[0]);
399	}
400	this.display();
401	this.currentspeed = this.scrollspeed;
402	this.stop = true;
403	setTimeout(this.name+'.scroll()',this.currentspeed);
404	window.setTimeout(this.name+".stop = false", this.pausedelay);
405};
406
407this.display = function () {
408	document.write('<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">');
409	for(var i = 0; i < this.itemcount; i++) {
410		if ( this.type == 1) {
411			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'; position:absolute; top:'+(this.height*i)+'px; ">');
412			document.write(this.item[i]);
413			document.write('</div>');
414		} else if ( this.type == 2 ) {
415			document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i)+'px; width:'+this.width+'; position:absolute; top:0px; ">');
416			document.write(this.item[i]);
417			document.write('</div>');
418		}
419	}
420	document.write('</div>');
421};
422
423this.scroll = function () {
424
425	if ( this.pause == true ) {
426		window.setTimeout(this.name+".scroll()",this.pausedelay);
427		this.pause = false;
428	} else {
429
430	this.currentspeed = this.scrollspeed;
431	if ( !this.stop ) {
432		for (i = 0; i < this.itemcount; i++) {
433			obj = document.getElementById(this.name+'item'+i).style;
434			if ( this.type == 1 ) {
435				obj.top = parseInt(obj.top) - 1;
436				if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1);
437				if ( parseInt(obj.top) == 0 ) this.currentspeed = this.pausedelay;
438			} else if ( this.type == 2 ) {
439				obj.left = parseInt(obj.left) - 1;
440				if ( parseInt(obj.left) <= this.width * (-1) ) obj.left = this.width * (this.itemcount-1);
441				if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;
442			}
443		}
444	}
445
446		window.setTimeout(this.name+".scroll()",this.currentspeed);
447	}
448};
449
450this.onmouseover = function () {
451	if ( this.pausemouseover ) {
452		this.stop = true;
453	}
454};
455
456this.onmouseout = function () {
457	if ( this.pausemouseover ) {
458		this.stop = false;
459	}
460};
461
462this.next = function() {
463	this.stop = true;
464	for (i = 0; i < this.itemcount; i++) {
465		obj = document.getElementById(this.name+'item'+i).style;
466		if ( parseInt(obj.left) < 1 ) { 
467			width = this.width + parseInt(obj.left);
468			break;
469		}
470	}
471	for (i = 0; i < this.itemcount; i++) {
472		obj = document.getElementById(this.name+'item'+i).style;
473		if ( parseInt(obj.left) < 1 ) { 
474			obj.left = this.width * (this.itemcount-1);
475		} else {
476			obj.left = parseInt(obj.left) - width;
477		}
478	}
479	this.stop = false;
480	this.pause = true;
481}
482
483this.prev = function() {
484	this.stop = true;
485	for (i = 0; i < this.itemcount; i++) {
486		obj = document.getElementById(this.name+'item'+i).style;
487		if ( parseInt(obj.left) < 1 ) { 
488			width = parseInt(obj.left) * (-1);
489			break;
490		}
491	}
492	if ( width == 0 ) {
493		total_width = this.width * (this.itemcount-1);
494		for (i = 0; i < this.itemcount; i++) {
495			obj = document.getElementById(this.name+'item'+i).style;
496			if ( parseInt(obj.left) + 1 > total_width ) { 
497				obj.left = 0;
498			} else {
499				obj.left = parseInt(obj.left) + this.width;
500			}
501		}
502	} else {
503		for (i = 0; i < this.itemcount; i++) {
504			obj = document.getElementById(this.name+'item'+i).style;
505			if ( parseInt(obj.left) < 1 ) { 
506				obj.left = 0;
507			} else {
508				obj.left = parseInt(obj.left) + width;
509			}
510		}
511	}
512	this.stop = false;
513	this.pause = true;
514}
515
516
517}
518
519
520var msg_hidden_idle=null;
521function msg(id) {
522	if(navigator.userAgent.indexOf("Opera")>-1) return;
523	if(msg_hidden_idle) {
524		clearInterval(msg_hidden_idle);
525	}
526	var mid=document.getElementById(id);
527	mid.style.display='';
528	mid.style.visibility='visible';
529}
530
531function msg_hidden(id,f) {
532	if(navigator.userAgent.indexOf("Opera")>-1) return;
533	if(f==1) {
534		hidden(id);
535	}else{
536		msg_hidden_idle=setInterval("hidden('"+id+"')",100);
537	}
538}
539function hidden(id) {
540	var mid=document.getElementById(id);
541	mid.style.display='none';
542	mid.style.visibility='hidden';
543}
544
545function content_roll(div_id, banner_height, banner_delay, banner_speed, this_height)
546{
547	var div_tag = document.getElementById(div_id);
548	var table_tag, i;
549
550	this_height++;
551	this_height++;
552	if(this_height < banner_height) 
553	{
554		div_tag.style.top = -this_height;
555		setTimeout("content_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_speed);
556	} else {
557		table_tag = div_tag.getElementsByTagName("TABLE");
558		div_tag.appendChild(table_tag[0]);
559		div_tag.style.top = 0;
560		setTimeout("content_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
561	}
562	return true;
563}
564function content_roll_start(div_id, banner_height, banner_delay, banner_speed, this_height)
565{
566	setTimeout("content_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_delay);
567}
568
569function showRank(id)
570{
571	var p0 = document.getElementById("rank0");
572	var p1 = document.getElementById("rank1");
573	var p2 = document.getElementById("rank2");
574	var p3 = document.getElementById("rank3");
575	var p4 = document.getElementById("rank4");
576
577	var p = document.getElementById(id);
578
579	p0.style.display = (p==p0) ? '' : 'none';
580	p1.style.display = (p==p1) ? '' : 'none';
581	p2.style.display = (p==p2) ? '' : 'none';
582	p3.style.display = (p==p3) ? '' : 'none';
583	p4.style.display = (p==p4) ? '' : 'none';
584}
585
586//ÄíŰÀúÀå
587function setCookie( name, value, expiredays )
588{
589	var todayDate = new Date();
590	todayDate.setDate( todayDate.getDate() + expiredays );
591	todayDate.setHours(0);
592	todayDate.setMinutes(0);
593	todayDate.setSeconds(0);
594
595	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
596	//document.cookie = name + "=" + escape( value ) + "; path=/;";
597}
598
599function getCookie(name)
600{
601	var arg = name + "=";
602	var alen = arg.length;
603	var clen = document.cookie.length;
604	var i = 0;
605
606	while (i < clen) 
607	{
608		var j = i + alen;
609		if (document.cookie.substring(i, j) == arg) return getCookieVal (j);
610		i = document.cookie.indexOf(" ", i) + 1;
611		if (i == 0) break;
612	}
613	return null;
614}
615
616function getCookieVal(offset) 
617{
618	var endstr = document.cookie.indexOf (";", offset);
619	if (endstr == -1) endstr = document.cookie.length;
620	return unescape(document.cookie.substring(offset, endstr));
621}
622
623function Banner() {
624
625this.version = "0.2";
626this.name = "banner";
627this.basepath = "https://photo.newsen.com/images/banner/";
628this.item = new Array();
629this.itemcount = 0;
630this.height = 100;
631this.width = 100;
632this.i=0;
633
634this.add = function () {
635	var text = arguments[0];
636	this.item[this.itemcount] = text;
637	this.itemcount = this.itemcount + 1;
638};
639
640this.getSequence = function () {
641	var index = parseInt(getCookie(this.name));
642	if(!isNaN(index)) index = index+1;
643	else index=Math.floor(Math.random()*this.itemcount);
644
645	if(index<0 || index >= this.itemcount ) index=0;
646
647	setCookie(this.name, index, 1 );
648	return this.item[index];
649};
650
651}
652
653function initMoving(target, position, topLimit, btmLimit,side) {
654	if (!target)
655		return false;
656
657	var obj = target;
658	obj.initTop = position;
659	obj.topLimit = topLimit;
660	obj.bottomLimit = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight) - btmLimit - obj.offsetHeight;
661
662	obj.style.position = "absolute";
663	obj.top = obj.initTop;
664	obj.left = obj.initLeft;
665	obj.side = side;
666
667	if (typeof(window.pageYOffset) == "number") {	//WebKit
668		obj.getTop = function() {
669			return window.pageYOffset;
670		}
671	} else if (typeof(document.documentElement.scrollTop) == "number") {
672		obj.getTop = function() {
673			return Math.max(document.documentElement.scrollTop, document.body.scrollTop);
674		}
675	} else {
676		obj.getTop = function() {
677			return 0;
678		}
679	}
680
681	if (self.innerHeight) {	//WebKit
682		obj.getHeight = function() {
683			return self.innerHeight;
684		}
685	} else if(document.documentElement.clientHeight) {
686		obj.getHeight = function() {
687			return document.documentElement.clientHeight;
688		}
689	} else {
690		obj.getHeight = function() {
691			return 500;
692		}
693	}
694
695	if (self.innerWidth) {	//WebKit
696		obj.getWidth = function() {
697			return self.innerWidth-20;
698		}
699	} else if(document.body.clientWidth) {
700		obj.getWidth = function() {
701			return document.body.clientWidth;
702		}
703	} else if(document.documentElement.clientWidth) {
704		obj.getWidth = function() {
705			return document.documentElement.clientWidth;
706		}
707	} else {
708		obj.getWidth = function() {
709			return 1000;
710		}
711	}
712
713	obj.move = setInterval(function() {
714		if (obj.initTop > 0) {
715			pos = obj.getTop()+5;//+ obj.initTop;
716			if(pos<obj.initTop) pos = obj.initTop
717		} else {
718			pos = obj.getTop() + obj.getHeight() + obj.initTop;
719			//pos = obj.getTop() + obj.getHeight() / 2 - 15;
720		}
721
722		//if (pos > obj.bottomLimit)
723		//	pos = obj.bottomLimit;
724		if (pos < obj.topLimit)
725			pos = obj.topLimit;
726
727		var width = obj.getWidth()/2;//(document.body.scrollLeft + document.body.clientWidth)/2;
728		obj.left = (width-(997/2))+obj.side;
729		obj.style.left = (width-(997/2))+obj.side;
730
731
732		interval = obj.top - pos;
733		obj.top = obj.top - interval / 3;
734		obj.style.top = obj.top + "px";
735	}, 30)
736}

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.