var $j = jQuery.noConflict();
$j(function(){
	// Menu rollover
    $j("#menu li a").hover(function(){
    	$j(this).stop().animate({
    		paddingRight: "15px"
    	}, 150);
    }, function() {
    	$j(this).stop().animate({
    		paddingRight: "5px"
    	}, 150);
    });
    
    // + show/hide
    $j("#options").hide();
	$j("#show_options").click(function () {
		$j("#options").slideToggle("slow");
	});    
});

// Next Post on single page		
function nextPost(){
	if(post_id == last_post){
		document.location = "http://" + document.domain + "/espaces_atypiques/?p=" + ids_a[0];
	} else{
		document.location = "http://" + document.domain + "/espaces_atypiques/?p=" + ids_a[post_pos+1];
	}
}


// Previous post on single page
function prevPost(){
	if(post_id == first_post){
		document.location = "http://" + document.domain + "/espaces_atypiques/?p=" + ids_a[ids_a.length-1];
	}else{
		document.location = "http://" + document.domain + "/espaces_atypiques/?p=" + ids_a[post_pos-1];
	}
}
