var oPrev;
var Prevonmouseover;
var Prevonmouseout;

function onmouseover_A(name) {
}

function onmouseout_A(name) {
}




function onclick_A(name)
{
	if (!document.all)   {
		//reload the frame with the correct parameter, if necessary
		URL = location.href;
		if (URL.lastIndexOf('#') != -1) {
			URL = URL.substr(0,URL.lastIndexOf('#'));
		}
		if (URL.lastIndexOf('id=') != -1) {
			URL = URL.substr(0,URL.lastIndexOf('id=')-1); // this takes off the preceding ? or # as well
		}
		if (URL.lastIndexOf('?') == -1) {
			URL = URL+'?';
		} else {
			URL = URL+'&';
		}
		URL = URL + 'id=' + name;
		//alert(name);
		location.href=URL;
	}
	else
	{  /* IE */
		if (event.srcElement.style.color) {
			var myLinkColl = document.all.tags("A")
 			for (i=0;i<myLinkColl.length;i++) {
				myLinkColl[i].style.color='#000099';
   			}
			event.srcElement.style.color='#009900';
		}
		var myImgColl = document.all.tags("IMG")
  		if (event.srcElement.activeimage) {
  			if (oPrev) {
  				oPrev.onmouseover = Prevonmouseover;
  				oPrev.onmouseout = Prevonmouseout;
  				oPrev.src = oPrev.normalimage;
  			}
  			oPrev = event.srcElement;
  			Prevonmouseover = event.srcElement.onmouseover;
  			Prevonmouseout = event.srcElement.onmouseout;
			event.srcElement.onmouseover='';
			event.srcElement.onmouseout='';
			event.srcElement.src=event.srcElement.activeimage;
		}

		name = 'sub' + name;
		// there will be two hidden divs : one for the image and one for the text, since they are in 	     different cells
		if (document.all.tags("DIV").item(name)) {
	  		var mydiv = document.all.tags("DIV").item(name)(1);
			if (mydiv) {
				if (mydiv.style.display=="") {
   					mydiv.style.display="none";
				} else {
					var divColl = document.all.tags("DIV")
					for (i=0;i<divColl.length;i++) {
						// This code assumes that DIV's needing to be hidden have an id, and all others have not
						// As needed this criterion can be changed
						if (divColl[i].id != "") {
							divColl[i].style.display="none";
						}
					}
					mydiv.style.display="";
		 		}
	   		}	
		}
	}  
}
