
function finishCommercial() {
	var player = document.getElementById('mediaplayer');
	player.finishCommercial();
}

function startClip(url) {
	var player = document.getElementById('mediaplayer');
	player.playClip(url);
}
function setAudio( setting ) {
	var player = document.getElementById('mediaplayer');
	player.setAudio( setting );
}
function cleanUp() {
	var player = document.getElementById('mediaplayer');
	player.closeConnection();
}

function launchPopup(url, name, width, height, resizable, scrollbars, toolbar, location) {
	popup_window = window.open(url, name, 'width='+width+',height='+height+',resizable='+resizable+',scrollbars='+scrollbars+',toolbar='+toolbar+',location='+location+'');
	popup_window.focus();
}

function openSendAFriendWindow( deeplink ) {
	//.......
	launchPopup( deeplink,'', 438, 500 );
}