var _ajaxMode;
var _currentNode;
var _currentPfix;
var _currentStatus = "all";
function setMode(product) {
	switch (product) {
		case "Users": _ajaxMode = "users"; break;
		case "user": _ajaxMode = "user"; break;
		case "Tags": _ajaxMode = "tags"; break;
		case "Action": _ajaxMode = "action"; break;
		case "Search": _ajaxMode = "search"; break;
		case "Items": _ajaxMode = "item"; break;
		case "UserItems": _ajaxMode = "useritem"; break;
	}
}
function clickStatus(inStatus) {
	var chk = $("#" + inStatus.attr('for'));
	if (chk.attr('disabled')) return;
	inStatus.attr('class', (inStatus.attr('class') == "chkOn" ? "chkOff" : "chkOn"));
	chk.val(inStatus.attr('class') == "chkOn" ? "1" : "0");
}
function clickTagLabel(inTag) {
	var chk = $("#" + inTag.attr('for'));
	if (chk.attr('disabled')) return;
	chk.val(chk.val() == "0" ? "1" : "0");
}
function showCond() {
	var panel = $("#searchPanel");
	var items = $("#searchItems");
	if (panel.css("display") == "none") {
		items.css("display", "none");
		panel.css("display", "block");
	} else {
		items.css("display", "block");
		panel.css("display", "none");
	}
}
function showReview() {
	var panel = $("#editorialReviews");
	var disp = (panel.css("display") == "none") ? "block" : "none";
	panel.css("display", disp);
}
function gotoTop() {
window.scrollTo(0,0);
}

