 function high(which2){
  theobject=which2
  highlighting=setInterval("highlightit(theobject)",50)
 }

 function low(which2){
  clearInterval(highlighting)
  if (which2.style.MozOpacity)
   which2.style.MozOpacity=0.4
  else if (which2.filters)
   which2.filters.alpha.opacity=40
 }

 function highlightit(cur2){
  if (cur2.style.MozOpacity<=0.89)
   cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
  else if (cur2.filters&&cur2.filters.alpha.opacity<100)
   cur2.filters.alpha.opacity+=10
  else if (window.highlighting)
   clearInterval(highlighting)
 }
function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() {
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//taken from www.microsoft.com
function mhHover(tbl, idx, cls)
{
	var t = document.getElementById(tbl);
	if (t == null) return;
	var d = t.getElementsByTagName("TD");
	if (d == null) return;
	if (d.length <= idx) return;
	d[idx].className = cls;
}
//used for collapsible news events
function toggle(toggleId, e)
{
	if (!e) {
		e = window.event;
	}
	if (!document.getElementById) {
		return false;
	}
	var body = document.getElementById(toggleId);
	if (!body) {
		return false;
	}	
	var im = toggleId + "_toggle";
	if (body.style.display == 'none') {
		body.style.display = 'block';
		if (document.images[im]) {
			document.images[im].src = "images/minus.gif";
		}
	} else {
		body.style.display = 'none';
		if (document.images[im]) {
			document.images[im].src = "images/plus.gif";
		}
	}
	if (e) {
		// Stop the event from propagating, which
		// would cause the regular HREF link to
		// be followed, ruining our hard work.
		e.cancelBubble = true;
		if (e.stopPropagation) {
			e.stopPropagation();
		}
	}
}
