function refreshIframe(name) {
   var numFrames = document.getElementsByTagName('iframe').length;   
   if ( numFrames > 0 ) {
      for(i=0;i<numFrames;i++) {
	     var frame = document.getElementsByTagName('iframe')[i];
         if ( frame.name == name ) {
            var src = frame.src + "&rsnd=" + new Date().getTime();
            frame.src = src;
         }
      }
   } 
}
  
function getCurrentTitle_Result(titleDTO) {
	try {
       var str = escape(titleDTO.longDescription);
	   if (str == "null") 
	   {
	      str = escape(titleDTO.shortDescription);
   	   }
       str =  "Description=" + str;
       str = str.replace(/%0A/g,escape("<br />"));
	   var desc_obj = document.getElementById('description');
	   processajax('description.html?',desc_obj,"post",str);
       refreshIframe("google_ads_frame"); //Refresh Google Ads
	} catch (e) {
		// ignore error
	}
}
 
function getFeaturedTitle_Result(titleDTO) {
	try {
    var str = escape(titleDTO.longDescription);
	if (str == "null") 
	{
	   str = escape(titleDTO.shortDescription);
	}
    str =  "Description=" + str;
    str = str.replace(/%0A/g,escape("<br />"));
	var obj = document.getElementById('description');
	processajax('description.html?',obj,"post",str);
	} catch (e) {
		// ignore error
	}
}

function onLoadStart() {
    callFlash("getCurrentTitle"); 

	}


function onContentLoad() {
   try {
      callFlash("getCurrentTitle");
   } catch (e) { 
      //ignore error 
   };
}

function onMaximize() {
   // Resize player and page to support larger video
   var player_container = document.getElementById('player_container');
   player_container.style.height="620px";
   callFlash("setSize", 790, 620);
   
   }

function onMinimize() {
    
   // Resize player and page to support smaller video
   var player_container = document.getElementById('player_container');
   player_container.style.height="490px";
   callFlash("setSize", 790, 490);
   
   }

function onTemplateLoaded(message) {


callFlash("addEventListener", "contentLoad", "onContentLoad");
callFlash("addEventListener", "loadStart", "onLoadStart");
callFlash("addEventListener", "maximize", "onMaximize");
callFlash("addEventListener", "minimize", "onMinimize");
callFlash("getCurrentTitle");

 // place code here to be run once player has loaded;
 // the message argument will contain an error message
 // if there was some issue with loading the player
 
}

<!-- Start of Brightcove Player -->
 // By use of this code snippet, I agree to the Brightcove Publisher T and C 
 // found at http://corp.brightcove.com/legal/terms_publisher.cfm. 

 var config = new Array();

 /* 
 * feel free to edit these configurations
 * to modify the player experience
 */
config["videoId"] = null; //the default video loaded into the player
 config["videoRef"] = null; //the default video loaded into the player by ref id specified in console
 config["lineupId"] = null; //the default lineup loaded into the player
 config["playerTag"] = null; //player tag used for identifying this page in brightcove reporting
 config["autoStart"] = true; //tells the player to start playing video on load
 config["preloadBackColor"] = "#4b7095"; //background color while loading the player
// config["continuousPlay"] = "false";

  /* 
 * set the player's size using the parameters below
 * to make this player dynamically resizable, set the width and height as a percentage

 config["width"] = 790;
 config["height"] = 490;
 */ 
 /* do not edit these config items */
 config["playerId"] = 1127739125;

createExperience(config);

// createExperience(config);
<!-- End of Brightcove Player -->
