I'm calling tracks to a custom flash player - the script works fine in ie on a pc but not on a mac or on firefox. I'm sure it's some basic incompatiblity that I don't know about - if anyone knows the problem or a work around that would be great.

(BTW the site is www.politicalringers.com - anti-bush ringtones)

the call function is: connectKAMP(n)

the script is:

var movieName = "k_ampplayer";
function thisMovie(movieName) {
if (navigator.appName.indexOf ("Microsoft") !=-1) {
return window[movieName]
} else {
return document[movieName]
}
}
function movieIsLoaded (theMovie) {
if (typeof(theMovie) != "undefined") {
return theMovie.PercentLoaded() == 100;
} else {
return false;
}
}
function connectKAMP(track){
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).SetVariable("whichTrack", track);
thisMovie(movieName).TCallFrame( "/", 3 );
}
}