var __config = { chaptering: { defaultValue: true, exceptions: [] }, swapping: { defaultValue: true, exceptions: []} };
function closeThumbWindow() {
    if (window.top.video.openThumbPage) window.top.video.openThumbPage.close();
}
// check to see if user has enabled chaptering functionality
function checkChapters() {
    return isOnDemand();
}

//Added
function buildVideoFrameUrl(slEnabled, defaultMediaUrl) {
    var page = null;
    var queryString = '';
    if (__isRealPlayer) {
        page = 'video_rn.htm';
        if (captionsVisibility === true) queryString = 'cc=1';
    }
    else if (__mType == PlayerType.Flash) {
        page = "video_fl.htm";
    }

    return buildVideoUrl(__mType, 'video.asx', getVideoFile(), page, defaultMediaUrl, queryString);
}
function toggleThumbNails() {
    if (!hasNonEmptyItem(['5'])) hide('thumbs');  // hide thumbnails button if no pagination value
}
function canSupportCC() {
    return hasNonEmptyItem([getCCFile()]);
}
function canShowCCButton() {
    return !__isRealPlayer;
}
function existsLargeSlide() {
    return true;
}
function isInAuxiMode() {
    return false;
}
function getTitleMeta() {
    return "Overview of Accordent Capture Station";
}
function getDateMeta() {
    return '9/19/2008';
}
function onPagePreInit() {
    __isRealPlayer = (__mType == PlayerType.Real);
    if (__isRealPlayer === true || __mType == PlayerType.Flash) __useSilverlight = false;
}
function onPageInit() {
    topicsVisibility = topicsVisibility && evalOnOff(__config.chaptering.exceptions, __config.chaptering.defaultValue);
    __swappable = __swappable && evalOnOff(__config.swapping.exceptions, __config.swapping.defaultValue);
}
function onDOMLoaded() {
    if (__isRealPlayer === true)
        hide('captions');
}
function getCCFile() {
    if (__mType != PlayerType.Flash) return 'http://nagacast.jolokianetworks.com/accordent_technologies/atbnen01/amms3/marc_acs/marc_acs.smi';
    var file = getVideoFile();
    var dotIndex = file.indexOf('.');
    return (dotIndex > 0) ? file.slice(0, dotIndex) + '.smi' : '';
}
function getVideoFile() {
    return 'mms://atbnen01.wm.internapcdn.net/atbnen01/amms3/marc_acs.wmv';
}
function getDefaultSlidePage() {
    return 'slide.htm';
}
