
function startQuicktimeVideo(target, w, h, qt, id, controls) {
Plugin.embed("QuickTime", {width: w, height: h, src: qt, autoplay: "true", controller: controls, type: "video/mp4", id: id}, target);
} 
function startWindowsMediaVideo(target, w, h, wmv, id, controls) {
Plugin.embed("Windows Media", {width: w, height: h, src: wmv, showcontrols: controls, autoplay: "true", id: id, name: id}, target);
}
function checkPlugin(pluginName) {
    if (!Plugin.isInstalled(pluginName)) {
        return false;
    } else {
        return true;
    }
    
}
function QTPlay(playerObj) {
    if (playerObj != null) {
        playerObj.Play();
    }
}
function QTStop(playerObj) {
    if (playerObj != null) {
        playerObj.Stop();
        playerObj.Rewind();
    }
}
function QTPause(playerObj) {
    if (playerObj != null) {
        playerObj.Stop();
    }
}
function WMPlay(playerObj) {
    if (playerObj != null) {
        try {
            playerObj.controls.play();
        } catch(e) {
            playerObj.play();
        }
    }
}
function WMStop(playerObj) {
    if (playerObj != null) {
        try {
            playerObj.controls.stop();
        } catch (e) {
            playerObj.stop();
        }
    }
}
function WMPause(playerObj) {
    if (playerObj != null) {
        try {
            playerObj.controls.pause();
        } catch (e) {
            playerObj.pause();
        }
    }
}