// JavaScript Document

var closedimg, openimg;

document.onclick = doOutline;
closedimg = new Image();
closedimg.src = "images/arrow-right.gif";
openimg = new Image();
openimg.src = "images/arrow-down.gif";


function doOutline(){
  var targetId, srcElement, targetElement, imgElement;
 
 srcElement = window.event.srcElement;

  if (srcElement.className == "expand") {
     srcElement = srcElement.id
     srcElement = srcElement.substr(0, srcElement.length-1);
     targetId = srcElement + "s";
	 imgElement = srcElement + "g";
     srcElement = srcElement + "i";
	 
     srcElement = document.all(srcElement);
     targetElement = document.all(targetId);
	 imgElement=document.all(imgElement);
     
     if (targetElement.style.display == "inline") {
        targetElement.style.display = "none";
        imgElement.src = closedimg.src;
     } else {
        targetElement.style.display = "inline";
        imgElement.src = openimg.src;
     }
  }
}

function goToUrl(url) { //v3.0
  document.returnValue = false;
  eval("parent.location='"+url+"'");
}



function showhide(id) { 
		obj = document.getElementById(id); 
		if (obj.style.display == "none") { 
			obj.style.display = ""; 
		} else { 
			obj.style.display = "none"; 
		}
} 
