<!--
// v1.7 Copyright (c) 2006 TJKDesign - Thierry Koblentz
// For help, visit http://www.tjkdesign.com/articles/navigation_links_and_current_location.asp
//corrected by Andrew Pivnenko - 2007
//function MarkLink(zMenu,classToApply,leaveItAlong)
//{
	
//	return 0;
//}
function TJK_hank(zMenu,defaultPage,classToApply,leaveItAlone)
{
	if (document.getElementById && document.createElement && document.getElementById(zMenu))
	{
		var strLocation = (top.location.pathname.lastIndexOf("/")+1 == top.location.pathname.length) ? top.location.hostname + top.location.pathname+defaultPage : top.location.hostname + top.location.pathname;
		var a = document.getElementById(zMenu).getElementsByTagName("a");
		for (var x=0,i=a.length;x<i;x++)
		{
			var nothingToDo = (a[x] && a[x].className && a[x].className==leaveItAlone) ? true : false;
			if (!nothingToDo && a[x] && a[x].href && a[x].href.lastIndexOf("#")+1!=a[x].href.length)//
			{
				//alert("Inside TJK_hank");
				if (a[x].href.indexOf(strLocation,0)>0 || a[x].href == top.location.protocol + "//" + top.location.hostname + top.location.pathname)
					{
						var objNode = a[x];
						var strLink = objNode.innerHTML;
						var chNodes = objNode.parentNode.childNodes;
						if (chNodes.length>1)
						{
							//here if we had nested node's structure
							var innerHTML = chNodes[0].parentNode.innerHTML;
							var replacedPart = innerHTML.substring(0,innerHTML.toUpperCase().indexOf("</A>",0)+4);
							if (classToApply=="")
							{
								innerHTML = innerHTML.replace(replacedPart,"<span><b>"+strLink+"</b></span>");
							}
							else
							{
								innerHTML = innerHTML.replace(replacedPart,"<span class ="+classToApply+"><b>"+strLink+"</b></span>");
							}
							chNodes[0].parentNode.innerHTML=innerHTML;
							return;
						}
						else
						{
							if (classToApply=="")
							{
								objNode.parentNode.innerHTML="<span><b>"+strLink+"</b></span>";
							}
							else
							{
								objNode.parentNode.innerHTML="<span class ="+classToApply+"><b>"+strLink+"</b></span>";
							}
						
							
						}
						
					/*}else{
						var objNode = a[x];
						var chNodes = objNode.parentNode.childNodes;
						if (chNodes.length>1)
						{
						a[x].className += " "+classToApply;
						return;
						}
						else
						a[x].className += " "+classToApply;
					}*/
				}
			}
		}
	}
}
//-->
function display(myimage) {
 html = "<HTML><HEAD><TITLE>Heap Analysis</TITLE>" +
  "</HEAD><BODY LEFTMARGIN=0 " 
  + "MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER>" 
  + "<IMG SRC='" + myimage + "' BORDER=0 NAME=image " 
  + "onload='window.resizeTo(document.image.width,document.image.height)'>"
  + "</CENTER>" 
  + "</BODY></HTML>";
 popup=
 window.open
  ('','image',
  'toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1');
 popup.document.open();
 popup.document.write(html);
 //popup.document.focus();
 popup.document.close()
 };