//渐入的效果,改变alpha值
function high(image){
	theobject=image,highlighting=setInterval("highlightit(theobject)",100)
}

function low(image){
	clearInterval(highlighting),image.filters.alpha.opacity=90
}

function highlightit(cur2){
	if (cur2.filters.alpha.opacity<100)cur2.filters.alpha.opacity+=10;
	else if(window.highlighting)clearInterval (highlighting)
}

//渐变显示层
function Show(divid,obj,mode,menuLeft,menuTop) {
divid.filters.revealTrans.apply();
divid.style.visibility = "visible";
divid.filters.revealTrans.play();
if(mode=="down"){
	divid.style.left=getPos(obj,'Left')
	divid.style.top=menuTop
}else if(mode=="right"){
	divid.style.left=getPos(obj,'Left')+menuLeft
	divid.style.top=getPos(obj,'Top')+menuTop	
}else if(mode=="left"){
	divid.style.left=getPos(obj,'Left')+menuLeft
	divid.style.top=getPos(obj,'Top')+menuTop
}else{
	divid.style.left=0
	divid.style.top=0
}
}
function Hide(divid) {
divid.filters.revealTrans.apply();
divid.style.visibility = "hidden";
divid.filters.revealTrans.play();
}
function getPos(el,sProp) { 
	var iPos = 0
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos

}

