script in all secondary menu templates moved to a seperate file

script in all secondary menu templates moved to a seperate file