		//custom functions for template
		jQuery(document).ready(function($){
			
			//slideshow
			$("ul.tabs").tabs("div.panes > div", {
				current: 'current',
				effect: 'fade',				
				fadeOutSpeed: 2000,
				fadeInSpeed: 2000,
				rotate: true 
			}).slideshow({
				autoplay: true,
				interval: 4000
			});
			
			// Smooth Scroll for local anchors on pages   
			$(".scroll-link > a, .content-up a, #letters a").click(function(event){
				
				event.preventDefault();
				var full_url = this.href;
				
				var parts = full_url.split("#");
				var trgt = parts[1];
				
				var target_offset = $("#"+trgt).offset();
				var target_top = target_offset.top;
				
				$('html, body').animate({scrollTop:target_top}, 1000);
			});
			// form focus
			$('#search-box').focus(function(){
				var value = $(this).val();
				if(value == 'Поиск') {
					var newV = '';
				} else {
					var newV = value;
				}
				$(this).val(newV);
				$(this).parent().toggleClass('focus');
			});
			$('#search-box').blur(function(){
				var value = $(this).val();
				if(value == '') {
					var newV = 'Поиск';
				} else {
					var newV = value;
				}
				$(this).val(newV);
				$(this).parent().toggleClass('focus');
			});
			// status msg wording
			var label = $('.status-msg-content b').text();
			var url = $('.status-msg-content a').attr('href');
			//$('.status-msg-content').html('Тематическая подборка <strong>' + label +'</strong>. <a href="'+url+'">Все стихотворения</a>');
			
			//close ie notice
			$('#close a').click(function(){
				$(this).parents('#ie-notice').hide();
			});
	});