var arrBreadCrumb = new Array();
var show = new Array();

show[0] = 0;
show[1] = 0;
show[2] = 0;
show[3] = 0;
show[4] = 0;
show[5] = 0;
show[6] = 0;
show[7] = 0;
show[8] = 0;
show[9] = 0;


function OpenWindow(url)
{
	var name = "_blank"; 
	var specs = "location=0, toolbar=0, scrollbars=1, resizable=1, width=1024, height=768";
	window.open(url, name, specs);
}

function expanddetails(tbodyid, index) {
	  var collapsid = tbodyid + '_collaps';
	  if (show[index] == 0)
	  {
		  document.getElementById(tbodyid).style.display = '';
		  document.getElementById(collapsid).innerText = '-';
		  document.getElementById(collapsid).textContent = '-';
		  show[index] = 1;
	  }
	  else
	  {
		  document.getElementById(tbodyid).style.display = 'none';
		  document.getElementById(collapsid).innerText = '+';
		  document.getElementById(collapsid).textContent = '+';
		  show[index] = 0;		  
	  }
	}

function HideOrMakeVisible(tbodyid, disp) {
	  if (disp == 1)
	  {
		  document.getElementById(tbodyid).style.display = '';
	  }
	  else
	  {
		  document.getElementById(tbodyid).style.display = 'none';		  
	  }
	}

function fixPNG(myImage) // correctly handle PNG transparency in Win IE 5.5 or higher.
{
	if (window.ie55up)
	{
		var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "";
		var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "";
		var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' ";
		var imgStyle = "display:inline-block;" + myImage.style.cssText;
		var strNewHTML = "<span " + imgID + imgClass + imgTitle;
		strNewHTML += " style=\"" + "width:" + myImage.width + "px; height:" + myImage.height + "px;" + imgStyle + ";";
		strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader";
		strNewHTML += "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>";
		myImage.outerHTML = strNewHTML;
	}
}
