//	Anchor to .ram file and text
function	rt(title, author, url, urlText)	{
	var	desc = title;
	if (author != "") desc += " (" + author + ")";
	desc += " - Real Audio";
	var	s = "<li>";
	s += "<span class=ram><a href=" + url;
	s += " onMouseOver=\"status='" + desc + "';return true\"";
	s += " onMouseOut=\"status='';return true\">";
	s += title + "</a>";
	if (author != "") s += " <span class=name>(" + author + ")</span>";
	s += "</span> ";
	document.write(s);
	var	descT = title + " (текст)";
	tw("/txt/preview.gif", 24, 23, descT, urlText);
	s = "</li>";
	document.write(s);
}
function	rt_noref(title, author, url, urlText)	{
	var	s = "<li><span class=ram>";
	s += title;
	if (author != "") s += " <span class=name>(" + author + ")</span>";
	s += "</span></li>";
	document.write(s);
}

//	Anchor to audio file and text
function	at(title, author, size, url, desc, urlText)	{
	var	s = "<li><span class=ram>";
	s += "<a href=\"" + url + "\"";
	s += " onMouseOver=\"status='" + desc + "';return true\"";
	s += " onMouseOut=\"status='';return true\">";
	s += title + "</a>";
	if (author != "") s += " <span class=name>(" + author + ")</span>";
	if (size > 0) s+= " <span class=note>[" + size + "&nbsp;KB]</span>";
	s += "</span> ";
	document.write(s);
	var	descT = title + " (текст)";
	tw("/txt/preview.gif", 24, 23, descT, urlText);
	s = "</li>";
	document.write(s);
}
function	at_noref(title, author, size, url, desc, urlText)	{
	var	s = "<li><span class=ram>";
	s += title;
	if (author != "") s += " <span class=name>(" + author + ")</span>";
	s += "</span></li>";
	document.write(s);
}

//	Text Page in a new window from thumbnail
function tw(imgThumb, w, h, desc, url)	{
	var	s = "<a href=\"javascript:tpop('" + url + "')\"";
	s += " onMouseOver=\"status='" + desc + "';return true\"";
	s += " onMouseOut=\"status='';return true\">";
	s += "<img border=0 src='";
	s += imgThumb + "'";
	if (w)	s += " width=" + w;
	if (h)	s += " height=" + h;
	s += " alt='" + desc + "' oncontextmenu=\"return false\"></a>";
	document.write(s);
}

//	Page in a new window
function tpop(url)	{
	var	wProps = "toolbar=0,width=500,height=580,status=0,location=0,scrollbars=1,resizable=1,menubar=0";
	preview = window.open(url, "_blank", wProps);
}

