PageSourceSearch

https://kurskcity.ru/media/js/banner.js?1119928237

js kurskcity.ru collected 2026-10-02 07:34:37 UTC 12,865 bytes, 346 lines download raw bytes

1// KURSKCiTY.RU
2
3var v = 10;
4var av = false;
5var plug = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
6if(plug)
7{
8	var lplug = navigator.plugins["Shockwave Flash"].description.split(" ");
9	var ll = lplug.length;
10	for (var i = 0; i < ll; ++i)
11	{
12		if (isNaN(parseInt(lplug[i]))) {
13			continue;
14		}
15		var plugV = lplug[i];
16	}
17	av = plugV >= v;
18}
19else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 && (navigator.appVersion.indexOf("Win") != -1))
20{
21	document.write('<scr' + 'ipt language="VBScript">');
22	document.write('on error resume next\n');
23	document.write('av = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & v))');
24	document.write('</scr' + 'ipt>');
25}
26
27
28
29function pSWFobj (url, w, h)
30{
31    var id = url.split('.swf')[0].substring(8);
32	if(w==0){
33		w='100%';
34	}
35	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+v+',0,18,0" width="'+w+'" height="'+h+'" id="'+id+'" style="display:block; margin:0 auto;">');
36	document.write('<param name="allowScriptAccess" value="sameDomain" />');
37	document.write('<param name="movie" value="'+url+'" />');
38	document.write('<param name="quality" value="high" />');
39	document.write('<param name="bgcolor" value="#ffffff" />');
40	document.write('<param name="scale" value="showall">');
41	document.write('<param name="wmode" value="opaque">');
42	document.write('<embed src="'+url+'" scale="showall" wmode="opaque" quality="high" bgcolor="#ffffff" width="'+w+'" height="'+h+'" name="'+id+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
43	document.write('</object>');
44}
45/*
46function pSWFobj (url, w, h)
47{
48
49    var id = url.split('.swf')[0].substring(8);
50	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+v+',0,18,0" width="'+w+'" height="'+h+'" id="'+id+'" style="display:block; margin:0 auto;">');
51	if(w==0){
52		w='100%';
53	}
54	document.write('<param name="allowScriptAccess" value="sameDomain" />');
55	document.write('<param name="movie" value="'+url+'" />');
56	document.write('<param name="quality" value="high" />');
57	document.write('<param name="bgcolor" value="#ffffff" />');
58	document.write('<param name="scale" value="showall">');
59	document.write('<param name="wmode" value="opaque">');
60	document.write('<embed src="'+url+'" scale="showall" wmode="opaque" quality="high" bgcolor="#ffffff" width="'+w+'" height="'+h+'" name="'+id+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
61	document.write('</object>');
62
63
64}
65*/
66function SWFalt (url, w, h, ai, au, at,bplace)
67{
68	if(w==0){
69		wpx='100%';
70	}
71	else{�		wpx=w+"px";�	}
72	if(bplace!=undefined){�		wpx=document.getElementById(bplace).offsetWidth+"px";
73		elid="id=link"+bplace;�	}
74	else{�		elid='';�	}
75	document.write('<div style="margin:0 auto;position:relative;width:'+wpx+'">');
76    if(au!=undefined){
77    	document.write('<a style="position: absolute; width: '+wpx+'; height: '+h+'px; left: 0; top: 0; " href="'+au+'" target="_blank" '+elid+'></a>');
78    }
79	if(av)
80	{
81		pSWFobj (url, w, h);
82	}
83	else
84	{
85		if (ai!=undefined) {
86
87			var alt = '<img src="'+ai+'" width="'+wpx+'" height="'+h+'" border="0" alt="'+at+'">';
88			if (au!=undefined) {
89				alt = '<a href="'+au+'" title="'+at+'" target="blank">'+alt+'</a>';
90			}
91			document.write(alt);
92		}
93	}
94	document.write('</div>');
95}
96
97function adaptivban(code,w, h, ai, au, at){
98	if(av){
99		document.write('<script type="text/javascript" src="'+code+'"></script>');
100	}
101	else{
102	var is_array = (ai instanceof Array ) ? true : false;
103	 document.write('<div>');
104		if (ai!=undefined) {
105			var alt = '<img src="'+ai+'" width="'+w+'" height="'+h+'" border="0" alt="'+at+'">';
106			if (au!=undefined) {
107				alt = '<a href="'+au+'" title="'+at+'" target="blank">'+alt+'</a>';
108			}
109			document.write(alt);
110		}
111	document.write('</div>');
112	}
113}
114
115/*function SWFalt (url, w, h, ai, au, at)
116{
117    //document.write('<div class="banner">');
118    if(au!=''){
119    	document.write('<a style="position: absolute; width: '+w+'px; height: '+h+'px; left: 0; top: 0;" href="'+au+'" target="_blank"></a>');
120    }
121	if(av)
122	{
123		pSWFobj (url, w, h);
124	}
125	else
126	{
127		if (ai!=undefined && at!=undefined) {�
128			var alt = '<img src="'+ai+'" width="'+w+'" height="'+h+'" border="0" alt="'+at+'">';
129			if (au!=undefined) {
130				alt = '<a href="'+au+'" title="'+at+'" target="blank">'+alt+'</a>';
131			}
132			document.write(alt);
133		}
134	}
135	//document.write('</div>');
136} */
137
138function fulltime() {
139	var time=new Date();
140	var newYear=new Date("jan,01,2018,00:00:00");
141	var totalRemains=(newYear.getTime()-time.getTime());
142
143	if (totalRemains>1){
144		var RemainsSec = (parseInt(totalRemains/1000));//сколько всего осталось секунд
145		var RemainsFullDays=(parseInt(RemainsSec/(24*60*60)));//осталось дней
146		var secInLastDay=RemainsSec-RemainsFullDays*24*3600; //осталось секунд в неполном дне
147		var RemainsFullHours=(parseInt(secInLastDay/3600));//осталось часов в неполном дне
148		if (RemainsFullHours<10){RemainsFullHours="0"+RemainsFullHours};
149		var secInLastHour=secInLastDay-RemainsFullHours*3600;//осталось секунд в неполном часе
150		var RemainsMinutes=(parseInt(secInLastHour/60));//осталось минут в неполном часе
151		if (RemainsMinutes<10){RemainsMinutes="0"+RemainsMinutes};
152		var lastSec=secInLastHour-RemainsMinutes*60;//осталось секунд
153		if (lastSec<10){lastSec="0"+lastSec};
154
155		document.getElementById("RemainsFullDays").innerHTML=RemainsFullDays+" <span class=\"marks\">дн.</span>";
156		document.getElementById("RemainsFullHours").innerHTML=RemainsFullHours+"<span class=\"marks\">:</span>";
157		document.getElementById("RemainsMinutes").innerHTML=RemainsMinutes+"<span class=\"marks\">:</span>";
158		document.getElementById("lastSec").innerHTML=lastSec+"<span class=\"marks\"></span>";
159		setTimeout('fulltime()',1000)
160	}
161	else{
162		document.getElementById("nytimer").innerHTML="<div id=\"nycong\">C НОВЫМ ГОДОМ!!!</div>";
163	}
164}
165
166function foto (url,urlsmall,width){
167	document.fotobig.src=url;
168	document.getElementById('orig').href=urlsmall;
169	document.fotobig.width=width;
170}
171
172function insert_text(open, close)
173{
174
175	msgfield = (document.all) ? document.all.req_message : ((document.getElementById('afocus') != null) ? (document.getElementById('afocus').req_message) : (document.getElementsByName('text')[0]));
176
177	// IE support
178	if (document.selection && document.selection.createRange)
179	{
180		msgfield.focus();
181		sel = document.selection.createRange();
182		sel.text = open + sel.text + close;
183		msgfield.focus();
184	}
185
186	// Moz support
187	else if (msgfield.selectionStart || msgfield.selectionStart == '0')
188	{
189		var startPos = msgfield.selectionStart;
190		var endPos = msgfield.selectionEnd;
191
192		msgfield.value = msgfield.value.substring(0, startPos) + open + msgfield.value.substring(startPos, endPos) + close + msgfield.value.substring(endPos, msgfield.value.length);
193		msgfield.selectionStart = msgfield.selectionEnd = endPos + open.length + close.length;
194		msgfield.focus();
195	}
196
197	// Fallback support for other browsers
198	else
199	{
200		msgfield.value += open + close;
201		msgfield.focus();
202	}
203
204	return;
205}
206
207function if_other(_this)
208{
209	if (document.getElementById('model2').value !='' )
210		document.getElementById('other').disabled=true;
211	else
212		document.getElementById('other').disabled=false;
213}
214
215function checkmail(value) {
216	reg = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;
217	if (!value.match(reg)) {
218document.getElementById('validEmail').innerHTML="<img src=\"images/validno.png\" width=\"16\" height=\"16\" alt=\"Неверный формат email\" border=\"0\">";
219document.getElementById('email').value="";
220	return false;
221	}
222}
223
224function set_cookie (name, value, expires_year, expires_month, expires_day, path, domain, secure){
225	var cookie_string = name + "=" + escape(value);
226	if (expires_year)
227	{
228		var expires = new Date (expires_year, expires_month, expires_day);
229		cookie_string += "; expires=" + expires.toGMTString();
230	}
231
232	if (path)
233	{
234		cookie_string += "; path=" + escape(path);
235	}
236
237	if (domain)
238	{
239		cookie_string += "; domain=" + escape(domain);
240	}
241	if (secure)
242	{
243		cookie_string += "; secure";
244	}
245	document.cookie = cookie_string;
246}
247
248function get_cookie(name)
249{
250	cookie_name = name + "=";
251	cookie_length = document.cookie.length;
252	cookie_begin = 0;
253	while (cookie_begin < cookie_length)
254	{
255	value_begin = cookie_begin + cookie_name.length;
256	if (document.cookie.substring(cookie_begin, value_begin) == cookie_name)
257	{
258	var value_end = document.cookie.indexOf (";", value_begin);
259	if (value_end == -1)
260	{
261	value_end = cookie_length;
262	}
263	return unescape(document.cookie.substring(value_begin, value_end));
264	}
265	cookie_begin = document.cookie.indexOf(" ", cookie_begin) + 1;
266	if (cookie_begin == 0)
267	{
268	break;
269	}
270	}
271	return null;
272}
273
274function change(){�	var st = unescape(window.location.href );
275	var i = false;
276	var r = st.substring( st.lastIndexOf('/') + 1, st.length );
277	if (r=="index.php"  || r=="")
278	{
279		setTimeout("ban1()",1000);
280		setTimeout("ban2hid()",12000);
281	}
282}
283
284function ban1() {
285	if($().is("#topbanner1")) document.getElementById("topbanner1").style.display ="none";
286	if($().is("#topbanner2")) document.getElementById("topbanner2").style.display ="block";
287}
288
289function ban2hid() {
290	if($().is("#topbanner2")) document.getElementById("topbanner2").style.display ="none";
291	if($().is("#topbanner1")) document.getElementById("topbanner1").style.display ="block";
292}
293
294function HideBanner(id){
295	document.getElementById(id).style.visibility='hidden';
296	set_cookie('banner','closed');
297}
298
299function Movebanners(){�   // переместить его в реальную позицию отображения
300   document.getElementById('ban_block1').appendChild(document.getElementById('ban_ad1'));
301   // показать
302   document.getElementById('ban_ad1').style.display = 'block';
303
304   // переместить его в реальную позицию отображения
305   document.getElementById('ban_block2').appendChild(document.getElementById('ban_ad2'));
306   // показать
307   document.getElementById('ban_ad2').style.display = 'block';
308
309   // переместить его в реальную позицию отображения
310   document.getElementById('ban_block3').appendChild(document.getElementById('ban_ad3'));
311   // показать
312   document.getElementById('ban_ad3').style.display = 'block';
313
314   // переместить его в реальную позицию отображения
315   document.getElementById('ban_block4').appendChild(document.getElementById('ban_ad4'));
316   // показать
317   document.getElementById('ban_ad4').style.display = 'block';
318
319   // переместить его в реальную позицию отображения
320   document.getElementById('ban_block5').appendChild(document.getElementById('ban_ad5'));
321   // показать
322   document.getElementById('ban_ad5').style.display = 'block';
323
324      // переместить его в реальную позицию отображения
325   document.getElementById('ban_block6').appendChild(document.getElementById('ban_ad6'));
326   // показать
327   document.getElementById('ban_ad6').style.display = 'block';
328
329      // переместить его в реальную позицию отображения
330   document.getElementById('ban_block7').appendChild(document.getElementById('ban_ad7'));
331   // показать
332   document.getElementById('ban_ad7').style.display = 'block';
333
334      // переместить его в реальную позицию отображения
335   document.getElementById('ban_block8').appendChild(document.getElementById('ban_ad8'));
336   // показать
337   document.getElementById('ban_ad8').style.display = 'block';
338
339      // переместить его в реальную позицию отображения
340   document.getElementById('ban_block9').appendChild(document.getElementById('ban_ad9'));
341   // показать
342   document.getElementById('ban_ad9').style.display = 'block';
343}
344
345
346

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.