PageSourceSearch

https://eoloitaly.ru/scripts/js/js.js?1439543537

js eoloitaly.ru collected 2026-10-05 00:26:52 UTC 18,337 bytes, 606 lines download raw bytes

1$(document).ready(function(){
2
3/*********** Инициализация форм **********/
4  var startRecall = new recall('#myModal','Online заявка');
5  $('#myModal').modal('hide');
6  $('.call').click(function(){
7     $('#myModal').modal('show');
8     return false;
9  });
10  
11  var startRecall2 = new recall('#myModal2','Заказ');
12  $('#myModal2').modal('hide');
13  $('.orderb').click(function(){
14     $('#myModal2').modal('show'); 
15     return false;
16  });
17  
18  $('#Registr').modal('hide');
19  $('#registr-a').click(function(){
20     $('#Registr').modal('show');
21     return false;
22  });
23  
24  $('#Authoriz').modal('hide');
25    $('#authoriz-a').click(function(){
26    $('#Authoriz').modal('show');
27    return false;
28  }); 
29   
30/*************** Настройки лайтбокса *****************/ 
31  $('.fancybox').fancybox({
32		openEffect	: 'fade',
33    	closeEffect	: 'none',
34		prevEffect : 'fade',
35		nextEffect : 'fade',
36		helpers: {
37			title : {
38				type : 'over' /***** 'float', 'inside', 'outside' or 'over' ****/
39			}
40		},
41			afterShow: function() {
42				var imageWidth = $(".fancybox-image").width() - 20;
43				var fanwraptit = $(".fancybox-title-over-wrap");
44				fanwraptit.css({
45					"width": imageWidth,
46				});
47				$(".fancybox-outer").hover(
48					function(){
49						fanwraptit.fadeIn(200);
50					},
51					function(){
52						fanwraptit.fadeOut(200);
53					})
54				
55			}
56		
57});
58
59	var searchtext = $("#search-text").val();
60	$("#search-text").focus(function(){
61		var poiskVal = $(this).val();
62		if(poiskVal == searchtext){
63			$(this).attr('value', '');
64		}
65	});
66
67	$("#search-text").on("blur", function(){
68		var poisk = $(this).val();
69		if(poisk == ''){
70			$(this).removeAttr('style').attr('value', searchtext);
71		}
72	});
73	
74
75    if(document.getElementById('mFormZakaz')){
76		var mFormZakaz = new mandatory2('#mFormZakaz');
77	}
78	if(document.getElementById('reg-form')){
79		var mregForm = new mandatory2('#reg-form');
80	}
81	if(document.getElementById('Authoriz')){
82
83		$("#auth-form-butt").on("click", function(){
84
85			var mauthForm = new authorization('#Authoriz','Message34');
86			return false;
87		});
88	}
89	
90	$('#issue_order').on("click",function(){
91		
92        $('#zakazio').css('display', 'block');
93        $('#issue_order').hide();
94    });
95	
96});
97
98function formatPrice(price) {
99	price=price+' ';
100	price=price.replace(/\s/,'');
101	new_price='';
102	while(Number(price)/1000>=1) {
103		new_price=price.substring(price.length-3)+" "+new_price;
104		price=price.substring(0,price.length-3);
105	}
106	return price+" "+new_price;
107}
108
109function plusMinus(selector, korz){
110	this.selector = selector;
111	this.korz = "";
112	this.arrPrice = {};
113	this.arrCnt = {};
114	this.arrSum = {};
115	this.Total = 0;
116	this.TotalCnt = 0;
117	if(korz){this.korz = korz;}
118	this.init();
119}
120
121plusMinus.prototype.init = function(){
122	var darkSide = this;
123	$("."+darkSide.selector+"-plus").click(function(){
124		darkSide.Harvester($(this).parents('.'+darkSide.selector), "plus");
125		return false;
126	});
127	$("."+darkSide.selector+"-minus").click(function(){
128		darkSide.Harvester($(this).parents('.'+darkSide.selector), "minus");
129		return false;
130	});
131	$('#korz-table .numSave').keyup(function(){
132		var str = $(this).val();
133		str = str.replace(/\D/gi,"");
134		if(str == "" || str=="0")str = "1";
135		$(this).val(str);
136		if($(this).val())darkSide.Harvester($(this).parents('.'+darkSide.selector), "");
137	});
138}
139
140plusMinus.prototype.Harvester = function(selector,mathem){
141	var darkSide = this;
142	var iD = selector.attr('id');
143	var cnt = Number($("#"+iD+"_cnt").val());
144	
145	darkSide.Total = 0;
146	darkSide.TotalCnt = 0;
147	if(!mathem)mathem==""; 
148	if(mathem == "plus")cnt++;
149	if(mathem == "minus" && cnt>1)cnt--;
150	$("#"+iD+"_cnt").val(cnt);
151	
152	if(darkSide.korz){
153		$("."+darkSide.selector).each(function(){
154			var tid = $(this).attr('id'); tid = tid.split("_"); tid = tid[1];
155			var Pr = $("."+$(this).attr('id')+"_priceRow").text();
156			Pr = Pr.replace(/[^\d\.]/g,"");
157			Pr = parseFloat(Pr,10);
158			var Cnt = $("#"+$(this).attr('id')+"_cnt").val();
159			var zen = formatPrice((Pr*Cnt).toFixed(2));
160			$("."+$(this).attr('id')+"_priceRowTotal").text(zen+" руб.");
161			darkSide.arrPrice[tid]=Pr;
162			darkSide.arrCnt[tid]=Cnt;
163			darkSide.arrSum[tid]=((Pr*Cnt).toFixed(2))*1;
164		});
165		$.each(darkSide.arrSum, function(k,v){
166			darkSide.Total+=v;
167		});
168		$.each(darkSide.arrCnt, function(k,v){
169			darkSide.TotalCnt=darkSide.TotalCnt+Number(v);
170		});
171		darkSide.Calc();
172	}
173}
174
175plusMinus.prototype.Calc = function(){
176	var darkSide = this;
177	$.getJSON("/scripts/korzina.php",{checkingBySHCG:1, Cnt:darkSide.arrCnt, Sum:darkSide.arrSum},function(data){
178		if(data == 1){
179			$('.cntBySHCG_priceTotal').text("Итого: "+formatPrice(darkSide.Total)+" руб.");
180			if(document.getElementById('tov-sum-all'))$('#tov-sum-all').text(formatPrice(darkSide.Total));
181			if(document.getElementById('tov-cnt-all'))$('#tov-cnt-all').text(formatPrice(darkSide.TotalCnt));
182		}
183	});
184	
185}
186
187function registration (form){
188	this.form = form;
189	this.arrInfo = {};
190	this.table = $(form+" #reg-MessageX").val();
191	this.init();
192}
193
194registration.prototype.init = function(){
195	var darkSide = this;
196	$(darkSide.form+" .reg-arrInfo").each(function(){
197		darkSide.arrInfo[$(this).attr('name')] = $(this).val();
198	});
199	$.getJSON("/scripts/registration.php", {registration:1, arrInfo:darkSide.arrInfo, table:darkSide.table}, function(data){
200		if(data.error == 1) {$(darkSide.form+" .alert").remove(); $(darkSide.form+" .modal-body").prepend(data.message);}
201		else if(data.error == 0){ 
202			$(darkSide.form+" .modal-footer").remove();
203			$(darkSide.form+" .modal-body").html(data.message);
204			setTimeout(function(){$(darkSide.form).modal('hide'); document.location = "/";}, 6000);
205		}
206		
207	});
208}
209
210function mandatory2 (form){
211	this.form = form;
212	this.error = 1;
213	$(form).find('.submit').attr('disabled','disabled');
214	$(form).find('.submit').addClass('disabled');
215	this.init();
216}
217
218mandatory2.prototype.init = function(){
219	var darkSide = this;
220	darkSide.Checking();
221	///////////////////////////////////KEYUP
222	$(darkSide.form+" .mandatory").on("keyup", function(){
223		var error = 0;
224		if($(this).val()==''){
225			error = 1;
226		}
227		if($(this).hasClass('email')){
228			var val = $(this).val();
229			var reg =/[0-9a-z_]+@[0-9a-z_^\.-]+\.[a-z]{2,5}$/i;
230			if(!val.match(reg))error = 1;
231		}
232		if(error){
233			$(this).parents('.control-group').addClass('error');
234		}else $(this).parents('.control-group').removeClass('error');
235		darkSide.Checking();
236	});
237	$(darkSide.form+" .confirm-password").on("keyup", function(){
238		if($(this).val()!=$(darkSide.form+" .password").val()) $(this).parents('.control-group').addClass('error');
239		else $(this).parents('.control-group').removeClass('error');
240		darkSide.Checking();
241	});
242	
243	///////////////////////////////////BLUR
244	$(darkSide.form+" .mandatory").on("blur", function(){
245		var error = 0;
246		if($(this).val()==''){
247			error = 1;
248		}
249		if($(this).hasClass('email')){
250			var val = $(this).val();
251			var reg =/[0-9a-z_]+@[0-9a-z_^\.-]+\.[a-z]{2,5}$/i;
252			if(!val.match(reg))error = 1;
253		}
254		if(error){
255			$(this).parents('.control-group').addClass('error');
256		}else $(this).parents('.control-group').removeClass('error');
257		darkSide.Checking();
258	});
259	$(darkSide.form+" .confirm-password").on("blur", function(){
260		if($(this).val()!=$(darkSide.form+" .password").val()) $(this).parents('.control-group').addClass('error');
261		else $(this).parents('.control-group').removeClass('error');
262		darkSide.Checking();
263	});
264	$('#reg-form-butt').click(function(){
265		if(!darkSide.error)var reg = new registration(darkSide.form);
266    });
267}
268
269mandatory2.prototype.Checking = function(){
270	var darkSide = this;
271	var error = 0;
272
273	$(darkSide.form+' .error').each(function(){
274		error = 1;
275		$(darkSide.form+' .submit').addClass('disabled');
276	});
277	$(darkSide.form+' .mandatory').each(function(){
278		if($(this).val()==""){
279			error = 1;
280		}
281	});
282	$(darkSide.form+' .email').each(function(){
283		if($(this).val()==""){
284			error = 1;
285		}
286	});
287	
288	if($(darkSide.form+' .password').val()==""){
289		error = 1;
290	}
291	if($(darkSide.form+' .confirm-password').val()==""){
292		error = 1;
293	}
294		
295	if(!error){
296		$(darkSide.form+' .submit').removeAttr('disabled');
297		$(darkSide.form+' .submit').removeClass('disabled');
298		darkSide.error = 0;
299	}else{
300		$(darkSide.form+' .submit').attr('disabled','disabled');
301		$(darkSide.form+' .submit').addClass('disabled');
302		darkSide.error = 1;
303	}
304}
305
306function authorization (form, table){
307	this.login = $(form+" input[type='text']").val();
308	this.password = $(form+" input[type='password']").val();
309	this.form = form;
310	this.table = table;
311	this.init();
312}
313
314authorization.prototype.init = function(){
315	var darkSide = this;
316	$.getJSON("/scripts/authorization.php", {authorization:1, table: darkSide.table, login: darkSide.login, password: darkSide.password}, function(data){
317		if(data.error==1){
318			$(darkSide.form+" .alert").remove();
319			$(darkSide.form+" .modal-body").prepend(data.message);
320		}else if(data.error==0){
321			$(darkSide.form+" .modal-body").html(data.message);
322			setTimeout(function(){$(darkSide.form).modal('hide'); document.location = "/";}, 1500);
323		}
324	});
325}
326function md5 ( str ) {	// Calculate the md5 hash of a string
327	// 
328	// +   original by: Webtoolkit.info (http://www.webtoolkit.info/)
329	// + namespaced by: Michael White (http://crestidg.com)
330
331	var RotateLeft = function(lValue, iShiftBits) {
332			return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits));
333		};
334
335	var AddUnsigned = function(lX,lY) {
336			var lX4,lY4,lX8,lY8,lResult;
337			lX8 = (lX & 0x80000000);
338			lY8 = (lY & 0x80000000);
339			lX4 = (lX & 0x40000000);
340			lY4 = (lY & 0x40000000);
341			lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF);
342			if (lX4 & lY4) {
343				return (lResult ^ 0x80000000 ^ lX8 ^ lY8);
344			}
345			if (lX4 | lY4) {
346				if (lResult & 0x40000000) {
347					return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);
348				} else {
349					return (lResult ^ 0x40000000 ^ lX8 ^ lY8);
350				}
351			} else {
352				return (lResult ^ lX8 ^ lY8);
353			}
354		};
355
356	var F = function(x,y,z) { return (x & y) | ((~x) & z); };
357	var G = function(x,y,z) { return (x & z) | (y & (~z)); };
358	var H = function(x,y,z) { return (x ^ y ^ z); };
359	var I = function(x,y,z) { return (y ^ (x | (~z))); };
360
361	var FF = function(a,b,c,d,x,s,ac) {
362			a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));
363			return AddUnsigned(RotateLeft(a, s), b);
364		};
365
366	var GG = function(a,b,c,d,x,s,ac) {
367			a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));
368			return AddUnsigned(RotateLeft(a, s), b);
369		};
370
371	var HH = function(a,b,c,d,x,s,ac) {
372			a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));
373			return AddUnsigned(RotateLeft(a, s), b);
374		};
375
376	var II = function(a,b,c,d,x,s,ac) {
377			a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));
378			return AddUnsigned(RotateLeft(a, s), b);
379		};
380
381	var ConvertToWordArray = function(str) {
382			var lWordCount;
383			var lMessageLength = str.length;
384			var lNumberOfWords_temp1=lMessageLength + 8;
385			var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1 % 64))/64;
386			var lNumberOfWords = (lNumberOfWords_temp2+1)*16;
387			var lWordArray=Array(lNumberOfWords-1);
388			var lBytePosition = 0;
389			var lByteCount = 0;
390			while ( lByteCount < lMessageLength ) {
391				lWordCount = (lByteCount-(lByteCount % 4))/4;
392				lBytePosition = (lByteCount % 4)*8;
393				lWordArray[lWordCount] = (lWordArray[lWordCount] | (str.charCodeAt(lByteCount)<<lBytePosition));
394				lByteCount++;
395			}
396			lWordCount = (lByteCount-(lByteCount % 4))/4;
397			lBytePosition = (lByteCount % 4)*8;
398			lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80<<lBytePosition);
399			lWordArray[lNumberOfWords-2] = lMessageLength<<3;
400			lWordArray[lNumberOfWords-1] = lMessageLength>>>29;
401			return lWordArray;
402		};
403
404	var WordToHex = function(lValue) {
405			var WordToHexValue="",WordToHexValue_temp="",lByte,lCount;
406			for (lCount = 0;lCount<=3;lCount++) {
407				lByte = (lValue>>>(lCount*8)) & 255;
408				WordToHexValue_temp = "0" + lByte.toString(16);
409				WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length-2,2);
410			}
411			return WordToHexValue;
412		};
413
414	var x=Array();
415	var k,AA,BB,CC,DD,a,b,c,d;
416	var S11=7, S12=12, S13=17, S14=22;
417	var S21=5, S22=9 , S23=14, S24=20;
418	var S31=4, S32=11, S33=16, S34=23;
419	var S41=6, S42=10, S43=15, S44=21;
420
421	str = this.utf8_encode(str);
422	x = ConvertToWordArray(str);
423	a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;
424
425	for (k=0;k<x.length;k+=16) {
426		AA=a; BB=b; CC=c; DD=d;
427		a=FF(a,b,c,d,x[k+0], S11,0xD76AA478);
428		d=FF(d,a,b,c,x[k+1], S12,0xE8C7B756);
429		c=FF(c,d,a,b,x[k+2], S13,0x242070DB);
430		b=FF(b,c,d,a,x[k+3], S14,0xC1BDCEEE);
431		a=FF(a,b,c,d,x[k+4], S11,0xF57C0FAF);
432		d=FF(d,a,b,c,x[k+5], S12,0x4787C62A);
433		c=FF(c,d,a,b,x[k+6], S13,0xA8304613);
434		b=FF(b,c,d,a,x[k+7], S14,0xFD469501);
435		a=FF(a,b,c,d,x[k+8], S11,0x698098D8);
436		d=FF(d,a,b,c,x[k+9], S12,0x8B44F7AF);
437		c=FF(c,d,a,b,x[k+10],S13,0xFFFF5BB1);
438		b=FF(b,c,d,a,x[k+11],S14,0x895CD7BE);
439		a=FF(a,b,c,d,x[k+12],S11,0x6B901122);
440		d=FF(d,a,b,c,x[k+13],S12,0xFD987193);
441		c=FF(c,d,a,b,x[k+14],S13,0xA679438E);
442		b=FF(b,c,d,a,x[k+15],S14,0x49B40821);
443		a=GG(a,b,c,d,x[k+1], S21,0xF61E2562);
444		d=GG(d,a,b,c,x[k+6], S22,0xC040B340);
445		c=GG(c,d,a,b,x[k+11],S23,0x265E5A51);
446		b=GG(b,c,d,a,x[k+0], S24,0xE9B6C7AA);
447		a=GG(a,b,c,d,x[k+5], S21,0xD62F105D);
448		d=GG(d,a,b,c,x[k+10],S22,0x2441453);
449		c=GG(c,d,a,b,x[k+15],S23,0xD8A1E681);
450		b=GG(b,c,d,a,x[k+4], S24,0xE7D3FBC8);
451		a=GG(a,b,c,d,x[k+9], S21,0x21E1CDE6);
452		d=GG(d,a,b,c,x[k+14],S22,0xC33707D6);
453		c=GG(c,d,a,b,x[k+3], S23,0xF4D50D87);
454		b=GG(b,c,d,a,x[k+8], S24,0x455A14ED);
455		a=GG(a,b,c,d,x[k+13],S21,0xA9E3E905);
456		d=GG(d,a,b,c,x[k+2], S22,0xFCEFA3F8);
457		c=GG(c,d,a,b,x[k+7], S23,0x676F02D9);
458		b=GG(b,c,d,a,x[k+12],S24,0x8D2A4C8A);
459		a=HH(a,b,c,d,x[k+5], S31,0xFFFA3942);
460		d=HH(d,a,b,c,x[k+8], S32,0x8771F681);
461		c=HH(c,d,a,b,x[k+11],S33,0x6D9D6122);
462		b=HH(b,c,d,a,x[k+14],S34,0xFDE5380C);
463		a=HH(a,b,c,d,x[k+1], S31,0xA4BEEA44);
464		d=HH(d,a,b,c,x[k+4], S32,0x4BDECFA9);
465		c=HH(c,d,a,b,x[k+7], S33,0xF6BB4B60);
466		b=HH(b,c,d,a,x[k+10],S34,0xBEBFBC70);
467		a=HH(a,b,c,d,x[k+13],S31,0x289B7EC6);
468		d=HH(d,a,b,c,x[k+0], S32,0xEAA127FA);
469		c=HH(c,d,a,b,x[k+3], S33,0xD4EF3085);
470		b=HH(b,c,d,a,x[k+6], S34,0x4881D05);
471		a=HH(a,b,c,d,x[k+9], S31,0xD9D4D039);
472		d=HH(d,a,b,c,x[k+12],S32,0xE6DB99E5);
473		c=HH(c,d,a,b,x[k+15],S33,0x1FA27CF8);
474		b=HH(b,c,d,a,x[k+2], S34,0xC4AC5665);
475		a=II(a,b,c,d,x[k+0], S41,0xF4292244);
476		d=II(d,a,b,c,x[k+7], S42,0x432AFF97);
477		c=II(c,d,a,b,x[k+14],S43,0xAB9423A7);
478		b=II(b,c,d,a,x[k+5], S44,0xFC93A039);
479		a=II(a,b,c,d,x[k+12],S41,0x655B59C3);
480		d=II(d,a,b,c,x[k+3], S42,0x8F0CCC92);
481		c=II(c,d,a,b,x[k+10],S43,0xFFEFF47D);
482		b=II(b,c,d,a,x[k+1], S44,0x85845DD1);
483		a=II(a,b,c,d,x[k+8], S41,0x6FA87E4F);
484		d=II(d,a,b,c,x[k+15],S42,0xFE2CE6E0);
485		c=II(c,d,a,b,x[k+6], S43,0xA3014314);
486		b=II(b,c,d,a,x[k+13],S44,0x4E0811A1);
487		a=II(a,b,c,d,x[k+4], S41,0xF7537E82);
488		d=II(d,a,b,c,x[k+11],S42,0xBD3AF235);
489		c=II(c,d,a,b,x[k+2], S43,0x2AD7D2BB);
490		b=II(b,c,d,a,x[k+9], S44,0xEB86D391);
491		a=AddUnsigned(a,AA);
492		b=AddUnsigned(b,BB);
493		c=AddUnsigned(c,CC);
494		d=AddUnsigned(d,DD);
495	}
496
497	var temp = WordToHex(a)+WordToHex(b)+WordToHex(c)+WordToHex(d);
498
499	return temp.toLowerCase();
500}
501
502function Zoom(onoff, options){
503	options = {
504		loopWidth  : 150,
505		loopHeight : 150,
506		loopBg     : '#666',
507		loopOpacity: 0.3,
508		iWindow    : '#Zoom',
509		selector   : '.fItem-right .IMG',
510		loop       : '.loopBySHCG',
511		iScroller  : '.zoom'
512	};
513	this.opt = options;
514	$(this.opt.selector).parent().css('overflow','hidden');
515	this.iWidth  = $(this.opt.iWindow).width();
516	this.iHeight = $(this.opt.iWindow).height();
517	this.sWidth  = 0;
518	this.sHeight = 0;
519	var offset = $(this.opt.selector).offset();
520	this.loopTop = offset.top;
521	this.loopLeft = offset.left;
522	var x = $(this.opt.selector).width()/this.opt.loopWidth;
523	x = $(this.opt.iWindow).width()*x;
524	this.x = 0;
525	this.y = 0;
526	this.xx=0;
527	this.yy=0;
528	
529	this.rTop = 0;
530	this.rBottom = 0;
531	this.rLeft = 0;
532	this.rRight = 0;
533	
534	$(this.opt.iWindow+' '+this.opt.iScroller).css({
535		position: 'absolute',
536		width: x+'px',
537		left:'-'+(this.iWidth/2)+'px',
538		top:'-'+(this.iHeight/2)+'px'
539	});
540	if(onoff){
541		this.Init();
542	}else{
543		this.Cancel();
544	}
545}
546Zoom.prototype.Init = function(){
547	var darkSide = this;
548	$(darkSide.opt.loop).css({
549		background: darkSide.opt.loopBg,
550		opacity: darkSide.opt.loopOpacity,
551		width: darkSide.opt.loopWidth,
552		height: darkSide.opt.loopHeight,
553		position: 'absolute',
554		border: '1px dashed #000',
555		display: 'block'
556	});
557	darkSide.restrictedArea();
558	darkSide.mouseRun();
559}
560Zoom.prototype.restrictedArea = function(){
561	var darkSide = this;
562	darkSide.rTop = $(darkSide.opt.selector).offset().top;
563	darkSide.rBottom = $(darkSide.opt.selector).offset().top+darkSide.sHeight;
564	darkSide.rLeft = $(darkSide.opt.selector).offset().left;
565	darkSide.rRight = $(darkSide.opt.selector).offset().left+darkSide.sWidth;
566	
567	darkSide.sWidth  = $(darkSide.opt.selector).width();
568	darkSide.sHeight = $(darkSide.opt.selector).height();
569
570	darkSide.xx=darkSide.sWidth-darkSide.opt.loopWidth;
571	darkSide.yy=darkSide.sHeight-darkSide.opt.loopHeight;
572	
573	darkSide.x = darkSide.loopLeft/$(darkSide.opt.iWindow+' '+darkSide.opt.iScroller).offset().left;
574	darkSide.y = darkSide.loopTop/$(darkSide.opt.iWindow+' '+darkSide.opt.iScroller).offset().top;
575}
576Zoom.prototype.mouseRun = function(){
577	var darkSide = this;
578	$(window).mousemove(function(ev){
579		
580				var leftI=(ev.pageX-darkSide.loopLeft-(darkSide.opt.loopWidth/2));
581				var topI=(ev.pageY-darkSide.loopTop-(darkSide.opt.loopHeight/2));
582				if(leftI<0) leftI=0;
583				if(topI<0) topI=0;
584				if(leftI>darkSide.xx) leftI=darkSide.xx;
585				if(topI>darkSide.yy) topI=darkSide.yy;
586				if(ev.pageX-darkSide.loopLeft<0 || ev.pageY-darkSide.loopTop<0 || (ev.pageY-darkSide.loopTop>darkSide.yy+darkSide.opt.loopHeight) || (ev.pageX-darkSide.loopLeft>darkSide.xx+darkSide.opt.loopWidth)){
587					$(darkSide.opt.loop).hide();
588					$(darkSide.opt.iWindow).hide();
589				}else{
590					$(darkSide.opt.loop).show();
591					$(darkSide.opt.iWindow).show();
592				}
593				$(darkSide.opt.loop).css({
594					left: leftI+"px",
595					top: topI+"px"
596				});
597				$(darkSide.opt.iWindow+' '+darkSide.opt.iScroller).css({
598					left: '-'+(darkSide.iWidth/darkSide.opt.loopWidth*leftI)+'px',
599					top: '-'+(darkSide.iHeight/darkSide.opt.loopHeight*topI)+'px'
600				});
601	});
602}
603Zoom.prototype.Cancel = function(){
604	var darkSide = this;
605	return;
606}

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.