/**
 * @author ritaylor
 */
function _init() {
	_expand_listing();
}

function _expand_listing() {
	table=document.getElementById("tvlistings-table");
	if (table == null) return;
	td=table.getElementsByTagName("td");

	for (var tc=0; tc<td.length; tc++) {
		if (td[tc].className=="tvl-title") {
			td[tc].onclick=function() {
				div=this.getElementsByTagName("div")[0];
				if (div.innerHTML) {
					var p=this.parentNode;
					p.className=(p.className!="hilite")?"hilite":"lolite";
				}
				if (document.all) {
					this.onselectstart=function(){return false;}
				}
			}
		}
	}
}

window.onload=_init
