Make sure you are using a website template and not a presentation template. And also check you using the latest version of the program becasue I remember there was an issue in an early verison where presentation code was exported on a website but they fixed it in a patch. Go to Help -> Check for updates to make sure.