function search_play(elm, t_start, t_end)
{
	var plink = 'http://tvslo.si/';
	if (elm) {
		plink = 'http://tvslo.si/?c_mod=play&op=search&func=redirect&hash=';
		if (!elm.substring) {
			plink = plink+"ava2.";
		} else {
			var es = elm.substring(0,3);
			if (es!="ava" && es!="ra." && es!="tv.") {
				plink = plink+"ava2.";
			}
		}
		plink += elm;
		if (t_start) {
			plink += ";"+t_start;
		}
		if (t_end && t_end!='00:00:00') {
			plink += ";"+t_end;
		}
	}
	document.location = plink;
}

function sethomepage()
{
	var title = 'MMC RTV Slovenija';
	var url = 'http://www.rtvslo.si/';
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
	else if (window.sidebar&&window.sidebar.addPanel)
	window.sidebar.addPanel(title,url,"");
}