$(function(){
	// $('a[href=^#]').click(function(){
	// 	return false
	// })
	
	$('.big_picture:not(.no_auto_advance)').hover(function(){
		$('.next',this).fadeIn(400)
	},function(){
		$('.next',this).fadeOut(400)
	})
	
	var r = Math.floor(Math.random()*($('.big_picture .sexyCycle li').length))
	var i = ($('.big_picture').hasClass('no_auto_advance') ? false : 6000);
	
	$('.big_picture .sexyCycle').sexyCycle({
		speed: 1000,
		start: r,
		next: '.big_picture .cover, .big_picture .next',
		interval: i
		// lazyLoad:true
	})
	
	$('a[href=#follow]').toggle(function(){
		$(this).next().fadeIn(250);
		return false;
	},function(){
		$(this).next().fadeOut(250);
		return false;
	}).next('.popup').hide();
	
	if($('.children .current_page_item').length > 0){
		$('.current_page_item').parent('.children').show()
	}
})
