// handles how media from json mediabrowser is played

	function mbLink(url, type, live) {
		//alert('url: ' + url);
		//alert('type:' + type);
		//alert('live: ' + live);
		// video
		if (type=='video') {
		window.open('/video/popup.html?'+ url, 'videopop', 'width=343,height=392,scrollbars=0,resizable=1').focus()
			}
		// audio
		else {
		window.open('http://www.cbc.ca/video/popup_audio.html?'+ url, 'videopop', 'width=343,height=142,scrollbars=0,resizable=1').focus()
			}
	}

