function show_hide_no_img(b) {
	$(document).ready( function() {
		$('#s' + b).slideToggle("fast")
	})
}

function show_hide(b) {
	var a = document.getElementById('pic' + b);
	$(document).ready( function() {
		$('#s' + b).slideToggle("fast")
	});
	if (a.title == 'Показать') {
		a.title = 'Скрыть';
		a.src = './pic/minus.gif'
	} else {
		a.src = './pic/plus.gif';
		a.title = 'Показать'
	}
}

function spoiler_init() {
	$(document).ready( function() {
		$('a.spoiler_title, a.news_spoiler').each( function() {
			$(this).unbind('click');
		});
		$('a.spoiler_title').click( function() {
			$(this).toggleClass('sp-pic_minus');
			if (!$(this).attr('with_title')) {
				if ($(this).text() == "Скрыть") {
					$(this).text("Показать");
				} else
					$(this).text("Скрыть");
			}
			$(this).next('div.spoiler_body').slideToggle('fast');
		});
	})
}

function click_block(b) {
	var a = document.getElementById('block-img' + b);
	$(document).ready( function() {
		$('#block-content' + b).slideToggle("fast")
	});
	if (a.title == 'Показать') {
		a.title = 'Скрыть';
		a.src = './themes/' + this.ss_uri + '/images/minus.gif'
	} else {
		a.src = './themes/' + this.ss_uri + '/images/plus.gif';
		a.title = 'Показать'
	}
}
