﻿function loadPlayer() {
    var highlightTerms = "";
    var flashvars = {
        file: "http://i.cdn.turner.com/cnn/2008/POLITICS/10/02/video.transcript/Library/Package/playlist.xml",
        config: "http://i.cdn.turner.com/cnn/2008/POLITICS/10/02/video.transcript/Library/Package/config.xml",
        highlight: highlightTerms
    };
    var params = {
        allowfullscreen: "true"
    };
    var attributes = {};
    var requiredVersion = "9.0.0";
    swfobject.embedSWF("http://i.cdn.turner.com/cnn/2008/POLITICS/10/02/video.transcript/mediaplayer.swf", "VisionPlayer", "571", "482", requiredVersion, "", flashvars, params, attributes);
    // this causes the page to refresh after 6 hours - hack to fix player not working after standing for a long time
    setTimeout("window.location.href = unescape(window.location.pathname);", 6 * 60 * 60 * 1000);
}