
        // preload image in cache
        if(document.images)
        {
            var image_array = new Array();
	
            // path to the directory with images
            var path = '/PortalBuilder/Sites/walter/Images/product/icons/';

            // enumeration of the images
            image_array[0] = path + "buttonFMATLeftOut.gif";
            image_array[1] = path + "buttonFMATCenterOut.gif";
            image_array[2] = path + "buttonFMATRightOut.gif";
            image_array[3] = path + "buttonFMATLeftHover.gif";
            image_array[4] = path + "buttonFMATCenterHover.gif";
            image_array[5] = path + "buttonFMATRightHover.gif";
            image_array[6] = path + "buttonFMATLeftActive.gif";
            image_array[7] = path + "buttonFMATCenterActive.gif";
            image_array[8] = path + "buttonFMATRightActive.gif";

            var preload_image = new Array ();
 
            for(var i=0; i<image_array.length; i++)
            {
                preload_image[i]= new Image();
                preload_image[i].src = image_array[i];
            }
        }

        // switch image and font color
        var active = 0;
        function switchImage(hover, act)
        {
            if ( act != null )
            {
                active = act;
            }


if ( hover == -1 )
{
document.body.style.cursor="auto";
}
else
{
document.body.style.cursor="pointer";
}

            var tab = ["F","M","A","T"];
            for (i=0;i<=3;i++)
            {
                // set default color
                if (i != active && document.getElementById(tab[i]+"img1")) 
                {
                    document.getElementById(tab[i]+"img1").src="/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATLeftOut.gif";
                    document.getElementById(tab[i]+"img2").style.backgroundImage="url(/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATCenterOut.gif)";
                    document.getElementById(tab[i]+"img3").src="/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATRightOut.gif";
                    document.getElementById(tab[i]+"img2").style.color="#454545";
                    document.getElementById(tab[i]+"td").style.borderTop="#b1b0b1 1px solid";
                    document.getElementById(i).style.display="none";
                }
            }

            // set color to mouse over
            if (hover != active && hover != -1) 
            {
                if ( document.getElementById(tab[hover]+"img1") )
                {
                    document.getElementById(tab[hover]+"img1").src="/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATLeftHover.gif";
                    document.getElementById(tab[hover]+"img2").style.backgroundImage="url(/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATCenterHover.gif)";
                    document.getElementById(tab[hover]+"img2").style.color="#ffffff";
                    document.getElementById(tab[hover]+"img3").src="/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATRightHover.gif";
                }
            }

            // set color to active tab
            if ( document.getElementById(tab[active]+"img1") )
            {
                document.getElementById(tab[active]+"img1").src="/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATLeftActive.gif";
                document.getElementById(tab[active]+"img2").style.backgroundImage="url(/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATCenterActive.gif)";
                document.getElementById(tab[active]+"img2").style.color="#f7941e";
                document.getElementById(tab[active]+"img3").src="/PortalBuilder/Sites/walter/Images/product/icons/buttonFMATRightActive.gif";
                document.getElementById(active).style.display='inline';
                document.getElementById(tab[active]+"td").style.borderTop="#b1b0b1 0px solid";
            }
        }

