1/*global window, document, navigator*/ 2var flashinstalled = 0, 3 flashversion = 0, 4 MSDetect = "false"; 5 6 7function M(){ 8 var D = "undefined", 9 S = "Shockwave Flash", 10 W = "ShockwaveFlash.ShockwaveFlash", 11 q = "application/x-shockwave-flash", 12 R = "SWFObjectExprInst", 13 x = "onreadystatechange", 14 O = window, 15 r = "object", 16 aa = typeof document.getElementById != D && typeof document.getElementsByTagName != D && typeof document.createElement != D, 17 ah = navigator.userAgent.toLowerCase(), 18 Y = navigator.platform.toLowerCase(), 19 ae = Y ? /win/.test(Y) : /win/.test(ah), 20 ac = Y ? /mac/.test(Y) : /mac/.test(ah), 21 af = /webkit/.test(ah) ? parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, 22 X = !+"\v1", T, 23 ag = [0, 0, 0], 24 ab = null; 25 26 if (typeof navigator.plugins != D && typeof navigator.plugins[S] == r) { 27 ab = navigator.plugins[S].description; 28 if (ab && !(typeof navigator.mimeTypes != D && navigator.mimeTypes[q] && !navigator.mimeTypes[q].enabledPlugin)) { 29 T = true; 30 X = false; 31 ab = ab.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); 32 ag[0] = parseInt(ab.replace(/^(.*)\..*$/, "$1"), 10); 33 ag[1] = parseInt(ab.replace(/^.*\.(.*)\s.*$/, "$1"), 10); 34 ag[2] = /[a-zA-Z]/.test(ab) ? parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0; 35 } 36 } 37 else { 38 if (typeof O.ActiveXObject != D) { 39 try { 40 var ad = new ActiveXObject(W); 41 if (ad) { 42 ab = ad.GetVariable("$version"); 43 if (ab) { 44 X = true; 45 ab = ab.split(" ")[1].split(","); 46 ag = [parseInt(ab[0], 10), parseInt(ab[1], 10), parseInt(ab[2], 10)]; 47 } 48 } 49 } 50 catch (Z) { 51 } 52 } 53 } 54 return { 55 pv: ag, 56 ie: X 57 } 58 } 59 function F(Z){ 60 var Y = M().pv, 61 X = Z.toString().split("."); 62 X[0] = parseInt(X[0], 10); 63 X[1] = parseInt(X[1], 10) || 0; 64 X[2] = parseInt(X[2], 10) || 0; 65 return (Y[0] > X[0] || (Y[0] == X[0] && Y[1] > X[1]) || (Y[0] == X[0] && Y[1] == X[1] && Y[2] >= X[2])) ? true : false; 66 } 67 68function insFl(v,fl,gif,lnk,w,h,flash_vars) { 69 var d=' width='+w+' height='+h, 70 flash; 71 if (F(v)) { 72 flash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+d+'><param name="wmode" value="transparent"/><param name="movie" value="'+fl+'"/>'; 73 if(flash_vars){ 74 flash += '<param name="flashvars" value="'+flash_vars+'"/>'; 75 } 76 flash += '<embed src="'+fl+'" quality=high'+d+' wmode="transparent"'; 77 if(flash_vars){ 78 flash += ' flashvars="'+flash_vars+'" '; 79 } 80 flash += '></embed></object>'; 81 82 document.write(flash); 83 } else { 84 if (gif != '') {
85 document.write('<a href='+lnk+'><img src='+gif+d+' border=0></a>') 86 } 87 else if(M().pv[0]>6){ 88 document.write("<div id='noFlash'></div>"); 89 var txt; 90 if(M().ie){ 91 txt = '<object width="310" height="137" id="SWFObjectExprInst" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="flashvars" value="MMplayerType=ActiveX"/><param name="movie" value="/images/expressInstall.swf"/></object>'; 92 }else{ 93 txt = '<object width=300 height=120 type="application/x-shockwave-flash" data="/images/expressInstall.swf" id="SWFObjectExprInst"><param name="flashvars" value=""/></object>'; 94 } 95 document.write(txt); 96 } 97 else{ 98 document.write(noFlash) 99 } 100 } 101} 102 103var swfobject = { 104 expressInstallCallback: function(){ 105 document.getElementById("SWFObjectExprInst").parentNode.removeChild(document.getElementById("SWFObjectExprInst")); 106 document.getElementById("noFlash").innerHTML = noFlash; 107 } 108 } 109 110var noFlash = "<div style='text-align:center;padding:10px'><noindex><div style='width:400px;margin:0 auto;'><h2 style='text-decoration:none'><img width='16' height='16' alt='Âíèìàíèå' src='/images/alert.gif'/> Âíèìàíèå</h2><p>×òîáû ïîñìîòðåòü ñîäåðæèìîå ñòðàíèöû, äîëæåí áûòü âêëþ÷åí JavaScript, è óñòàíîâëåíà ïîñëåäíÿÿ âåðñèÿ Adobe Flash Player.</p><p class='caption'><a target='_blank' href='http://get.adobe.com/flashplayer/'>Ñêà÷àòü Flash Player!</a></p><a target='_blank' href='http://get.adobe.com/flashplayer/'><img alt='Ñêà÷àòü Flash Player' src='/images/get_flash_player.gif'/></a></div></noindex></div>"; 111 112function ShowPhoto(url, width, height) { 113 var scroll = (screen.width < 1000) ? "yes" : "no"; 114 115 var left = (self.screen.width >> 1) - (width >> 1); 116 var top = (self.screen.height >> 1) - (height >> 1); 117 var param = 'left='+left+',top='+top+',width='+width+',height='+height+','; 118 119 window.open(url, '_blank', param+'menubar=no, scrollbars=' + scroll + ', status=no'); 120} 121 122function emoticon(theSmilie) 123{ 124 doInsert(" " + theSmilie + " ", "", false); 125} 126 127function doInsert(ibTag, ibClsTag, isSingle) 128{ 129 var isClose = false; 130 var obj_ta = document.post.message; 131 132 //---------------------------------------- 133 // It's IE! 134 //---------------------------------------- 135 if ( (ua_vers >= 4) && is_ie && is_win){ 136 if (obj_ta.isTextEdit){ 137 obj_ta.focus(); 138 var sel = document.selection; 139 var rng = sel.createRange(); 140 rng.colapse; 141 if((sel.type == "Text" || sel.type == "None") && rng != null){ 142 if(ibClsTag != "" && rng.text.length > 0) 143 ibTag += rng.text + ibClsTag; 144 else if(isSingle) 145 isClose = true; 146 147 rng.text = ibTag; 148 } 149 } 150 else{ 151 if(isSingle){ 152 isClose = true; 153 } 154 obj_ta.value += ibTag; 155 } 156 } 157 //---------------------------------------- 158 // It's MOZZY! 159 //---------------------------------------- 160 161 else if ( obj_ta.selectionEnd ){ 162 var ss = obj_ta.selectionStart, 163 st = obj_ta.scrollTop, 164 es = obj_ta.selectionEnd; 165 166 if (es <= 2){ 167 es = obj_ta.textLength; 168 } 169 170 var start = (obj_ta.value).substring(0, ss); 171 var middle = (obj_ta.value).substring(ss, es); 172 var end = (obj_ta.value).substring(es, obj_ta.textLength); 173 174 //----------------------------------- 175 // text range? 176 //----------------------------------- 177 178 if (obj_ta.selectionEnd - obj_ta.selectionStart > 0){ 179 middle = ibTag + middle + ibClsTag; 180 } 181 else{ 182 middle = ibTag + middle; 183 184 if (isSingle){ 185 isClose = true; 186 } 187 } 188 189 obj_ta.value = start + middle + end; 190 191 var cpos = ss + (middle.length); 192 193 obj_ta.selectionStart = cpos; 194 obj_ta.selectionEnd = cpos; 195 obj_ta.scrollTop = st; 196 } 197 //---------------------------------------- 198 // It's CRAPPY! 199 //---------------------------------------- 200 else{ 201 if (isSingle){ 202 isClose = true; 203 } 204 obj_ta.value += ibTag; 205 } 206 207 obj_ta.focus(); 208 209 return isClose; 210} 211function getBodyScrollTop() { 212 return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop); 213} 214 215$(document).ready(function(){ 216 if ($('#exectime').length > 0) { 217 $('#exectime').css({ 218 display: "block", 219 width: 350, 220 position: "fixed", 221 padding: 20, 222 borderRadius: 15, 223 background: "#faa", 224 color: "#000", 225 cursor: "pointer", 226 opacity: 0, 227 top:10, 228 left: $(document).width()-400 229 }); 230 231 $('#exectime').fadeTo(500, 0.5); 232 233 $('#exectime').mouseover(function() { 234 $('#exectime').fadeTo(500, 1); 235 }); 236 $('#exectime').mouseout(function() { 237 $('#exectime').fadeTo(500, 0.5); 238 }); 239 240 setTimeout(function() { 241 $('#exectime').fadeOut('slow', function() { 242 $('#exectime').remove(); 243 }); 244 }, 7000); 245 } 246 if ($('img.captcha[src*="/codeimg.phtml"]').length > 0) { 247 if ($("#wrap_cap").length == 0){ 248 $('img.captcha[src*="/codeimg.phtml"]').load(function() { 249 $(this).wrap("<div id='wrap_cap' style='height:"+($(this).height())+"px; width:"+($(this).width())+"px'/>"); 250 }) 251 } 252 $('img.captcha[src*="/codeimg.phtml"]').live("click", function() { 253 var parent = this.parentNode; 254 var captcha = new Image(); 255 captcha.src = "/codeimg.phtml?"+Math.random(); 256 captcha.className = "captcha"; 257 captcha.style.display = "none"; 258 $(this).fadeOut("fast", function() { 259 $(this).remove(); 260 parent.appendChild(captcha); 261 $('img.captcha[src*="/codeimg.phtml"]').fadeIn("slow"); 262 }); 263 return false;
264 }); 265 } 266}); 267 268function getlnsideWindowHeight() { 269 if (window.innerHeight) { 270 return window.innerHeight; 271 } else { 272 return document.body.parentElement.clientHeight; 273 } 274 return 0; 275} 276 277function getBrowserInfo() { 278 var t,v = undefined; 279 if (window.opera) t = 'Opera'; 280 else if (document.all) { 281 t = 'IE'; 282 var nv = navigator.appVersion; 283 var s = nv.indexOf('MSIE')+5; 284 v = nv.substring(s,s+1); 285 } 286 else if (navigator.appName) t = 'Netscape'; 287 return {type:t,version:v}; 288} 289 290function bookmark(a){ 291 var url = window.document.location; 292 var title = window.document.title; 293 var b = getBrowserInfo(); 294 if (b.type == 'IE' && 8 > b.version && b.version >= 4) window.external.AddFavorite(url,title); 295 else if (b.type == 'Opera') { 296 a.href = url; 297 a.rel = "sidebar"; 298 a.title = url+','+title; 299 return true; 300 } 301 else if (b.type == "Netscape" && window.sidebar) window.sidebar.addPanel(title,url,""); 302 else alert("Íàæìèòå CTRL-D, ÷òîáû äîáàâèòü ñòðàíèöó â çàêëàäêè."); 303 return false; 304} 305 306var jsReady = false; 307function isReady() { 308 return jsReady; 309} 310function pageInit() { 311 jsReady = true; 312 document.forms["form1"].output.value += "\n" + "JavaScript is ready.\n"; 313} 314function thisMovie(movieName) { 315 if (navigator.appName.indexOf("Microsoft") != -1) { 316 return window[movieName]; 317 } else { 318 return document[movieName]; 319 } 320} 321function getXY(value) { 322 document.getElementById("coords").value = value; 323} 324 325function getNoFlash(){ 326 if(!F("9.1.15")){ 327 document.getElementById("noflashhead").style.display = "block"; 328 } 329} 330$(document).ready(function() { 331 $('a.fancypic, .fancy').each(function(i,x){if(!($(this).attr('href'))){return false;}x.onclick=null;}) 332 .fancybox({ 333 'titlePosition':'inside', 334 'autoScale': true 335 }); 336 $('ul#photos a').each(function(i,x){if(!($(this).attr('href'))){return false;}x.onclick=null;}) 337 .fancybox({ 338 'titlePosition':'inside', 339 'autoScale': true 340 }); 341}); 342 343function initVote(){ 344 var li = $('.vote ul>li'), ul = $('.vote ul'); 345 li.hover(function(){ 346 $(this).css({'background-position':'0 0'}).prevAll('li').css({'background-position':'0 0'}).end().nextAll('li').css({'background-position':'-21px 0'}); 347 }); 348 ul.mouseleave(function(){ 349 li.css({'background-position':'-21px 0'}) 350 }); 351 li.click(function(){ 352 doVote(1+$(this).prevAll('li').length); 353 }); 354} 355var id_film = null; 356function doVote(value) { 357 $.post(vote_url, {id_film: id_film, value: value}, function(data, textStatus, jqXHR) { 358 $(".vote").addClass("form").html(data); 359 $(".vote button").click(function(){ 360 $.post(vote_url, {id_film: id_film, value: value, email: $(".vote input[name=email]").val()}, function(data, textStatus, jqXHR) { 361 $(".vote").removeClass("form").addClass("form2").html(data); 362 }, "text"); 363 }); 364 }, "text"); 365}
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.