$(document).ready(function() {
	// click
	$('#menu li.item').add('.item:not(.player):not(.article):not(.nolink)').css({cursor:'pointer'}).each(function(){
		$(this).click(function(){
			window.location=$(this).find('a:first').attr('href');
		});
	});
	$('#player').hover(function(){
			$('.article').fadeTo(0,.7);
			$('.hover').removeClass('hover').addClass('wasHover');
			if ($.browser.msie) {$('.embed').css({visibility:'hidden'});}
		},function(){
			$('.article').fadeTo(0,1);
			$('.wasHover').removeClass('wasHover').addClass('hover');
			if ($.browser.msie) {$('.embed').css({visibility:'visible'});}
		});
	// slideshow
  $('.slideshow').cycle({fx: 'fade'}).css({height:($('.slideshow img.album:first').height())});
});

// size article & follow
$(window).load(function() {
	var article=$('#article');
	if (article) {
		var h=$(article).height()+13;
		var dh=165+36;
		var d=Math.ceil(h/dh);
		var newH=d*dh-36;
		$(article).css({height:newH});
	}
	
	
});



