The following code works on Chrome, FF and Safari, but not on IE8.
All variables have been tested and are populated.
var videoSubTopics = [60,120,240,300];
function function(e) {
var index = videoSubTopics.indexOf(Math.floor(e.position));
if (index >= 0) {
alert(videoSubTopics[index]);
}
}
Any ideas?