1var i = 0; 2var map; 3var service; 4var geocoder; 5var myLat = new Array(); 6var myLng = new Array(); 7var nomer_latlng = new Array(); 8 9 //var _gaq = _gaq || []; 10 //_gaq.push(['_setAccount', 'UA-56662513-1']); 11 //_gaq.push(['_trackPageview']); 12 13 //(function() { 14 // var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 15 // ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 16 // var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 17 //})(); 18 19//(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 20//(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 21//m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 22//})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 23 24//ga('create', 'UA-56662513-1', 'auto'); 25//ga('send', 'pageview'); 26 27$("body").append("<div id='map' style='display: none; width: 100px; height: 100px;'></div>"); 28function get_address() 29{ 30 for(var j=0; j<myLat.length; j++) 31 { 32 setTimeout(function(qqq) { 33 var tmp = new google.maps.LatLng(parseFloat(myLat[qqq]), parseFloat(myLng[qqq])) 34 geocoder.geocode 35 ({ 36 latLng: tmp 37 }, function(results, status) { 38 if (status == google.maps.GeocoderStatus.OK) 39 { 40 var request = { 41 query: results[0].formatted_address 42 }; 43 service.textSearch(request, function(results, status) { 44 if (status == google.maps.places.PlacesServiceStatus.OK) { 45 $.post("/get_xml.asp", { 46 new_rec: 1, 47 n: nomer_latlng[qqq], 48 lat: myLat[qqq], 49 lng: myLng[qqq], 50 google_lat: results[0]["geometry"]["location"]["k"], 51 google_lng: results[0]["geometry"]["location"]["B"], 52 google_id: results[0].id, 53 google_place_id: results[0].place_id, 54 address: results[0].formatted_address 55 }, function(data) { 56 }) 57 } 58 else 59 { 60 if (status == google.maps.places.PlacesServiceStatus.ZERO_RESULTS) { 61 $.post("/get_xml.asp", { 62 new_rec: 1, 63 n: nomer_latlng[qqq], 64 lat: myLat[qqq], 65 lng: myLng[qqq], 66 google_lat: 0, 67 google_lng: 0, 68 google_id: "", 69 google_place_id: "", 70 address: "" 71 }, function(data) { 72 }) 73 } 74 } 75 }); 76 } 77 else 78 { 79 } 80 }) 81 }, (Math.random() * (3000 - 1500) + 1500)*j, j); 82 } 83} 84 85/* 86 $.ajax({
87 type: "GET", 88 url: "/get_xml.asp", 89 dataType: "xml", 90 success: function(xml) { 91 var mapOptions = { 92 zoom: 14, 93 center: new google.maps.LatLng(55.782025, 37.593492) 94 }; 95 map = new google.maps.Map(document.getElementById("map"), mapOptions); 96 service = new google.maps.places.PlacesService(map); 97 geocoder = new google.maps.Geocoder(); 98 99 $(xml).find("obj").each(function(index) { 100 nomer_latlng.push(parseFloat($(this).find("n").text())); 101 myLat.push(parseFloat($(this).find("lat").text())); 102 myLng.push(parseFloat($(this).find("lng").text())); 103 }) 104 105 get_address(); 106 } 107 }); 108*/ 109 110function AdFox_SetLayerVis(spritename,state){ 111 document.getElementById(spritename).style.visibility=state; 112} 113 114function AdFox_Open(AF_id){ 115 AdFox_SetLayerVis('AdFox_DivBaseFlash_'+AF_id, "hidden"); 116 AdFox_SetLayerVis('AdFox_DivOverFlash_'+AF_id, "visible"); 117} 118 119function AdFox_Close(AF_id){ 120 AdFox_SetLayerVis('AdFox_DivOverFlash_'+AF_id, "hidden"); 121 AdFox_SetLayerVis('AdFox_DivBaseFlash_'+AF_id, "visible"); 122} 123 124function AdFox_getCodeScript(AF_n,AF_id,AF_src){ 125 var AF_doc; 126 if(AF_n<10){ 127 try{ 128 if(document.all && !window.opera){ 129 AF_doc = window.frames['AdFox_iframe_'+AF_id].document; 130 }else if(document.getElementById){ 131 AF_doc = document.getElementById('AdFox_iframe_'+AF_id).contentDocument; 132 } 133 }catch(e){} 134 if(AF_doc){ 135 AF_doc.write('<scr'+'ipt type="text/javascript" src="'+AF_src+'"><\/scr'+'ipt>'); 136 }else{ 137 setTimeout('AdFox_getCodeScript('+(++AF_n)+','+AF_id+',"'+AF_src+'");', 100); 138 } 139 } 140} 141 142function adfoxSdvigContent(banID, flashWidth, flashHeight){ 143 var obj = document.getElementById('adfoxBanner'+banID).style; 144 if (flashWidth == '100%') obj.width = flashWidth; 145 else obj.width = flashWidth + "px"; 146 if (flashHeight == '100%') obj.height = flashHeight; 147 else obj.height = flashHeight + "px"; 148} 149 150function adfoxVisibilityFlash(banName, flashWidth, flashHeight){ 151 var obj = document.getElementById(banName).style; 152 if (flashWidth == '100%') obj.width = flashWidth; 153 else obj.width = flashWidth + "px"; 154 if (flashHeight == '100%') obj.height = flashHeight; 155 else obj.height = flashHeight + "px"; 156} 157 158function adfoxStart(banID, FirShowFlNum, constVisFlashFir, sdvigContent, flash1Width, flash1Height, flash2Width, flash2Height){ 159 if (FirShowFlNum == 1) adfoxVisibilityFlash('adfoxFlash1'+banID, flash1Width, flash1Height); 160 else if (FirShowFlNum == 2) { 161 adfoxVisibilityFlash('adfoxFlash2'+banID, flash2Width, flash2Height); 162 if (constVisFlashFir == 'yes') adfoxVisibilityFlash('adfoxFlash1'+banID, flash1Width, flash1Height); 163 if (sdvigContent == 'yes') adfoxSdvigContent(banID, flash2Width, flash2Height); 164 else adfoxSdvigContent(banID, flash1Width, flash1Height); 165 } 166} 167 168function adfoxOpen(banID, constVisFlashFir, sdvigContent, flash2Width, flash2Height){ 169 var aEventOpenClose = new Image(); 170 var obj = document.getElementById("aEventOpen"+banID); 171 if (obj) aEventOpenClose.src = obj.title+'&rand='+Math.random()*1000000+'&prb='+Math.random()*1000000; 172 adfoxVisibilityFlash('adfoxFlash2'+banID, flash2Width, flash2Height); 173 if (constVisFlashFir != 'yes') adfoxVisibilityFlash('adfoxFlash1'+banID, 1, 1); 174 if (sdvigContent == 'yes') adfoxSdvigContent(banID, flash2Width, flash2Height); 175} 176 177 178function adfoxClose(banID, constVisFlashFir, sdvigContent, flash1Width, flash1Height){ 179 var aEventOpenClose = new Image(); 180 var obj = document.getElementById("aEventClose"+banID); 181 if (obj) aEventOpenClose.src = obj.title+'&rand='+Math.random()*1000000+'&prb='+Math.random()*1000000; 182 adfoxVisibilityFlash('adfoxFlash2'+banID, 1, 1); 183 if (constVisFlashFir != 'yes') adfoxVisibilityFlash('adfoxFlash1'+banID, flash1Width, flash1Height); 184 if (sdvigContent == 'yes') adfoxSdvigContent(banID, flash1Width, flash1Height); 185} 186 187//http://www.featureblend.com/license.txt 188var FlashDetect=new function(){var self=this;self.installed=false;self.raw="";self.major=-1;self.minor=-1;self.revision=-1;self.revisionStr="";var activeXDetectRules=[{"name":"ShockwaveFlash.ShockwaveFlash.7","version":function(obj){return getActiveXVersion(obj);}},{"name":"ShockwaveFlash.ShockwaveFlash.6","version":function(obj){var version="6,0,21";try{obj.AllowScriptAccess="always";version=getActiveXVersion(obj);}catch(err){} 189return version;}},{"name":"ShockwaveFlash.ShockwaveFlash","version":function(obj){return getActiveXVersion(obj);}}];var getActiveXVersion=function(activeXObj){var version=-1;try{version=activeXObj.GetVariable("$version");}catch(err){} 190return version;};var getActiveXObject=function(name){var obj=-1;try{obj=new ActiveXObject(name);}catch(err){obj={activeXError:true};} 191return obj;};var parseActiveXVersion=function(str){var versionArray=str.split(",");return{"raw":str,"major":parseInt(versionArray[0].split(" ")[1],10),"minor":parseInt(versionArray[1],10),"revision":parseInt(versionArray[2],10),"revisionStr":versionArray[2]};};var parseStandardVersion=function(str){var descParts=str.split(/ +/);var majorMinor=descParts[2].split(/\./);var revisionStr=descParts[3];return{"raw":str,"major":parseInt(majorMinor[0],10),"minor":parseInt(majorMinor[1],10),"revisionStr":revisionStr,"revision":parseRevisionStrToInt(revisionStr)};};var parseRevisionStrToInt=function(str){return parseInt(str.replace(/[a-zA-Z]/g,""),10)||self.revision;};self.majorAtLeast=function(version){return self.major>=version;};self.minorAtLeast=function(version){return self.minor>=version;};self.revisionAtLeast=function(version){return self.revision>=version;};self.versionAtLeast=function(major){var properties=[self.major,self.minor,self.revision];var len=Math.min(properties.length,arguments.length);for(i=0;i<len;i++){if(properties[i]>=arguments[i]){if(i+1<len&&properties[i]==arguments[i]){continue;}else{return true;}}else{return false;}}};self.FlashDetect=function(){if(navigator.plugins&&navigator.plugins.length>0){var type='application/x-shockwave-flash';var mimeTypes=navigator.mimeTypes;if(mimeTypes&&mimeTypes[type]&&mimeTypes[type].enabledPlugin&&mimeTypes[type].enabledPlugin.description){var version=mimeTypes[type].enabledPlugin.description;
191var versionObj=parseStandardVersion(version);self.raw=versionObj.raw;self.major=versionObj.major;self.minor=versionObj.minor;self.revisionStr=versionObj.revisionStr;self.revision=versionObj.revision;self.installed=true;}}else if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){var version=-1;for(var i=0;i<activeXDetectRules.length&&version==-1;i++){var obj=getActiveXObject(activeXDetectRules[i].name);if(!obj.activeXError){self.installed=true;version=activeXDetectRules[i].version(obj);if(version!=-1){var versionObj=parseActiveXVersion(version);self.raw=versionObj.raw;self.major=versionObj.major;self.minor=versionObj.minor;self.revision=versionObj.revision;self.revisionStr=versionObj.revisionStr;}}}}}();};FlashDetect.JS_RELEASE="1.0.4"; 192 193function randomFromInterval(from,to) 194{ 195 return Math.floor(Math.random()*(to-from+1)+from); 196} 197 198function only_int(evt) { 199 evt = (evt) ? evt : event; 200 var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0)); 201 if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; 202 return true; 203} 204 205function close_help_map() 206{ 207if (document.getElementById('map_help').style.display == "none") 208 { 209 document.getElementById('map_help').style.display = "" 210 } 211else 212 { 213 document.getElementById('map_help').style.display = "none" 214 } 215} 216 217function show() 218{ 219if (document.getElementById('hidden').style.display == "none") 220{ 221document.getElementById('hidden').style.display = "" 222} 223else 224{ 225document.getElementById('hidden').style.display = "none" 226} 227 228if (document.getElementById('hidden1').style.display == "none") 229{ 230document.getElementById('hidden1').style.display = "" 231} 232else 233{ 234document.getElementById('hidden1').style.display = "none" 235} 236 237if (document.getElementById('hidden2').style.display == "none") 238{ 239document.getElementById('hidden2').style.display = "" 240} 241else 242{ 243document.getElementById('hidden2').style.display = "none" 244} 245} 246 247function checkFormTelUser() { 248 formErrors = false; 249 if (document.user_tel.tel.value.length < 7) { 250 formErrors = "ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ пÑавилÑно ÑказаÑÑ Ð½Ð¾Ð¼ÐµÑ ÑелеÑона"; 251 } 252 if (formErrors) { 253 alert(formErrors); 254 return false; 255 } else { 256 //formObj.preview.disabled = true; 257 //formObj.submit.disabled = true; 258 return true; 259 } 260} 261 262<!---// 263//document.write("<img src='/Include_IMG/ban_tel.png' width='200' height='290' border='0' style='margin-top: 10px;'/>") 264document.write("<div STYLE='margin:10px 0px 10px 0px; font: 10px Verdana; padding: 10px; text-align: left; background: #eeeeee; border: 1px solid #bdbcbd; color: #626262'>") 265document.write("<IMG SRC='/Include_IMG/tel_red1.gif' WIDTH='59' HEIGHT='33' BORDER='0' ALIGN='left' style='margin: 0px 8px 0px 0px; padding: 0px; float: left'>") 266document.write("ÐÑÑавÑÑе Ð½Ð¾Ð¼ÐµÑ Ñвоего ÑелеÑона и наÑи конÑÑлÑÑанÑÑ Ñ Ðами ÑвÑжÑÑÑÑ Ð² ÑеÑении 15-Ñи минÑÑ Ð² ÑабоÑее вÑемÑ") 267document.write("<BR>") 268document.write("<FORM ACTION='http://www.apartment.ru/tel.asp' METHOD='POST' name='user_tel' onsubmit='return checkFormTelUser(this)'>") 269document.write("<TABLE WIDTH='100%' BORDER='0' CELLSPACING='0' CELLPADDING='0'>") 270document.write(" <TR><TD COLSPAN='3'><IMG SRC='/Include_IMG/1.gif' WIDTH='0' HEIGHT='8' BORDER='0'></TD></TR>") 271document.write(" <TR>") 272document.write(" <TD WIDTH='100%'></TD>") 273document.write(" <TD><IMG SRC='/Include_IMG/1.gif' WIDTH='0' HEIGHT='0' BORDER='0'></TD>") 274document.write(" <TD><IMG SRC='/Include_IMG/1.gif' WIDTH='24' HEIGHT='0' BORDER='0'></TD>") 275document.write(" </TR>") 276document.write(" <TR>") 277document.write(" <TD><INPUT TYPE='text' NAME='tel' STYLE='text-align: center; font: bold 14px Verdana; color: #c1292e; width: 136px; background: url(http://www.apartment.ru/Include_IMG/fon_call_nomer.gif) 0px 0px repeat-x; height: 21px; border: 1px solid #bdbcbd;'></TD>") 278document.write(" <TD></TD>") 279document.write(" <TD><INPUT TYPE='image' NAME='submit' SRC='/Include_IMG/call.gif' WIDTH='24' HEIGHT='23' TABINDEX='0'></TD>") 280document.write(" </TR>") 281document.write("</TABLE>") 282document.write("</div>") 283document.write("</FORM>") 284//---> 285 286 287//if (typeof(pr) == 'undefined') { var pr = Math.floor(Math.random() * 1000000); } 288//if (typeof(document.referrer) != 'undefined') { 289// if (typeof(afReferrer) == 'undefined') { 290// afReferrer = escape(document.referrer); 291// } 292//} else { 293// afReferrer = ''; 294//} 295//var addate = new Date(); 296 297 298//var dl = escape(document.location); 299//var pr1 = Math.floor(Math.random() * 1000000); 300
301//document.write('<div id="AdFox_banner_'+pr1+'"><\/div>'); 302//document.write('<div style="visibility:hidden; position:absolute;"><iframe id="AdFox_iframe_'+pr1+'" width=1 height=1 marginwidth=0 marginheight=0 scrolling=no frameborder=0><\/iframe><\/div>'); 303 304//AdFox_getCodeScript(1,pr1,'http://ads.adfox.ru/213316/prepareCode?pp=g&ps=bkvx&p2=evxs&pct=a&plp=a&pli=a&pop=a&pr=' + pr +'&pt=b&pd=' + addate.getDate() + '&pw=' + addate.getDay() + '&pv=' + addate.getHours() + '&prr=' + afReferrer + '&dl='+dl+'&pr1='+pr1); 305 306 307 308<!-- 309//if (typeof(pr) == 'undefined') { var pr = Math.floor(Math.random() * 1000000); } 310//if (typeof(document.referrer) != 'undefined') { 311// if (typeof(afReferrer) == 'undefined') { 312// afReferrer = escape(document.referrer); 313// } 314//} else { 315// afReferrer = ''; 316//} 317//var addate = new Date(); 318//document.write('<scr' + 'ipt type="text/javascript" src="http://ads.adfox.ru/213316/prepareCode?pp=g&ps=bkvx&p2=eude&pct=a&plp=a&pli=a&pop=a&pr=' + pr +'&pt=b&pd=' + addate.getDate() + '&pw=' + addate.getDay() + '&pv=' + addate.getHours() + '&prr=' + afReferrer + '"><\/scr' + 'ipt>'); 319// --> 320 321 322 function click_part(id) 323 { 324 $.get("/Include_File/click_part.asp?n=" + id, function(data) { 325 return true; 326 }); 327 } 328 329$(document).ready(function() { 330 $.get("/Include_File/menu_left_new.asp", function(data) { 331 $("#main").prepend("<div id='left'></div>"); 332 $("#left").html(data); 333 $.get("/Include_File/menu_top_new.asp?q=4", function(data) { 334 $("#left").after("<div id='top_menu'></div>"); 335 $("#top_menu").html(data); 336 }); 337 }); 338/* 339 $.get("/Include_File/xml_block.asp", {}, function(xml) { 340 $("block", xml).each(function(i) { 341 $("#tbl_block" + $(this).attr("id")).html("<TABLE WIDTH='100%' BORDER='0' CELLSPACING='0' CELLPADDING='0' style='display: block; clear: both;'><TR>" + $(this).text() + "</TR></TABLE>"); 342 }) 343 //$(".block_part1 p a").click(function() { 344 // $.get("/Include_File/click_part.asp?n=" + $(this).attr("id"), function(data) { 345 // //alert($(this).attr("id")); 346 // return true; 347 // }); 348 //}) 349 }); 350*/ 351 352 $.get("/Include_File/adv_block2.asp?block=4", function(data) { 353 var tmp_int = randomFromInterval(1, 2); 354 //if(!FlashDetect.installed) 355 //{ 356 // spets_baner = "<div id='spets_part' style='margin-top: 0px; width: 186px; overflow: hidden; padding: 7px; border: 1px solid #000000'><p><A id='a1_875' HREF='http://www.mechta.su/townhouses/tip-120m/' TARGET='_blank' style='color: #000000; text-decoration: none;'><div style='color: #000000; font: 14px sans-serif; text-align: center; padding: 0px 0px 5px 0px;'><u>ÐÐ ÐеÑÑа 40мин. до ÑенÑÑа ÐоÑквÑ</u></div><IMG SRC='/Include_IMG/Apartment.ru_185x140_t.jpg' WIDTH='185' HEIGHT='140' BORDER='0'><div style='text-decoration: none; font: 12px sans-serif; margin-top: 5px;'>РиÑле ÑаÑÐ½Ñ Ð°ÑÑ 209 м2 за 35 000 ÑÑб. м2. ÐоÑелок поÑÑÑоен и заÑелÑеÑÑÑ. ÐейÑÑвÑÑÑÐ°Ñ Ð¸Ð½ÑÑаÑÑÑÑкÑÑÑа. Ð Ñдом Ð»ÐµÑ Ð¸ ÑÑи озеÑа. 214ФÐ, ипоÑека, ÑÑбÑидии.</div><div style='color: #CC3300; text-align: right; font: bold 12px sans-serif'>ТелеÑон: +7(495)510-10-99</div></A></p></div>"; 357 //} 358 //else 359 //{ 360 //spets_baner = "<div id='spets_part_flash' tmp_id='a1_875' style='margin-top: 10px; width: 200px; overflow: hidden;'><p><object width='200' height='300' border='0' frameborder='0'><param name='movie' value='/Reklama/200-300-" + tmp_int + "ns.swf'><embed src='/Reklama/200-300-" + tmp_int + "ns.swf' width='200' height='300' border='0' frameborder='0'></embed></object></p></div>"; 361 // spets_baner = "<div id='spets_part_flash' tmp_id='a1_875' style='width: 200px; overflow: hidden; border-color: #000000; border-style: solid; border-width: 0px 1px 1px 0px'><p style='display: block; position: relative; margin: 0px'><object width='200' height='300' border='0' frameborder='0'><param name='movie' value='/Include_IMG/240400mechta.swf'><embed src='/Include_IMG/240400mechta.swf' width='200' height='300' border='0' frameborder='0'></embed></object></p></div>"; 362 //} 363 364 //document.write("<object width='200' height='300'>"); 365 //document.write("<param name='movie' value='/Reklama/200-300-1ns.swf'>"); 366 //document.write("<embed src='/Reklama/200-300-1ns.swf' width='200' height='300'>"); 367 //document.write("</embed>"); 368 //document.write("</object>"); 369 370 //$("#right_block").html(spets_baner); 371 //$("#right_block").append(data); 372 //$("#right_block").append("<img src='/Include_IMG/ban_tel_new.png' width='200' height='251' border='0' style='margin-top: 0px;'/><img src='/Include_IMG/job.png' width='200' height='300' border='0' style='margin-top: 20px;'/>"); 373 374 375 $("#right_block div p a").click(function() { 376 //$.get("/Include_File/click_part.asp?n=" + $(this).attr("id"), function(data) { 377 // return true; 378 //}); 379 }) 380 $("#spets_part p a").click(function() { 381 //$.get("/Include_File/click_part.asp?n=" + $(this).attr("id"), function(data) { 382 // return true; 383 //}); 384 }) 385 $("#spets_part_flash").mousedown(function (e){ 386 //alert($(this).attr("tmp_id")); 387 //$.get("/Include_File/click_part.asp?n=" + $(this).attr("tmp_id"), function(data) { 388 // //alert($(this).attr("tmp_id")); 389 // return true; 390 //}); 391 }) 392 }); 393 394});
vendor: 347 bytes, lines 394-401
394 395 396 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 397 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 398 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 399 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 400 401 ga('create', '
401UA-55028092-1
vendor: 40 bytes, lines 401-402
401', 'auto'); 402 ga('send', 'pageview');
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.