function tdClassOver(style){
	document.getElementById(style).style.background="#000000";
}

function tdClassUp(style){
	document.getElementById(style).style.background="#FFFFFF";
}

function tdClassOverLava(){
	document.getElementById('lavaTdStyle').style.background="#000000";
}

function tdClassUpLava(){
	document.getElementById('lavaTdStyle').style.background="#ffffff";
}

function bookmark(purl, pid) {
	var isIE5 = (document.all ) && (parseInt(navigator.appVersion) >= 4);
	var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
	var isNetscape = (navigator.appName.toLowerCase().indexOf("netscape") != -1);

	if (isNetscape) {
		alert("Please use Ctrl+D to bookmark this page");
	} else if (isOpera) {
		alert("Please use Ctrl+T to bookmark this page");
	} else if (isIE5) {
		var url = this.location;
		if (top && top.location && top.location.href) {
			url = top.location.href; 
			if (purl && pid) {
				var idx = url.indexOf("?") ;
				if (idx > 0) url = url.substring(0, idx);
				url += "?fUrl=" + purl + "&fPid=" + pid;
			}
		}
		var who = document.title;
		window.external.AddFavorite(url,who);
	}
}
