﻿// JScript File

        function logoMouseOver(x)
        {
          x.style.backgroundImage= "url('http://www.terrasofta.com/images/TerraSoftaName3.png')";

        }
        function logoMouseOut(x)
        {
          x.style.backgroundImage= "url('http://www.terrasofta.com/images/TerraSoftaName2.png')";

        }
 
        function AdjustColumnsHeight()
        {
         //alert('hello');
            // get a reference to the three DIVS that make up the columns
            var centerCol = window.document.getElementById('centercol');
            var leftCol = window.document.getElementById('leftcol');
            var rightCol = window.document.getElementById('rightcol');
            
            
            // calculate the max height
            var hCenterCol = centerCol.offsetHeight;
            var hLeftCol = leftCol.offsetHeight;
            var hRightCol = rightCol.offsetHeight;
            var maxHeight = Math.max(hCenterCol, Math.max(hLeftCol, hRightCol));
            // set the height of all 3 DIVS to the max height
            centerCol.style.height = maxHeight + 'px';
            leftCol.style.height = maxHeight + 'px';
            rightCol.style.height = maxHeight + 'px';            
            // Show the footer
            window.document.getElementById('footer').style.visibility = 'inherit';
            

        }
        

function ExpandCollapse(x)
{
    x = x.children[0];
    if(x.style.display=='none')
        x.style.display='block';
    else
        x.style.display='none';
}

function CollapseAll()
{
    for(i=0;i<document.all.length;i++)
    {
        var x = document.all[i];
        
        if ( x.className=='FAQAnswer')
            x.style.display='none';
    }
}
var isAllExpanded = true;
function ExpandAll()
{
//salert("expand all");
    for(i=0;i<document.all.length;i++)
    {
        var x = document.all[i];
        if ( x.className=='FAQAnswer')
            x.style.display='block';
    }
}
function CollapseExpandAll()
{
    if(isAllExpanded)
    {CollapseAll();isAllExpanded = false;}
    else
    {ExpandAll();isAllExpanded = true;}
        
}