﻿// JScript File
function ShowHideDetails(objItem)
{
    objTable = objItem.parentNode.parentNode;
    var imgurl = objTable.rows[0].cells[0].childNodes[0].src;
    var currentimage = imgurl.substr(imgurl.length-12,12);
    var url = imgurl.substring(0,imgurl.length-12);
    if (currentimage == 'tree_con.gif')
    {
        //Contract
        objTable.rows[0].cells[0].childNodes[0].src=url + 'tree_exp.gif';
        objTable.rows[1].cells[0].style.display = 'none';
        objTable.rows[1].cells[1].style.display = 'none';
    }
    else
    {
        //Expand
        objTable.rows[0].cells[0].childNodes[0].src=url + 'tree_con.gif';
        objTable.rows[1].cells[0].style.display = '';
        objTable.rows[1].cells[1].style.display = '';
    }
}

