jQuery.noConflict(); jQuery('h1').attr('id', 'top_site'); jQuery('a[href^="#"]').bind('click.smoothscroll',function (e) { var target = this.hash, $target = jQuery(target); if(target!='' && $target.offset()!=undefined){ e.preventDefault(); jQuery('html, body').stop().animate({ 'scrollTop': $target.offset().top }, 900, 'swing', function () { window.location.hash = target; }); } }); jQuery('#togglelink').click(function(){ jQuery("#oglavlenie_in").toggle(); var el=document.getElementById('oglavlenie_in'); if(el.style.display=='none') jQuery(this).html('показать'); else jQuery(this).html('скрыть'); }); jQuery('#txt_main_show').click(function(){ jQuery('#txt_main_show').addClass('cur_type'); jQuery('#txt_main_foto').removeClass('cur_type'); jQuery('#txt_main_video').removeClass('cur_type'); jQuery('#txt_main_content').show(); jQuery('#foto_main_content').hide(); jQuery('#video_main_content').hide(); }); jQuery('#txt_main_foto').click(function(){ jQuery('#txt_main_foto').addClass('cur_type'); jQuery('#txt_main_show').removeClass('cur_type'); jQuery('#txt_main_video').removeClass('cur_type'); jQuery('#foto_main_content').show(); jQuery('#txt_main_content').hide(); jQuery('#video_main_content').hide(); }); jQuery('#txt_main_video').click(function(){ jQuery('#txt_main_video').addClass('cur_type'); jQuery('#txt_main_foto').removeClass('cur_type'); jQuery('#txt_main_show').removeClass('cur_type'); jQuery('#video_main_content').show(); jQuery('#foto_main_content').hide(); jQuery('#txt_main_content').hide(); }); function more_video_load(query_word){ jQuery.ajax({ type: "GET", beforeSend: function(){ jQuery('#more_video_load').html(' Мы обрабатываем ваш запрос...'); }, url: "/wp-content/plugins/service_binet/video_youtube.php?query=" + encodeURIComponent(query_word), success: function(msg){ jQuery('#more_video_load').html(msg); } }); }