1 2 3 4 5 6 $(window).load(function () 7{ 8 9 var w1 = $("body").width(); 10 //if (w1<600) $('iframe').css({'width':'250px'}); 11 12 if(document.location.hash != "") 13 { 14 if($(document.location.hash).length > 0) 15 { 16 var top = $(window).scrollTop(); 17 if(top > 0) $('html, body').stop().animate({ 18 'scrollTop': top - 118 + 'px' 19 }, 900); 20 } 21 } 22 var img_mute = $("#ImgMute").attr("src"); 23 if (img_mute == '') $("#ImgMute").attr("src","skin/onmute.png"); 24}); 25 26 27 28$(document).ready(function(){ 29 30 31 32//$(this).html($(this).html().replace(/(Ñена)(.*)(ÑÑб.)/gi, '$1 <div class="cena">$2 $3</div>')); 33// ÐÑлавливае Ð¦ÐµÐ½Ñ Ñ ÑÑб. и обÑамлÑем в клаÑÑ cena 34 35//$('#content1 .cont_photo .contentText').each(function(){ 36//$('h4').each(function(){ 37//$(this).html($(this).html().replace(/(Ñена)(.*)(ÑÑб.)/gi, '<div class="cena">$1<br> //$2 ÑÑб.</div>')); 38//$(this).html($(this).html().replace(/(.*)(ÑÑб.)/gi, '<div class="cena">$1 $2</div>')); 39//$(this).html($(this).html().replace(/Ð¦ÐµÐ½Ñ ÑÑоÑнÑйÑе/gi, '<div class="cena">$&</div>')); 40//}); 41 42//$('#content .cont_txt .contentText p').each(function(){ 43//alert($(this).html()); 44//$(this).html($(this).html().replace(/(.*)(ÑÑб.)/i, '<div class="cena">$1 $2</div>')); 45//}); 46 47 48$('#content .object .objectNote').each(function(){ 49//$(this).html($(this).html().replace(/(\d+\s+)+ÑÑб/gi, '<div class="cena">$&</div>')); 50}); 51 52$('.tableTable').addClass('responsive'); 53 54 var mtditem=$('#pageMainmenu .mtditem').css('background-color'); 55 var mtditemsm=$('#menu .menu').css('background-color'); 56 var mtditemcc=$('#menu .menu').css('color'); 57 var mtditemct=$('#menu .menu').css('textShadow'); 58 59 var mtditemch=$('#animateMainmenucolor').css('color'); 60 var mtditemac=$('#activeMenucolor').css('color'); 61 var mtditemsv=$('#menu .TextItemMenu').css('background-color'); 62 var animcolor=$('#animateMainmenucolor').css('background-color'); 63 var S_item=$('#imgmenu').css('background-color'); 64 var S_mobitem=$('#imgmobmenu').css('background-color'); 65 var mobcert=$('#mobcert').css('background-color'); 66 var S_mobmenu_object = $("div").find('#S_mobmenu'); 67 var S_mobmenu_out = "0"; 68 var mutedslide=true; 69 70 $('#ImgMute').click(function() 71 { 72 var img_mute = $("#ImgMute").attr("src"); 73 if (img_mute == 'skin/onmute.png') 74 { 75 $("#ImgMute").attr("src","skin/offmute.png"); 76 mutedslide=true; 77 //$('#div_city').html(' click off ' + img_mute + ' / ' + mutedslide); 78 } 79 else 80 { 81 $("#ImgMute").attr("src","skin/onmute.png"); 82 mutedslide=false; 83 //$('#div_city').html(' click on ' + img_mute + ' / ' + mutedslide); 84 } 85 86 var tagaudio = document.getElementsByTagName('audio'); 87 $.each(tagaudio,function(){ 88 slideaudio = document.getElementById($(this).attr('id')) 89 slideaudio.muted = mutedslide; 90 }); 91 92 }); 93 94 $(window).scroll(function() 95 { 96 if( $(this).scrollTop() != 0) 97 { $('#div_page_top').removeClass('div_top_hide').addClass('div_top_show'); } 98 else 99 { $('#div_page_top').addClass('div_top_hide').removeClass('div_top_show');} 100 }); 101 102 103 104 105 106 if($('div').is('#animateMainmenucolor')) { var animcolor=$('#animateMainmenucolor').css('background-color'); } else { var animcolor='#00ACE4';} 107 if(animcolor=='transparent') {animcolor='#00ACE4';} 108 109 $('#pageMainmenu .mtditem').hover( 110 function(){ $(this).stop().animate({ backgroundColor: animcolor}, 500);}, 111 function(){ $(this).stop().animate({ backgroundColor: mtditem }, 500);}); 112 113 114 $('#menu .menu').hover( 115 function(){ $(this).stop().animate({ backgroundColor: animcolor, color: mtditemch, textShadow: "0 0 0 "}, 500);}, 116 function(){ $(this).stop().animate({ backgroundColor: mtditemsm, color: '#fff', textShadow: "0 0 0 "}, 500);} 117 ); 118 119 $('#hidemenu .mtditem').hover( 120 function(){ $(this).stop().animate({ backgroundColor: animcolor}, 500);}, 121 function(){ $(this).stop().animate({ backgroundColor: mtditem }, 500);}); 122 123 124 $('#imgmenu').hover( 125 function(){ $(this).stop().animate({ backgroundColor: animcolor}, 500);}, 126 function(){ $(this).stop().animate({ backgroundColor: S_item }, 500);}); 127 128 $('#imgmobmenu').hover( 129 130 function(){ $(this).stop().animate({ backgroundColor: animcolor}, 500);}, 131 function(){ 132 133 if(S_mobmenu_object.css('display') == 'block') { 134 135 if(S_mobmenu_out == '1') { $(this).stop().animate({ backgroundColor: S_mobitem }, 500); 136 } else { $(this).stop().animate({ backgroundColor: S_item }, 500); 137 } 138 139
140 } else { 141 $(this).stop().animate({ backgroundColor: S_mobitem }, 500); 142 } 143 144 }); 145 146 $(window).resize(function() 147 { 148 149 var w1 = $("body").width(); 150 //if (w1<600) $('iframe').css({ 'width':'250px'}); 151 152 if(S_mobmenu_object.css('display') == 'block') $("#divmobmenu").css('display', 'block'); 153 $("#S_imgmobmenu ").children("#mobcert").css('background-color', mobcert); 154 $("#S_imgmobmenu").children("#mobcert").stop(true,true).animate({opacity: "show", display: 'block'}, "normal"); 155 $("#S_imgmobmenu").children("#mobcros4").stop(true,true).animate({opacity: "hide", display: 'none'}, "normal"); 156 $("#S_imgmobmenu").children("#mobcros5").stop(true,true).animate({opacity: "hide", display: 'none'}, "normal"); 157 158 $("#S_menu").stop(true,true).animate({opacity: "hide", top: "-85"}, "normal"); 159 $("#S_mobmenu").stop(true,true).animate({opacity:"hide"}, "normal"); 160 $("#S_mobmenu_content").stop(true,true).animate({opacity:"hide", left: "-85"}, "normal"); 161 $("#imgmobmenu").stop().animate({ backgroundColor: S_mobitem }, 500); 162 163 $("#divtopmenu").css('height', ''); 164 165// enableScroll(); 166 if($("body").css('overflow') == 'hidden') 167 { 168 $("body").css('overflow', 'visible'); 169 $("#sitepage").css('width', '100%'); 170 $("#sitepage").css('marginRight', '0px'); 171 172 173 $(".knopikBut").css('left', '-27px'); 174 $("#menupage").css('marginRight', '0px'); 175 $("#divmenutop").css('marginRight', '0px'); 176 $("#toTop").css('marginRight', '0px'); 177 178 $("body").css('width', '100%'); 179 $("body").css('marginRight', '0px'); 180 181 } 182 183 }); 184 185 186 187 $('body').click(function(){ 188 189 $("#S_imgmobmenu ").children("#mobcert").css('background-color', mobcert); 190 $("#S_imgmobmenu").children("#mobcert").stop(true,true).animate({opacity: "show", display: 'block'}, "normal"); 191 $("#S_imgmobmenu").children("#mobcros4").stop(true,true).animate({opacity: "hide", display: 'none'}, "normal"); 192 $("#S_imgmobmenu").children("#mobcros5").stop(true,true).animate({opacity: "hide", display: 'none'}, "normal"); 193 194 $("#S_menu").stop(true,true).animate({opacity: "hide", top: "-85"}, "normal"); 195 $("#S_mobmenu").stop(true,true).animate({opacity:"hide"}, "normal"); 196 $("#S_mobmenu_content").stop(true,true).animate({opacity:"hide", left: "-85"}, "normal"); 197 $("#imgmobmenu").stop().animate({ backgroundColor: S_mobitem }, 500); 198 199 $("#divtopmenu").css('height', ''); 200 201// enableScroll(); 202 if($("body").css('overflow') == 'hidden') 203 { 204 $("body").css('overflow', 'visible'); 205 $("#sitepage").css('width', '100%'); 206 $("#sitepage").css('marginRight', '0px'); 207 208 209 $(".knopikBut").css('left', '-27px'); 210 $("#menupage").css('marginRight', '0px'); 211 $("#divmenutop").css('marginRight', '0px'); 212 $("#toTop").css('marginRight', '0px'); 213 214 $("body").css('width', '100%'); 215 $("body").css('marginRight', '0px'); 216 217 } 218 219 }); 220 221 $("#S_menu").stop(true,true).animate({opacity: "hide", top: "-85", display: 'none'}, "normal"); 222 $("#S_mobmenu").stop(true,true).animate({opacity: 0.7, display: 'none'}, "normal"); 223 $("#S_mobmenu_content").stop(true,true).animate({opacity: "hide", left: "-85"}, "normal"); 224 225 $('#imgmenu').click(function(e){ 226 e.stopPropagation(); 227 var object = $(this).next('#S_menu'); 228 if(object.css('display') == 'block') {$("#S_menu").stop(true,true).animate({opacity: "hide", top: "-85", display: 'none'}, "normal"); } 229 else {$("#S_menu").stop(true,true).animate({opacity: "show", top: "0", display: 'block'}, "slow");} 230 }); 231 232 $('#imgmobmenu').click(function(m){ 233 m.stopPropagation(); 234 235 if(S_mobmenu_object.css('display') == 'block') 236 { 237 $("#divtopmenu").css('height', ''); 238 $("#S_mobmenu").stop(true,true).animate({opacity: "hide", display: 'none'}, "normal"); 239 240 //enableScroll(); 241 242 if($("body").css('overflow') == 'hidden') 243 { 244 $("body").css('overflow', 'visible'); 245 $("#sitepage").css('width', '100%'); 246 $("#sitepage").css('marginRight', '0px'); 247 248 249 $(".knopikBut").css('left', '-27px'); 250 $("#menupage").css('marginRight', '0px'); 251 $("#divmenutop").css('marginRight', '0px'); 252 $("#toTop").css('marginRight', '0px'); 253 254 $("body").css('width', '100%'); 255 $("body").css('marginRight', '0px'); 256 257 } 258 259 $("#S_imgmobmenu").children("#mobcert").stop(true,true).animate({opacity: "show", display: 'block'}, "normal"); 260 $("#S_imgmobmenu").children("#mobcros4").stop(true,true).animate({opacity: "hide", display: 'none'}, "normal"); 261 $("#S_imgmobmenu").children("#mobcros5").stop(true,true).animate({opacity: "hide", display: 'none'}, "normal"); 262 263 $("#S_imgmobmenu").children("#mobcert").css('background-color', mobcert); 264 S_mobmenu_out = "1"; 265 } 266 else 267 { 268 269 $("#divtopmenu").css('height', '100%'); 270 $("#S_mobmenu").stop(true,true).animate({opacity: "show", display: 'block'}, "slow"); 271 //disableScroll(); 272 273 274 if($("body").css('overflow') != 'hidden') 275 { 276 var w1 = $("body").width(); 277 $("body").css('overflow', 'hidden'); 278 var w2 = $("body").width(); 279 280 //alert(w1 + ' = ' + w2); 281 if (w2!=w1) 282 { 283 w3 = w2 - w1;
284 //$("#sitepage").css('width', 'calc(100% - ' + (w3+0) + 'px)'); 285 286 $("#sitepage").css('width', (w1+0) + 'px)'); 287 $("#sitepage").css('marginRight', w3 + 'px'); 288 289 290 $(".knopikBut").css('left', (-27-w3) +'px'); 291 $("#menupage").css('marginRight', w3 + 'px'); 292 $("#divmenutop").css('marginRight', w3 + 'px'); 293 $("#toTop").css('marginRight', w3 + 'px'); 294 295 //$("html").css('width', (w1-0) + 'px'); 296 //$("html").css('marginRight', w3 + 'px'); 297 298 $("body").css('width', (w1-0) + 'px'); 299 $("body").css('marginRight', w3 + 'px'); 300 } 301 } 302 $("#S_imgmobmenu").children("#mobcert").stop(true,true).animate({opacity: "hide", display: 'none'}, "normal"); 303 $("#S_imgmobmenu").children("#mobcros4").stop(true,true).animate({opacity: "show", display: 'block'}, "normal"); 304 $("#S_imgmobmenu").children("#mobcros5").stop(true,true).animate({opacity: "show", display: 'block'}, "normal"); 305 306 $("#imgmobmenu").stop().animate({ backgroundColor: S_mobitem }, 500); 307 S_mobmenu_out = "0"; 308} 309 310 var object = $("div").next('#S_mobmenu_content'); 311 if(object.css('display') == 'block') { $("#S_mobmenu_content").stop(true,true).animate({opacity: "hide", left: "-85", display: 'none'}, "normal"); } 312 else {$("#S_mobmenu_content").stop(true,true).animate({opacity: "show", left: "0", display: 'block'}, "slow");} 313 314 }); 315 316 317});/*end ready*/ 318 319 320 321
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.