//object references
	var whichDom = "", styleObj = ""
	var isNav4, isNav6, isIE
	var isBrand = navigator.appName
	var agt = navigator.userAgent.toLowerCase()
	var navVer = parseInt(navigator.appVersion)
	
	//these variables are handy for determining which styles to load
	isNav4 = (isBrand == "Netscape" && navVer < 5) ? true : false
	isNav6 = (isBrand == "Netscape" && navVer >= 5) ? true : false
	isIE = ((agt.indexOf("msie") != - 1) && (parseInt(navVer) >= 4)) ? true : false
	
	//construct object reference
	if(isNav6)  {
	  whichDom = '.getElementById("'
	  styleObj = '").style'
	} else if (isNav4)  {
	  whichDom = '["'
	  styleObj = '"]'
	} else {
	  whichDom = ".all."
	  styleObj = ".style"
	}
	
	//API object reference
	function theObject(obj) {
	var theObj
		if (typeof obj == "string")
			theObj = eval("document" + whichDom + obj + styleObj)
		else
			theObj = obj
			return theObj
	}
	
	function show(obj) {
	var theObj = theObject(obj)
		theObj.visibility = "visible";
		theObj.display = "block";
		
	}
	
	function hide(obj) {
	var theObj = theObject(obj)
		theObj.visibility = "hidden"
		theObj.display = "none";
	}
	
	
	
	function BoxVisibility(id){
		if (document.getElementById(id).style.display=="none"){
			 // Show(id)
				document.getElementById(id).style.display='block';
					document.getElementById(id).style.visibility='visible';
			}
		else {
			//Hide(id)
				document.getElementById(id).style.display='none';
					document.getElementById(id).style.visibility='hidden';
			}			
		}


function move_box(an, box) {
  var cleft = 0;
  var ctop = 0;
  var obj = an;
  while (obj.offsetParent) {
    cleft += obj.offsetLeft;
    ctop += obj.offsetTop;
    obj = obj.offsetParent;
  }
  box.style.left = cleft + 'px';
  ctop += an.offsetHeight + 8;
  if (document.body.currentStyle &&  document.body.currentStyle['marginTop']) {
    ctop += parseInt(
      document.body.currentStyle['marginTop']);
  }
  box.style.top = ctop + 'px';
}

		
function ShowHide(id){
alert($(id).style.visibility)
}

function Show(id){
	try{
		move_box(an, id)
		$(id).show();
	}catch(e){
	}
}
function Hide(id){
	try{
		$(id).hide();
	}catch(e){
	}
}
	-->