function rollover(id) {
	if (opennow.indexOf(id) < 0) {
//		document.all.item(menuObj).className = "linksOff"
//		sColor = '#CCCCCC';
//		document.all(objName).style.backgroundColor = '#EEEEEE';
		document.all.item(id).className="TableItemOn";
		document.all(id).style.cursor = 'hand';
	}
}
function rollout(id) {
	if (opennow.indexOf(id) < 0) {
		document.all.item(id).className='TableItemOff';
	}
}
function loadContent(myId, column){
	for(i=1; i<=column; i++){
		thisId=document.all(myId+'content' + i);
		if (thisId.style.display == "none") {
			thisId.style.display = "";
		//	document.all(myId+'bottom').style.backgroundColor = '#CCCCCC';
			addOpenItem(myId);
		} else {
			thisId.style.display = "none";
			//document.all(myId+'bottom').style.backgroundColor = '#EEEEEE';
			removeOpenItem(myId);
		}
	}
}
function addOpenItem(newItem) {
	if (opennow.indexOf(newItem) < 0) {
		opennow += newItem+',';
	}
}
function removeOpenItem(thisItem) {
	var newopenlist = '';
	var oldopenlist = opennow;
	while (oldopenlist.indexOf(',') >= 0) {
		itemname = oldopenlist.substring(0, oldopenlist.indexOf(','));
		oldopenlist = oldopenlist.substring(oldopenlist.indexOf(',')+1, oldopenlist.length);
		if (itemname != thisItem) {
			if (newopenlist != '') {
				newopenlist += ',';
			}
			newopenlist += itemname;
		}
	}
	opennow = newopenlist;
}
function showMsg(message) {
	output = '';
	if (message != '') {
		placeMsg();
		output = "<table width=\"150\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" class=\"content\" bgcolor=\"#aaaa55\">";
		output += "<tr><td bgcolor=\"#FFFF99\">"+message+"</td></tr>";
		output += "</table>";
	}
	document.all("lyrMsg").innerHTML = output;
}
var isIE = document.all?true:false;
if (!isIE) document.captureEvents(Event.MOUSEMOVE);
//document.onmousemove = getMousePosition;
function placeMsg(e) {
	var _x;
	var _y;
	if (!isIE) {
		// document.exf1.sv_x.value = window.pageXOffset;
		// document.exf1.sv_y.value = window.pageYOffset;
		_x = e.pageX;
		_y = e.pageY;
	} else {
		//document.exf1.sv_x.value = document.exf1.sv_y.value = 
		_x = event.clientX + (document.body.scrollLeft);
		_y = event.clientY + (document.body.scrollTop);
	}
	//alert(_x);
	var msgwidth = document.all('lyrMsg').style.width + '';
	msgwidth = msgwidth.substring(0,msgwidth.length-2);
	msgwidth = parseInt(msgwidth)+80;
	if (_x<=document.body.clientWidth-msgwidth-20) {
		document.all('lyrMsg').style.left=_x+20;
	} else {
		document.all('lyrMsg').style.left = document.body.clientWidth-msgwidth-100;
	}
	document.all('lyrMsg').style.top=_y-10;
	return true;
}
function showhidelayer(lyrname) {
	thisId = document.all(lyrname);
	if (thisId.style.display == "none"){
		thisId.style.display = "";
	} else {
		thisId.style.display = "none";
	}
}
var opennow = '';
