added check to see if running from phonegap or not, moved some sound stuff inside pageshow, did not get phonegap notification to work yet