function showReviews(){
jQuery('html, body').animate({scrollTop:jQuery("#ag-s").offset().top}, 'slow');
}
function showMoreReviews(productId, reviewsNb, postsPage , pageNb, modulesDir, langId){
if(Math.ceil(reviewsNb / postsPage)==parseInt(pageNb)){
jQuery('#more-reviews').hide();
}
jQuery.ajax({
url: modulesDir,
type: 'POST',
data: {currentPage:pageNb, id_lang:langId, posts_per_page:postsPage, id_product:productId, nbOfReviews:reviewsNb},
beforeSend: function(){
jQuery('#chargement').show();
save=jQuery(".reviewList").html();
},
success: function(html){
jQuery('#chargement').hide();
jQuery(".reviewList").append(html);
pageNb=pageNb + 1;
jQuery("#more-reviews").each(function(){
this.attributes.onclick.nodeValue="return showMoreReviews(" + productId + ", " + reviewsNb + ", " + postsPage + ", " + pageNb + ", '" + modulesDir + "', '" + langId + "');";
});
}});
return false;
};