thanks - yes, I understand that n is the Parameter in that function - the Point is: in the whole Code for that slide nowhere n is getting any value - there is never defined any concrete value for that n e. g. showSlides(3) like in your example - so how compare that n in the IF-Question? n must have a value - I know - otherwise this script wouldn't work, but I can't figure out where it comes from.