var cm=null;
var sm=null;
document.onclick = new Function("show(null)")
function getPos(el,sProp) {
	var iPos = 0
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos

}

function show(el,m) {

	hidesub();

	if (m) {

			m.style.display='';
			m.style.left = getPos(el,"Left") + 225;
			m.style.top = getPos(el,"Top");

	}
	if ((m!=cm) && (cm)) cm.style.display='none'
	cm=m

	setTimeout("hide()",10000);
}

function hide() {
	if (cm) {
		cm.style.display='none';
	}

	hidesub();
}

function showsub(el,m) {
	if (m) {
		m.style.display='';
		m.style.left = getPos(el,"Left") + 175;
		m.style.top = getPos(el,"Top") + el.offsetHeight - 20;
	}
	if ((m!=sm) && (sm)) sm.style.display='none'
	sm=m
}

function hidesub() {
	if (sm) {
		sm.style.display='none';
	}
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.availWidth)?Math.floor(Math.random()*(screen.availWidth-w)):50;TopPosition=(screen.availHeight)?Math.floor(Math.random()*((screen.availHeight-h)-75)):50;}
if(pos=="center"){LeftPosition=(screen.availWidth)?(screen.availWidth-w)/2:50;TopPosition=(screen.availHeight)?(screen.availHeight-h)/2:50;}
if(pos=="default"){LeftPosition=50;TopPosition=50}
else if((pos!="center" && pos!="random" && pos!="default") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
}

