PageSourceSearch

https://www.orthopedicsurgeonsventura.com/wp-content/themes/sj_theme/js/intractivity.js?1653026349

js orthopedicsurgeonsventura.com collected 2026-10-04 16:04:20 UTC 3,810 bytes, 287 lines download raw bytes

1//Detect Browser Type.
2
3var agt=navigator.userAgent.toLowerCase();
4
5var appVer = navigator.appVersion.toLowerCase();
6
7var is_minor = parseFloat(appVer);
8
9var is_major = parseInt(is_minor);
10
11var iePos  = appVer.indexOf('msie');
12
13if (iePos !=-1) {
14
15  is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)));
16
17  is_major = parseInt(is_minor);
18
19}
20
21var isMinNS4 = ((navigator.appName.indexOf("Netscape") >= 0 || agt.indexOf("gecko") >= 0) && is_major >= 3) ? true : false;
22
23var isMinNS6 = (agt.indexOf("gecko") >=0 && is_major >= 3) ? true : false;
24
25var isMinIE4 = (document.all) ? true : false;
26
27var isMinIE5 = (isMinIE4==1 && is_major >= 3) ? true : false;
28
29var isMinIE6 = (isMinIE4 && is_major >= 7) ? true : false;
30
31var isDOM = (document.getElementById) ? true : false;
32
33var isSafari = (agt.indexOf("safari") != -1) ? true : false
34
35var isOpera = (agt.indexOf("opera") != -1) ? true : false
36
37var isIE = (isMinIE4 || isMinIE5 ||  isMinIE6);
38
39var isNN = (isMinNS4 || isMinNS6 );
40
41
42
43/**
44
45 Returns a single named DOM element or null if not found.
46
47 @param elementName String _ID_ of element you want to retrieve
48
49 @return element if found or null.
50
51*/
52
53function get(elementName) {
54
55  var ret = null;
56
57  var tm=20; 
58
59  var sp=11;
60
61  if (isDOM == 1) {
62
63    if(document.getElementById(elementName)) {
64
65      ret = document.getElementById(elementName);
66
67    }
68
69  }  else if (isMinIE4 == 1) {
70
71    if(document.all(elementName)[0]) {
72
73      ret = document.all(elementName)[0];
74
75    }  else {
76
77      ret = document.all(elementName);
78
79    }
80
81  }
82
83  return ret;
84
85}
86
87
88
89	var newPos=0;
90
91	function slideContent(divId,divPos) 
92
93	{
94
95	
96
97	alert(divId+" "+divPos);
98
99	
100
101		tmpDivPos = divPos.substring(0,(divPos.length-2));
102
103		if(tmpDivPos!="") newPos = parseInt(tmpDivPos)+7;
104
105				
106
107		slideDiv = eval("get('div"+divId+"')");
108
109	   			
110
111		if(newPos<=0) 
112
113		{
114
115			slideDiv.style.left=newPos+"px";
116
117		
118
119			setTimeout("slideContent("+divId+","+slideDiv.style.left+")",0);
120
121		}
122
123	}
124
125	var count=1
126
127	function showContent(divId) // 1 visible, 0 hidden
128
129	{
130
131	
132
133		for(j=1;j<=8;j++)
134
135		{
136
137			showDiv = eval("get('div"+j+"')");
138
139			if(j==divId)
140
141			{
142
143				showDiv.style.zIndex=16;
144
145				count=j;
146
147			} 
148
149			if(j!=divId) {
150
151				showDiv.style.zIndex=0;
152
153			}
154
155		}
156
157	
158
159	
160
161		for(i=1;i<=8;i++)
162
163		{
164
165			showDiv1 = eval("get('div"+i+"')");
166
167			if(i==divId)
168
169			{
170
171				$("#div"+i).stop(true,true).fadeIn(500);
172
173				//MM_swapImage('Image'+i,'','images/'+i+'b-on.png',1);
174
175				$("#Image"+i).addClass('active-tab'+i);
176
177				$("#Image"+i).addClass('active');
178
179			} else
180
181			{
182
183				//MM_swapImage('Image'+i,'','images/'+i+'b.png',1);
184
185				$("#div"+i).stop(true,true).fadeOut(0);
186
187				$("#Image"+i).removeClass('active-tab'+i);
188
189				$("#Image"+i).removeClass('active');
190
191			}
192
193			
194
195			function setup(c,f){c.timer=setInterval(function(){slideContent(c,f)},tm)}
196
197			function slideContent(c,f){
198
199			var h,m,d; h=c.offsetHeight; m=c.maxh;
199 d=(f==1)?Math.ceil((m-h)/sp):Math.ceil(h/sp);
200
201			c.style.height=h+(d*f)+'px'; c.style.opacity=h/m; c.style.filter='alpha(opacity='+h*100/m+')';
202
203			if(f==1&&h>=m){clearInterval(c.timer)}
204
205			else if(f!=1&&h==1){c.style.display='none'; clearInterval(c.timer)}
206
207			}
208
209		}
210
211		
212
213	}
214
215	var f = true;
216
217	function pausContinue()
218
219	{
220
221		f=false;
222
223	}
224
225	var playTab;
226
227	function playOnload()
228
229	{
230
231		if(count<=8)
232
233		{
234
235			showContent(count)
236
237		} 
238
239		
240
241		if(count==8) {
242
243			count=0
244
245		}
246
247		
248
249		count++
250
251		
252
253		if(!f)
254
255		{
256
257			return false;
258
259		}	
260
261		
262
263		playTab = setTimeout("playOnload()",5000);
264
265			
266
267	}	
268
269	
270
271function stoper() {
272
273clearTimeout(playTab);
274
275}
276
277
278
279function MM_preloadImages() { //v3.0
280
281  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
282
283    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
284
285    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
286
287}

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.