$(document).ready(function(){
	$('#infoopen a').click(function() {
		$('#info').slideToggle("slow");
		if( $(this).is('.open') ) {$(this).removeClass('open');}
		else {$(this).addClass('open');} 
		return false;
	});
	
	//$('.finfo').css({'display' : 'block'});
	//$('.finfo').css('top', '220px');
	
	$('.fitem').each(function () {
	  var $span = $('> div.finfo', this);
	  $(this).hover(function () {
	    $span.stop().animate({top:'0px'},{queue:false,duration:180});
	  }, function () {
	    $span.stop().animate({top:'220px'},{queue:false,duration:180});
	  });
	});

	
	$('#swr').hover(function () {
		$(this).css('cursor', 'pointer');
	}, function () {
	    $(this).css('cursor', 'auto');
	    
	});
	
	$('#swr').click(function() {
		jQuery.facebox('<p>Это статус моего jabber. Так как аськой я стараюсь пользоваться по минимуму, то настоятельно рекомендую связываться со мной именно посредством jabber или gTalk.</p><p>Мой JabberID: riff@myid.ru.</p><p>Подробнее о джаббер можно узнать <a href="http://ru.wikipedia.org/wiki/Jabber">здесь</a></p>');
	});
	
	$.localScroll({
		axis:'y',
		lock: true,
		duration: 2000,
		offset: {top: -40}
	});

	//$('a[rel*=facebox]').facebox() 
$('a.ishow').facebox();

$('.tl, .tr, .bl, .br, .b').css('opacity', 0.7);
$('.tagSizeSmallest').css('opacity', 0.2);
$('.tagSizeMedium').css('opacity', 0.6);

$(function(){
	 $('#twitt').tweetable({
		 username: 'rifflog',
		 limit: 1});
	});


});
 
