here a better crafted script (i think...)
I declared in function the stuffs and now the script starts with the menu
i tested thoroughly without problems
bye paolo
---
new version with minor face corrections (one related to non updated read of current gamma settings)