function GetCookie(name) {
	var start = document.cookie.indexOf(name+"=");
	var len = start+name.length+1;
	if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
	if (start == -1) return null;
	var end = document.cookie.indexOf(";",len);
	if (end == -1) end = document.cookie.length;
	return unescape(document.cookie.substring(len,end));
}
	
function SetCookie(name,value,expires,path,domain,secure) {		
	document.cookie = name + "=" +escape(value) +
    ( (expires) ? ";expires=" + expires.toGMTString() : "") +
    ( (path) ? ";path=" + path : "") + 
    ( (domain) ? ";domain=" + domain : "") +
    ( (secure) ? ";secure" : "");
}

function ChgClass(sClass) {
	uMe = window.event.srcElement;
	uMe.className = sClass
}

function SwapImage(sImage) {
	uMe = window.event.srcElement;				
	uMe.src = sImage;
}
function HideShow(tdID, imgID) {		
	tdID.className = tdID.className == "hidden" ? "visible" : "hidden";								
	var check = imgID.src.toLowerCase();
			if (check.lastIndexOf("images/hidecat.png") != -1)
			{
				imgID.src = "Images/ShowCat.png"
				SetCookie("HideCatDiv", "1")
			}
			else
			{
				imgID.src = "Images/HideCat.png"					
				SetCookie("HideCatDiv", "0")
			}		
}								

function mOverAndOut() {			
	var CurrSource;
	var imgType;
	var EventType = window.event.type;
	if(EventType.toLowerCase() == "mouseover" ) 
		imgType = "_";
	else
		imgType = "-";
	uMe = window.event.srcElement;
	CurrSource = uMe.src;
	uMe.src = CurrSource.substring(0, CurrSource.length - 5) + imgType + ".gif";
}
