﻿// JScript File
function thisMovie(movieName) {
    if (window.document[movieName]) {
        return window.document[movieName];
    }
    
    if (navigator.appName.indexOf("Microsoft Internet")==-1) {
        if (document.embeds && document.embeds[movieName]) {
            return document.embeds[movieName];
        }
    } else {
        if (document.getElementById(movieName)) {
            return document.getElementById(movieName);
        } else {
            return null;
        }
    }
}

function playMovie(movie, splashScreen, videoPlayerName) {    
    if (thisMovie(videoPlayerName) != null) {
        thisMovie(videoPlayerName).playVideo(movie, splashScreen, true);
    }
}

function stopMovie(videoPlayerName) {
    if (thisMovie(videoPlayerName) != null) {
        thisMovie(videoPlayerName).stopVideo();
    }
}
