//Overriding default pathways to objects
// Called from Flash when new media loaded (e.g., continuous play, highlights reel)
function setEzMediaTitle(value){
	jQuery(".ez-mediaMain h1").attr("title", value);
	jQuery(".ez-mediaMain h1 .ez-media-info-title").text(value);
	jQuery(".ez-breadcrumb span").text(value);
}
EVERYZING.metaPlayerRequest.setTitle = setEzMediaTitle;

function setEzMediaPubDate(value){
	jQuery(".ez-mediaMain p .featured-ep-pub-date").text(value);
}
EVERYZING.metaPlayerRequest.setPubDate = setEzMediaPubDate

function setEzMediaDescription(value){
	jQuery(".ez-mediaMain p .ez-playerMod-episode-description").text(value);
}
EVERYZING.metaPlayerRequest.setDescription = setEzMediaDescription;

// When the "lander" video is finished, remove the full transcript because it's
// no longer relevant. (We may, in future, refresh the text via Ajax or whatever.)
// Also remove media thumbnail and link to full article
function removeEzMediaTranscript() {
	jQuery("#fullTranscript").hide();
	jQuery("#fullTranscriptLink").hide();
	jQuery(".ez-mediaInfo .ez-mediaThumb").hide();
	jQuery(".ez-mediaMain #ez-fullArticleHeader").hide();
}
EVERYZING.metaPlayerRequest.removeFullTextTranscript = removeEzMediaTranscript;
