/*
    @file: base.js
    @author: Eugene Kuzmin
*/

$(document).ready(function() {

    $('#titleRubrics').click(function() {
		$('#contentRubrics').slideToggle();
		$('#titleRubrics span').toggleClass('displayNone');
    });
    $('#titleArchive').click(function(){
		$('#contentArchive').slideToggle();
		$('#titleArchive span').toggleClass('displayNone');
    });
    
	
	$('#portfolio li').mouseover(function(){
		topY = $(this).find('span').height();
		topY = '-' + topY + 'px';
		$(this).find('a > img').stop().animate({marginTop: topY}, 500).next('span').stop().fadeTo("slow", 1.0);
	});
	$('#portfolio li').mouseout(function(){
		$(this).find('a > img').stop().animate({marginTop: 0}, 500).next('span').stop().fadeTo("slow", 0.0);;
	});
	
	$.superbox();
	
});


function showSmiles() {
    $('#smilesBlock').toggle("slow");
}