
function blend(theObj) {
	//if(document.all &&! window.opera) {
	//	theObj.filters.revealTrans.apply(); 
	//	theObj.filters.revealTrans.play(); 
	//} 
} 

function returnPosYofObj(obj) {
	var objtop = 0;
	// check to see if obj has a container
	if(obj.offsetParent)
	while(1) {
		objtop += obj.offsetTop;
		// if there is no further container, get out of while
		if(!obj.offsetParent)
			break;
		obj = obj.offsetParent;
	}
	else if(obj.y)
		objtop += obj.y;
	return objtop;
}

function returnPosXofObj(obj) {
	var objleft = 0;
	// check to see if obj has a container
	if(obj.offsetParent)
	while(1) {
		objleft += obj.offsetLeft;
		// if there is no further container, get out of while
		if(!obj.offsetParent)
			break;
		obj = obj.offsetParent;
	}
	else if(obj.x)
		objleft += obj.x;
	return objleft;
}

function ShowMenu(objname,xVal,yVal) {
	// function gets the object name, then conditionally grabs the object and moves its x,y coords to where we want them
	var theObj;
	if (document.all) {
		// if it's IE...
		// get object
		theObj = eval('document.all.' + objname + '.style');
		// move it
		theObj.pixelLeft = xVal;
		theObj.pixelTop = yVal;
	} else {
		// for not IE, check to see if old NS
		if (document.layers) {
			// this is old NS
			// get object
			theObj = eval('document.' + objname);
			// move it
			theObj.left = xVal;
			theObj.top = yVal;
		} else {
			// check to see if uses new DOM, like new Mozillas (Firefox, NS, and Mozilla)
			// note: this check assumes that objname refers to a valid id in the document
			if (document.getElementById(objname)) {
				// it does
				// get object
				theObj = document.getElementById(objname);
				// move it
				theObj.style.left = xVal;
				theObj.style.top = yVal;
			}
		}
	}
}
