$(document).ready(function(){

	var openNewsText = 'Развернуть новость';
	var closeNewsText = 'Свернуть новость';
	
	$(".expControlLink").each(function(){
		var boo = 0;
		$(this).click(function(){
			if ( !boo ){
				$(this).parent().prev('.newsFull').show('fast');
				$(this).text(closeNewsText);
				boo = 1;
			} else {
				$(this).parent().prev('.newsFull').hide('fast');
				$(this).text(openNewsText);
				boo = 0;
			}
		});
	});

	var openConcText = 'развернуть';
	var closeConcText = 'свернуть';

	$(".concExp").each(function(){
		var boo = 1;
		$(this).click(function(){
			if ( boo != 1 ){
				$(this).parent().prev('.cbm').hide('fast');
				$(this).text(openConcText);
				boo = 1;
			} else {
				$(this).parent().prev('.cbm').show('fast');
				$(this).text(closeConcText);
				boo = 0;
			}
		});
	});

	$('.firstClick').click();

	$('.g a').lightBox();

	$('.sPlay').click(function(){
	    $('.playerWrap').show();
	});

	$('.aboutMusic').click(function(){
	    $('body').attr('id','musicant');
	    $('.groupOuter').hide();
	    $('.musicantOuter').show();
	});

	$('.otherMusicants').click(function(){
	    $('body').attr('id','group');
	    $('.groupOuter').show();
	    $('.musicantOuter').hide();
	});

	$('#sanyaLink').click(function(){
	    $('.uch').hide();
	    $('#sanya').show();
	});

	$('#dimonLink').click(function(){
	    $('.uch').hide();
	    $('#dimon').show();
	});

	$('#petyaLink').click(function(){
	    $('.uch').hide();
	    $('#petya').show();
	});

	$('#vovanLink').click(function(){
	    $('.uch').hide();
	    $('#vovan').show();
	});
	
	$('.concArchiveLnk').click(function(){
		$('.concArchive').toggle();
	});

});