
// SIDENAV HOVER FOR IE
tnHover = function() {
	var topNav = document.getElementById("leftnav");
	if (topNav == null) return;
	
	var tnEls = topNav.getElementsByTagName("LI");
	if (tnEls == null) return;
	
	for (var i=0; i<tnEls.length; i++) {
		tnEls[i].onmouseover=function() {
			this.className+=" tnhover";
		}
		tnEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" tnhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", tnHover);

// IMAGE THUMB PREVIEW (MESSAGE BOARDS) HOVER FOR IE
thumbHover = function() {
    var topNav = document.getElementById("thumbmain");
    if (topNav == null) return;

    var tnEls = topNav.getElementsByTagName("INPUT");
    if (tnEls == null) return;

    for (var i = 0; i < tnEls.length; i++) {
        tnEls[i].onmouseover = function() {
            this.className += " thumbhover";
        }
        tnEls[i].onmouseout = function() {
            this.className = this.className.replace(new RegExp(" thumbhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", thumbHover);

// simple hide and show div functions 
/* must supply DIV ID */
function hidediv(div_id) 
{
	document.getElementById(div_id).style.display = 'none';
}
function showdiv(div_id) 
{
	document.getElementById(div_id).style.display = 'block';
}


function purina_window(url) {
	link = window.open(url,"legal","toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=yes,resizable=yes,width=640,height=640");
}