function divExpand(c) {
  var ss = c.getElementsByTagName("span");
  var s = ss[0];
  var d = document.getElementById("d_"+c.id);

  if (d.style.display == "none") {
     d.style.display = "block";
     s.innerHTML = "Hide details";
  } else {
     d.style.display = "none";
     s.innerHTML = "Show details";
  }
  return false;
}
var sm1 = "Click to expand the details";
var sm2 = "Click to hide the details";
function showtip(text1, text2){

  text1 = text1||sm1;
  text2 = text2||sm2;
  var c = getSrcElement();
  if (c.tagName!="a" && c.tagName!="A")
    c = c.parentNode;
        var d = document.getElementById("d_"+c.id);
        if (d) {
	        if (d.style.display=="none") {
	           doText(c, text1);
	        } else {
	           doText(c, text2);
	        }
        } else {
            doText(c, text1);
        }
	
}

function doText(current, text) {
        if (document.all||document.getElementById){
		thetitle=text.split('<br>')
		if (thetitle.length>1){
			thetitles=''
			for (i=0;i<thetitle.length;i++)
				thetitles+=thetitle[i]
			current.title=thetitles
		} else
			current.title=text
	} else if (document.layers){
		document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
		document.tooltip.document.close()
		document.tooltip.left=e.pageX+5
		document.tooltip.top=e.pageY+5
		document.tooltip.visibility="show"
	}
}

function hidetip(){
	if (document.layers)
		document.tooltip.visibility="hidden"
}


