looping question

OK, sorry to not be sufficiently clear. If my code "makes no sense" it explains why I'm here asking politely for help.

The code has a section where the leds advance in frequency up to a point. Then the 2nd section of quickly pulsing leds follows for a number of repeating times. I simply want the code to then go to the top and repeat.

Id also like to know that I can insert this section of code into others. I think my confusion stems from not understanding the use of brackets {}.

Thank you,
jim