page = {
	activateColumn: function(sObj, sBG, sBar) {
		o = sObj.firstChild;
		a = sObj.childNodes.length;
		for(i=0;i<a;i++) {
			if(sObj.childNodes[i].nodeType == 1) {
				if(sObj.childNodes[i].className == "bar") {
					//sObj.childNodes[i].firstChild.firstChild.src = "/images/category_header_closed_"+ sBar + ".gif";
					break;
				}
			}
		}
		sObj.className = "column_small_active";
		//document.getElementById("pagecontent").style.backgroundImage = "url(/images/bg_" + sBG + ".gif)";
	},

	deactivateColumn: function(sObj, sBG, sBar) {
		o = sObj.firstChild;
		a = sObj.childNodes.length;
		for(i=0;i<a;i++) {
			if(sObj.childNodes[i].nodeType == 1) {
				if(sObj.childNodes[i].className == "bar") {
					//sObj.childNodes[i].firstChild.firstChild.src = "/images/category_header_closed_"+ sBar + ".gif";
					break;
				}
			}
		}
		sObj.className = "column_small";
		//document.getElementById("pagecontent").style.backgroundImage = "url(/images/bg_" + sBG + ".gif)";
	},

	activateImages: function(sObj) {
		for(i=0;i<255;i++) {
			o = document.getElementById("photo" + i);
			if(!o)
				break;
			//o.firstChild.style.visibility = "hidden";
			//o.firstChild.nextSibling.style.visibility = "visible";
		}
	},

	deactivateImages: function(sObj) {
		for(i=0;i<255;i++) {
			o = document.getElementById("photo" + i);
			if(!o)
				break;
			//o.firstChild.style.visibility = "visible";
			//o.firstChild.nextSibling.style.visibility = "hidden";
		}
	}
}

hover = {
	obj: undefined,
	moveToolTip: function(e) {
		if(e != undefined) {
			 mX = e.clientX;
			 mY = e.clientY;
		} else {
			mX = window.event.clientX;
			mY = window.event.clientY;
		}
		hover.obj.style.left =  mX + 15 + "px";
		hover.obj.style.top =  mY + 15 + "px";
	},
	startHover: function(sText, sObj) {
		this.obj = document.getElementById("tooltip");
		this.obj.innerHTML = sText;
		document.onmousemove = this.moveToolTip;
	},
	stopHover: function(sObj) {
		//document.onmousemove = function() {};
		hover.obj.style.left =  -500 + "px";
	}
}

function goValue(sUrl, sSort, sValue) {
	location.href = sUrl & "?" & sSort & "=" & sValue;
}

hover = false;

function p33_moveToolTip(e) {
	if(!hover)
		return;
	obj = document.getElementById("tooltip");
	if(e != undefined) {
		 mX = e.clientX;
		 mY = e.clientY;
	} else {
		mX = window.event.clientX;
		mY = window.event.clientY;
	}
	obj.style.left =  mX + 15 + "px";
	if (document.documentElement && document.documentElement.scrollTop)
		theTop = document.documentElement.scrollTop;
	else if (document.body)
		theTop = 0;//document.body.scrollTop;

	obj.style.top =  mY + theTop + 15 + "px";
}
function p33_hover(sText, sObj, sInspiration) {
	hover = true;
	document.getElementById("tooltip").innerHTML = sText;
	document.onmousemove = p33_moveToolTip;
	(sInspiration)?
		sObj.firstChild.firstChild.style.borderColor='#9F545D':
		sObj.style.borderColor='#9F545D';
}
function p33_stophover(sObj, sInspiration) {
	hover = false;
	document.getElementById("tooltip").style.left = "-1000px";
	document.getElementById("tooltip").style.top = "-1000px";
	(sInspiration)?
		sObj.firstChild.firstChild.style.borderColor='#B8BCA5':
		sObj.style.borderColor='#B8BCA5';
}

function activateBox(sObj) {
	anchorlist = sObj.getElementsByTagName("a");
	anchorlist[0].style.textDecoration = "underline";
}

function deactivateBox(sObj) {
	anchorlist = sObj.getElementsByTagName("a");
	anchorlist[0].style.textDecoration = "none";
}