thanks antoine, let me deal with the scroll first; i'm sure i'll have questions for you about the text afterward :D.
checking your code, and adding some thoughts. can you correct me where i'm wrong?
activePicture = 1;
// what are you defining above?
function moveImgContainer(){
target = "#_"+activePicture;
newPosition = 275 - $( target ).offset().left + $("#img-container").offset().left;
$("#img-container").animate({
left: newPosition
}, 850, "easeOutQuint" );
checkScrollbarStatus();
}
//so here it looks like you're defining a function called moveimgcontainer. you're creating a target, but i don't understand what #+activepicture means - it must be something about defining the new position. you do that in the next line: new position = 275 - target - imgcontainer? care to explain that briefly?
function natureNavi(){
//this must be the actual function to move the images that you're referencing in index.php.
numberOfPictures = $("#img-container .small, #img-container .large").length;
//totals the number of pictures to define the length.
$('#image-navi').prepend('');
//inserts the arrow icons
$('#image-navi-left').click( function() {
if( activePicture - 1 >= 1 ){
$("a.numbers[href='_"+activePicture+"']").css("font-weight", "normal");
activePicture--;
}
moveImgContainer();
$("a.numbers[href='_"+activePicture+"']").css("font-weight", "bold");
return false;
});
//on click, move left and update your numbers layout at the bottom. if i just wanted icons and now numbers, i'd remove the lines that referred to 'a.numbers', right?
$('#image-navi-right').click( function() {
if( activePicture + 1