// write special styles from sniffer

if((is_mac)&&(is_ie5up)){
	document.write('<style>#tnav ul li a {padding-left:14px;width:90px}</style>');
}

if (is_safari) {
	document.write('<style>#logo {margin-left:20px}</style>');
}

// css hover script
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("tnavul");
		for (i=0; i<navRoot.childNodes.length; i++) {

			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className="over";
	 			}
	  			node.onmouseout=function() {
	  				this.className=this.className.replace("over","");
	   			}
	   		}
  		}
 	}
}
window.onload=startList;

// program schedule scripts

//toggle view on and off (used in program schedules)
	function toggle_view(id) {
		fobj = document.forum.boxshow;
		pat = eval('/' + id + ',/');
		if (pat.exec(fobj.value)) {
			fobj.value = fobj.value.replace(pat,'');
		} else {
			fobj.value = fobj.value + id + ',';
		}
	
		var list = document.getElementById(id);
		if (list) {
			//alert(list.style.display);
			if (list.style.display == "none") {
				list.style.display = "block";
			} else {
				list.style.display = "none";
			}			
		}
		return false;
	}
	
	function redirect_results(path,formobj) {
		var tmpstr = "1";
		obj = formobj.date.options;
		obj2 = formobj.general_id.options;
		len = obj.length;
		len2 = obj2.length;
		for (var i =0; i < len; i++) {	
			if (obj[i].selected) {			
				tmpstr = tmpstr + '_' + obj[i].value;
				break;
			}	
		}
		for (var i =0; i < len2; i++) {	
			if (obj2[i].selected) {			
				tmpstr = tmpstr + '_' + obj2[i].value;
				break;
			}	
		} 
	
		redirstr = '' + path + '/0,,' + tmpstr + ',00.html'
	
		window.location.href = redirstr;
	
		return false;
	}	
	function printIt2() {
		var url = document.location.href;
	
		var printView = window.open(url,'printView','width=680,height=450,location=no,menubar=yes,resize=yes,scrollbars=yes,toolbar=yes');
		printView.focus();
	}	