PageSourceSearch

https://darkside.ru/js/darkside.js?138

js darkside.ru collected 2026-10-02 10:00:14 UTC 21,261 bytes, 560 lines download raw bytes

1function Del() {
2
3 var confirmed= confirm("Âû óâåðåíû?");
4 if (confirmed== true)
5 { return true; } 
6  else { window.location.reload();  return false;} 
7
8  }
9
10function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerColor, theMarkColor)
11{
12    var theCells = null;
13	var marked_row = new Array;
14
15    // 1. Pointer and mark feature are disabled or the browser can't get the
16    //    row -> exits
17    if ((thePointerColor == '' && theMarkColor == '')
18        || typeof(theRow.style) == 'undefined') {
19        return false;
20    }
21
22    // 2. Gets the current row and exits if the browser can't get it
23    if (typeof(document.getElementsByTagName) != 'undefined') {
24        theCells = theRow.getElementsByTagName('td');
25    }
26    else if (typeof(theRow.cells) != 'undefined') {
27        theCells = theRow.cells;
28    }
29    else {
30        return false;
31    }
32
33    // 3. Gets the current color...
34    var rowCellsCnt  = theCells.length;
35    var domDetect    = null;
36    var currentColor = null;
37    var newColor     = null;
38    // 3.1 ... with DOM compatible browsers except Opera that does not return
39    //         valid values with "getAttribute"
40    if (typeof(window.opera) == 'undefined'
41        && typeof(theCells[0].getAttribute) != 'undefined') {
42        currentColor = theCells[0].getAttribute('bgcolor');
43        domDetect    = true;
44    }
45    // 3.2 ... with other browsers
46    else {
47        currentColor = theCells[0].style.backgroundColor;
48        domDetect    = false;
49    } // end 3
50
51    // 3.3 ... Opera changes colors set via HTML to rgb(r,g,b) format so fix it
52    if (currentColor.indexOf("rgb") >= 0) 
53    {
54        var rgbStr = currentColor.slice(currentColor.indexOf('(') + 1,
55                                     currentColor.indexOf(')'));
56        var rgbValues = rgbStr.split(",");
57        currentColor = "#";
58        var hexChars = "0123456789ABCDEF";
59        for (var i = 0; i < 3; i++)
60        {
61            var v = rgbValues[i].valueOf();
62            currentColor += hexChars.charAt(v/16) + hexChars.charAt(v%16);
63        }
64    }
65
66    // 4. Defines the new color
67    // 4.1 Current color is the default one
68    if (currentColor == ''
69        || currentColor.toLowerCase() == theDefaultColor.toLowerCase()) {
70        if (theAction == 'over' && thePointerColor != '') {
71            newColor              = thePointerColor;
72        }
73        else if (theAction == 'click' && theMarkColor != '') {
74            newColor              = theMarkColor;
75            marked_row[theRowNum] = true;
76        }
77    }
78    // 4.1.2 Current color is the pointer one
79    else if (currentColor.toLowerCase() == thePointerColor.toLowerCase()
80             && (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])) {
81        if (theAction == 'out') {
82            newColor              = theDefaultColor;
83        }
84        else if (theAction == 'click' && theMarkColor != '') {
85            newColor              = theMarkColor;
86            marked_row[theRowNum] = true;
87        }
88    }
89    // 4.1.3 Current color is the marker one
90    else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) {
91        if (theAction == 'click') {
92            newColor              = (thePointerColor != '')
93                                  ? thePointerColor
94                                  : theDefaultColor;
95            marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])
96                                  ? true
97                                  : null;
98        }
99    } // end 4
100
101    // 5. Sets the new color...
102    if (newColor) {
103        var c = null;
104        // 5.1 ... with DOM compatible browsers except Opera
105        if (domDetect) {
106            for (c = 0; c < rowCellsCnt; c++) {
107                theCells[c].setAttribute('bgcolor', newColor, 0);
108            } // end for
109        }
110        // 5.2 ... with other browsers
111        else {
112            for (c = 0; c < rowCellsCnt; c++) {
113                theCells[c].style.backgroundColor = newColor;
114            }
115        }
116    } // end 5
117
118    return true;
119} // end of the 'setPointer()' function
120
121
122function win(ID,w,h,tit)
123{
124        var wnd01, tPage, wndHeight, wndWidth, imgHeight;
125
126	nleft='5'
127	ntop='5'
128        if ( w>0 && h>0 ) {
129	 nleft=screen.width/2-(w/2)
130	 ntop=screen.height/2-(h/2)
131             } 
132
133        wnd01 = window.open('','_blank','copyhistory=no,directories=no,location=no,status=no,scrollbars=no,menubar=no,toolbar=no,left='+nleft+',top='+ntop+',resizable=yes,width='+w+',height='+h);
134
135        tPage="";
136        tPage=tPage+"<html>\n";
137        tPage=tPage+"<head>\n";
138        tPage=tPage+"<title>Russian Darkside e-Zine :: "+tit+"</title>\n";
139        tPage=tPage+"<\/head>\n";
140        tPage=tPage+"<body  TEXT='#A8882C' LINK='#946619' VLINK='#573C0E' ALINK='#000000'  bgcolor='#000000' marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>\n"; 
141        tPage=tPage+"<center>
141<img "+"style=\"cursor: pointer; cursor: hand;vertical-align: center\"; margin: 0"+" src=\""+ID+"\" onclick='self.close(); return false;' alt='"+tit+"'><\/center>";
142        tPage=tPage+"<\/body>\n";
143        tPage=tPage+"<\/html>\n";
144
145        wnd01.document.write(tPage);
146}
147
148
149function cancelCloseMenu(){ if(self.tm){ clearTimeout(tm)} }
150
151function showMenu(menuid){
152	menu=layer("menulayer"+menuid)
153	submenu=layer("submenulayer"+menuid)
154	submenubg=layer("bgmenulayer"+menuid)
155	cancelCloseMenu()
156	submenubg.moveTo(menu.getAbsoluteLeft(), menu.getAbsoluteTop() + menu.getHeight()) 
157	submenu.moveTo(menu.getAbsoluteLeft(), menu.getAbsoluteTop() + menu.getHeight()) 
158	submenubg.show()
159	submenu.show()
160}
161
162function showLoginMenu(menuid){
163	menu=layer("menulayer"+menuid)
164	submenu=layer("submenulayer"+menuid)
165	submenubg=layer("bgmenulayer"+menuid)
166	cancelCloseMenu()
167	submenubg.moveTo(menu.getAbsoluteLeft()-126, menu.getAbsoluteTop() + menu.getHeight()-83) 
168	submenu.moveTo(menu.getAbsoluteLeft()-126, menu.getAbsoluteTop() + menu.getHeight()-83) 
169	submenubg.show()
170	submenu.show()
171}
172
173function initiateHideMenu() {
174	tm=setTimeout("hideMenu()",1) // 1 second delay to close a submenu
175}
176
177function hideMenu(){
178	submenu.hide()
179	submenubg.hide()
180}
181	$(document).ready(function() {
182
183		$(".fancybox").fancybox({
184		prevEffect	: 'none',
185		nextEffect	: 'none',
186		closeBtn  : true,
187		arrows    : true,
188		nextClick : true,
189		fitToView  : false,
190		margin	  : 0,
191		padding   : 1
192
193		});
194
195	});
196
197
198
199
200
201
202
203
204(function (cjs, an) {
205var p; // shortcut to reference prototypes
206var lib={};var ss={};var img={};
207lib.ssMetadata = [
208		{name:"dstop5_atlas_", frames: [[0,0,1000,104],[408,212,406,58],[707,193,15,15],[0,106,406,199],[707,158,68,16],[707,176,69,15],[408,106,297,104],[707,106,50,50]]}
209];
210// symbols:
211(lib.bgmain = function() {
212	this.initialize(ss["dstop5_atlas_"]);
213	this.gotoAndStop(0);
214}).prototype = p = new cjs.Sprite();
215(lib.CachedTexturedBitmap_56 = function() {
216	this.initialize(ss["dstop5_atlas_"]);
217	this.gotoAndStop(1);
218}).prototype = p = new cjs.Sprite();
219(lib.CachedTexturedBitmap_57 = function() {
220	this.initialize(ss["dstop5_atlas_"]);
221	this.gotoAndStop(2);
222}).prototype = p = new cjs.Sprite();
223(lib.CachedTexturedBitmap_58 = function() {
224	this.initialize(ss["dstop5_atlas_"]);
225	this.gotoAndStop(3);
226}).prototype = p = new cjs.Sprite();
227(lib.CachedTexturedBitmap_59 = function() {
228	this.initialize(ss["dstop5_atlas_"]);
229	this.gotoAndStop(4);
230}).prototype = p = new cjs.Sprite();
231(lib.CachedTexturedBitmap_60 = function() {
232	this.initialize(ss["dstop5_atlas_"]);
233	this.gotoAndStop(5);
234}).prototype = p = new cjs.Sprite();
235(lib.dragon = function() {
236	this.initialize(ss["dstop5_atlas_"]);
237	this.gotoAndStop(6);
238}).prototype = p = new cjs.Sprite();
239(lib.smoke = function() {
240	this.initialize(ss["dstop5_atlas_"]);
241	this.gotoAndStop(7);
242}).prototype = p = new cjs.Sprite();
243// helper functions:
244function mc_symbol_clone() {
245	var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop));
246	clone.gotoAndStop(this.currentFrame);
247	clone.paused = this.paused;
248	clone.framerate = this.framerate;
249	return clone;
250}
251function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) {
252	var prototype = cjs.extend(symbol, cjs.MovieClip);
253	prototype.clone = mc_symbol_clone;
254	prototype.nominalBounds = nominalBounds;
255	prototype.frameBounds = frameBounds;
256	return prototype;
257	}
258(lib.smoke_IMG = function(mode,startPosition,loop) {
259	this.initialize(mode,startPosition,loop,{});
260	// Layer_1
261	this.instance = new lib.smoke();
262	this.instance.parent = this;
263	this.instance.setTransform(-25,-25);
264	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
265}).prototype = p = new cjs.MovieClip();
266p.nominalBounds = new cjs.Rectangle(-25,-25,50,50);
267(lib.eyesglow = function(mode,startPosition,loop) {
268	this.initialize(mode,startPosition,loop,{});
269	// Layer_1
270	this.instance = new lib.CachedTexturedBitmap_60();
271	this.instance.parent = this;
272	this.instance.setTransform(0,0,0.5,0.5);
273	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
274}).prototype = p = new cjs.MovieClip();
275p.nominalBounds = new cjs.Rectangle(0,0,34.5,7.5);
276(lib.eyes = function(mode,startPosition,loop) {
277	this.initialize(mode,startPosition,loop,{});
278	// Layer_1
279	this.instance = new lib.CachedTexturedBitmap_59();
280	this.instance.parent = this;
281	this.instance.setTransform(0,0,0.5,0.5);
282	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
283}).prototype = p = new cjs.MovieClip();
284p.nominalBounds = new cjs.Rectangle(0,0,34,8);
285(lib.botoom = function(mode,startPosition,loop) {
286	this.initialize(mode,startPosition,loop,{});
287	// Layer_1
288	this.instance = new lib.CachedTexturedBitmap_57();
289	this.instance.parent = this;
290	this.instance.setTransform(-2.7,-3.75,0.5,0.5);
291	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
292}).prototype = getMCSymbolPrototype(lib.botoom, new cjs.Rectangle(-2.7,-3.7,7.5,7.5), null);
293(lib.smoke_mc = function(mode,startPosition,loop) {
294	this.initialize(mode,startPosition,loop,{});
295	// timeline functions:
296	this.frame_29 = function() {
297		stop();
298	}
299	// actions tween:
300	this.timeline.addTween(cjs.Tween.get(this).wait(29).call(this.frame_29).wait(1));
301	// smoke3
302	this.instance = new lib.smoke_IMG("synched",0);
303	this.instance.parent = this;
304	this.instance.setTransform(9.95,-40.05,0.2,0.2);
305	this.instance._off = true;
306	this.timeline.addTween(cjs.Tween.get(this.instance).wait(6).to({_off:false}
306,0).to({scaleX:1.7,scaleY:1.7,x:41.95,y:-97.05,alpha:0},12).to({_off:true},1).wait(11));
307	// smoke2
308	this.instance_1 = new lib.smoke_IMG("synched",0);
309	this.instance_1.parent = this;
310	this.instance_1.setTransform(9.95,-40.05,0.2,0.2);
311	this.instance_1._off = true;
312	this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(3).to({_off:false},0).to({scaleX:1.8,scaleY:1.8,x:81.95,y:-161.05,alpha:0},19).to({_off:true},1).wait(7));
313	// smoke1
314	this.instance_2 = new lib.smoke_IMG("synched",0);
315	this.instance_2.parent = this;
316	this.instance_2.setTransform(9.95,-40.05,0.2,0.2);
317	this.timeline.addTween(cjs.Tween.get(this.instance_2).to({scaleX:1,scaleY:1,x:33.95,y:-89.05,alpha:0},12).to({_off:true},1).wait(17));
318}).prototype = p = new cjs.MovieClip();
319p.nominalBounds = new cjs.Rectangle(-0.5,-206,127.5,171);
320(lib.eyes2smoke = function(mode,startPosition,loop) {
321	this.initialize(mode,startPosition,loop,{});
322	// timeline functions:
323	this.frame_14 = function() {
324		stop();
325	}
326	// actions tween:
327	this.timeline.addTween(cjs.Tween.get(this).wait(14).call(this.frame_14).wait(1));
328	// Layer_2
329	this.instance = new lib.smoke_mc();
330	this.instance.parent = this;
331	this.instance.setTransform(7.5,31.65,0.9973,0.9973,37.5946,0,0,9.9,-40.1);
332	this.instance_1 = new lib.smoke_mc();
333	this.instance_1.parent = this;
334	this.instance_1.setTransform(-9.5,31.65,0.9973,0.9973,0,-37.5946,142.4054,9.9,-40.1);
335	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_1},{t:this.instance}]}).to({state:[{t:this.instance_1},{t:this.instance}]},14).wait(1));
336	// Explode_1
337	this.instance_2 = new lib.eyesglow("synched",0);
338	this.instance_2.parent = this;
339	this.instance_2.setTransform(-0.7,-2.05,1,1,0,0,0,17.2,3.9);
340	this.instance_2.alpha = 0;
341	this.timeline.addTween(cjs.Tween.get(this.instance_2).to({alpha:1},5).to({alpha:0},9).wait(1));
342}).prototype = p = new cjs.MovieClip();
343p.nominalBounds = new cjs.Rectangle(-17.9,-5.9,34.5,44.699999999999996);
344(lib.eyes2 = function(mode,startPosition,loop) {
345	this.initialize(mode,startPosition,loop,{});
346	// timeline functions:
347	this.frame_0 = function() {
348		//var rand = Math.floor((Math.random()*60)+1
349		//this.gotoAndPlay(rand);
350		//_this.gotoAndPlay(1+Math.ceil(Math.random()*55));
351	}
352	this.frame_15 = function() {
353		//_this.gotoAndPlay(1);
354	}
355	// actions tween:
356	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(15).call(this.frame_15).wait(45));
357	// Explode_1
358	this.instance = new lib.eyes("synched",0);
359	this.instance.parent = this;
360	this.instance.setTransform(-0.7,-1.75,1,1,0,0,0,17.1,3.9);
361	this.instance._off = true;
362	this.timeline.addTween(cjs.Tween.get(this.instance).wait(10).to({_off:false},0).wait(5).to({startPosition:0},0).to({_off:true},1).wait(44));
363}).prototype = p = new cjs.MovieClip();
364p.nominalBounds = new cjs.Rectangle(-17.8,-5.6,34,8);
365(lib.dragonbutton = function(mode,startPosition,loop) {
366	this.initialize(mode,startPosition,loop,{});
367	// Layer 1
368	this.instance = new lib.eyes2smoke();
369	this.instance.parent = this;
370	this.instance.setTransform(-0.6,-5.35);
371	this.instance_1 = new lib.CachedTexturedBitmap_58();
372	this.instance_1.parent = this;
373	this.instance_1.setTransform(-103.75,-50.5,0.5,0.5);
374	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance}]},1).to({state:[{t:this.instance_1}]},2).wait(1));
375}).prototype = p = new cjs.MovieClip();
376p.nominalBounds = new cjs.Rectangle(-103.7,-50.5,203,99.5);
377// stage content:
378(lib.dstop_html5 = function(mode,startPosition,loop) {
379	this.initialize(mode,startPosition,loop,{});
380	// timeline functions:
381	this.frame_0 = function() {
382		this.button_1.addEventListener("click", fl_ClickToGoToWebPage);
383		function fl_ClickToGoToWebPage() {
384				window.open("http://www.darkside.ru", "_self" );
385		}
386	}
387	// actions tween:
388	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1));
389	// Layer_4
390	this.instance = new lib.eyes2();
391	this.instance.parent = this;
392	this.instance.setTransform(500,54.15);
393	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
394	// Layer_3
395	this.button_1 = new lib.dragonbutton();
396	this.button_1.name = "button_1";
397	this.button_1.parent = this;
398	this.button_1.setTransform(501.05,58.75);
399	new cjs.ButtonHelper(this.button_1, 0, 1, 2, false, new lib.dragonbutton(), 3);
400	this.timeline.addTween(cjs.Tween.get(this.button_1).wait(1));
401	// Layer_2
402	this.instance_1 = new lib.dragon();
403	this.instance_1.parent = this;
404	this.instance_1.setTransform(351.5,0);
405	this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(1));
406	// Layer_8
407	this.instance_2 = new lib.CachedTexturedBitmap_56();
408	this.instance_2.parent = this;
409	this.instance_2.setTransform(399,-0.05,0.5,0.5);
410	this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(1));
411	// bottom
412	this.instance_3 = new lib.bgmain();
413	this.instance_3.parent = this;
414	this.bottom = new lib.botoom();
415	this.bottom.name = "bottom";
416	this.bottom.parent = this;
417	this.bottom.setTransform(500,48,1,1,0,0,0,1,0);
418	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.bottom},{t:this.instance_3}]}).wait(1));
419}).prototype = p = new cjs.MovieClip();
420p.nominalBounds = new cjs.Rectangle(500,52,500,55.8);
421// library properties:
422lib.properties = {
423	id: '2AE4DC54A434D84C9ACEBAFFDC91DE40',
424	width: 1000,
425	height: 104,
426	fps: 25,
427	color: "#000000",
428	opacity: 1.00,
429	manifest: [
430		{src:"/images/dstop5_atlas_.png", id:"dstop5_atlas_"}
431	],
432	preloads: []
433};
434// bootstrap callback support:
435(lib.Stage = function(canvas) {
436	createjs.Stage.call(this, canvas);
437}).prototype = p = new createjs.Stage();
438p.setAutoPlay = function(autoPlay) {
439	this.tickEnabled = autoPlay;
440}
441p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) }
442p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; }
443p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); }
444p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; }
445p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; }
446an.bootcompsLoaded = an.bootcompsLoaded || [];
447if(!an.bootstrapListeners) {
448	an.bootstrapListeners=[];
449}
450an.bootstrapCallback=function(fnCallback) {
451	an.bootstrapListeners.push(fnCallback);
452	if(an.bootcompsLoaded.length > 0) {
453		for(var i=0; i<an.bootcompsLoaded.length; ++i) {
454			fnCallback(an.bootcompsLoaded[i]);
455		}
456	}
457};
458an.compositions = an.compositions || {};
459an.compositions['2AE4DC54A434D84C9ACEBAFFDC91DE40'] = {
460	getStage: function() { return exportRoot.getStage(); },
461	getLibrary: function() { return lib; },
462	getSpriteSheet: function() { return ss; },
463	getImages: function() { return img; }
464};
465an.compositionLoaded = function(id) {
466	an.bootcompsLoaded.push(id);
467	for(var j=0; j<an.bootstrapListeners.length; j++) {
468		an.bootstrapListeners[j](id);
469	}
470}
471an.getComposition = function(id) {
472	return an.compositions[id];
473}
474})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
475var createjs, AdobeAn;
476var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
477function init() {
478	canvas = document.getElementById("canvas");
479	anim_container = document.getElementById("animation_container");
480	dom_overlay_container = document.getElementById("dom_overlay_container");
481	var comp=AdobeAn.getComposition("2AE4DC54A434D84C9ACEBAFFDC91DE40");
482	var lib=comp.getLibrary();
483	var loader = new createjs.LoadQueue(false);
484	loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
485	loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
486	var lib=comp.getLibrary();
487	loader.loadManifest(lib.properties.manifest);
488}
489function handleFileLoad(evt, comp) {
490	var images=comp.getImages();	
491	if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; }	
492}
493function handleComplete(evt,comp) {
494	//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
495	var lib=comp.getLibrary();
496	var ss=comp.getSpriteSheet();
497	var queue = evt.target;
498	var ssMetadata = lib.ssMetadata;
499	for(i=0; i<ssMetadata.length; i++) {
500		ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )
501	}
502	exportRoot = new lib.dstop_html5();
503	stage = new lib.Stage(canvas);
504	stage.enableMouseOver();	
505	//Registers the "tick" event listener.
506	fnStartAnimation = function() {
507		stage.addChild(exportRoot);
508		createjs.Ticker.setFPS(lib.properties.fps);
509		createjs.Ticker.addEventListener("tick", stage);
510	}	    
511	//Code to support hidpi screens and responsive scaling.
512	function makeResponsive(isResp, respDim, isScale, scaleType) {		
513		var lastW, lastH, lastS=1;		
514		window.addEventListener('resize', resizeCanvas);		
515		resizeCanvas();		
516		function resizeCanvas() {			
517			var w = lib.properties.width, h = lib.properties.height;			
518			var iw = window.innerWidth, ih=window.innerHeight;			
519			var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;			
520			if(isResp) {                
521				if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
522					sRatio = lastS;                
523				}				
524				else if(!isScale) {					
525					if(iw<w || ih<h)						
526						sRatio = Math.min(xRatio, yRatio);				
527				}				
528				else if(scaleType==1) {					
529					sRatio = Math.min(xRatio, yRatio);				
530				}				
531				else if(scaleType==2) {					
532					sRatio = Math.max(xRatio, yRatio);				
533				}			
534			}			
535			canvas.width = w*pRatio*sRatio;			
536			canvas.height = h*pRatio*sRatio;
537			canvas.style.width = dom_overlay_container.style.width = anim_container.style.width =  w*sRatio+'px';				
538			canvas.style.height = anim_container.style.height = dom_overlay_container.style.height = h*sRatio+'px';
539			stage.scaleX = pRatio*sRatio;			
540			stage.scaleY = pRatio*sRatio;			
541			lastW = iw; lastH = ih; lastS = sRatio;            
542			stage.tickOnUpdate = false;            
543			stage.update();            
544			stage.tickOnUpdate = true;		
545		}
546	}
547	makeResponsive(false,'both',false,1);	
548	AdobeAn.compositionLoaded(lib.properties.id);
549	fnStartAnimation();
550}
551
552
553
554function opendsNav() {
555  document.getElementById("dsNav").style.height = "100%";
556}
557
558function closedsNav() {
559  document.getElementById("dsNav").style.height = "0%";
560}

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.