    var selectedMenuItem = 'none';
    var lastDisplayed = "";


    function loaded() 
    {
        // Uncomment this block to have the features subfields show up hidden when the 'About Service" page displays.
/*        document.getElementById( 'featuresSublink' ).style.display = "none";
        document.getElementById( 'featuresSublink1' ).style.display = "none";
        document.getElementById( 'featuresSublink2' ).style.display = "none";
        document.getElementById( 'featuresSublink3' ).style.display = "none";
        document.getElementById( 'featuresSublink4' ).style.display = "none";
        document.getElementById( 'featuresSublink5' ).style.display = "none";
*/
        document.getElementById( 'InfastructureSublink' ).style.display = "none";
        document.getElementById( 'InfastructureSublink1' ).style.display = "none";
        document.getElementById( 'InfastructureSublink2' ).style.display = "none";
        document.getElementById( 'InfastructureSublink3' ).style.display = "none";

        document.getElementById( 'serviceSublink' ).style.display = "none";
        document.getElementById( 'serviceSublink1' ).style.display = "none";

        clearAllArrows();
        document.getElementById( 'overviewArrow' ).style.display = "";

        loadILinkPage('aboutIDF/overview.html');    
    } 

    function clearAllArrows()
    {
        document.getElementById( 'overviewArrow' ).style.display = "none";
        document.getElementById( 'featuresArrow' ).style.display = "none";
        document.getElementById( 'infastructureArrow' ).style.display = "none";
        document.getElementById( 'serviceArrow' ).style.display = "none";
    }

    function menuTreeSelection( selectionKey, action )
    {
        clearAllArrows();

        if( selectionKey == 'Overview' )
        {
            document.getElementById( 'overviewArrow' ).style.display = "";
            loadILinkPage('aboutIDF/overview.html');
        }

        if( selectionKey == 'Features' )
        {
            document.getElementById( 'featuresArrow' ).style.display = "";
            loadILinkPage('aboutIDF/features.html');

            if( document.getElementById( 'featuresSublink' ).style.display == "none" )
            {
                document.getElementById( 'featuresSublink' ).style.display = "";
                document.getElementById( 'featuresSublink1' ).style.display = "";
                document.getElementById( 'featuresSublink2' ).style.display = "";
                document.getElementById( 'featuresSublink3' ).style.display = "";
                document.getElementById( 'featuresSublink4' ).style.display = "";
                document.getElementById( 'featuresSublink5' ).style.display = "";
		document.getElementById( 'featuresTreeLinkImage' ).src = "images/homepage30.gif";
            }
            else
            {
                if( action == 'treeSelector' )
                {
                    document.getElementById( 'featuresSublink' ).style.display = "none";
                    document.getElementById( 'featuresSublink1' ).style.display = "none";
                    document.getElementById( 'featuresSublink2' ).style.display = "none";
                    document.getElementById( 'featuresSublink3' ).style.display = "none";
                    document.getElementById( 'featuresSublink4' ).style.display = "none";
                    document.getElementById( 'featuresSublink5' ).style.display = "none";
                    document.getElementById( 'featuresTreeLinkImage' ).src = "images/homepage29.gif";
                }
            }                
        }	

        if( selectionKey == 'Infastructure' )
        {
            document.getElementById( 'infastructureArrow' ).style.display = "";
            loadILinkPage('aboutIDF/infastructure.html');

            if( document.getElementById( 'InfastructureSublink' ).style.display == "none" )
            {
                document.getElementById( 'InfastructureSublink' ).style.display = "";
                document.getElementById( 'InfastructureSublink1' ).style.display = "";
                document.getElementById( 'InfastructureSublink2' ).style.display = "";
                document.getElementById( 'InfastructureSublink3' ).style.display = "";
		document.getElementById( 'infastructureTreeLinkImage' ).src = "images/homepage30.gif";
            }
            else
            {
                if( action == 'treeSelector' )
                {
                    document.getElementById( 'InfastructureSublink' ).style.display = "none";
                    document.getElementById( 'InfastructureSublink1' ).style.display = "none";
                    document.getElementById( 'InfastructureSublink2' ).style.display = "none";
                    document.getElementById( 'InfastructureSublink3' ).style.display = "none";
                    document.getElementById( 'infastructureTreeLinkImage' ).src = "images/homepage29.gif";
                }
            }
        }	

        if( selectionKey == 'Service' )
        {
            document.getElementById( 'serviceArrow' ).style.display = "";
            loadILinkPage('aboutIDF/service.html');

            if( document.getElementById( 'serviceSublink' ).style.display == "none" )
            {
                document.getElementById( 'serviceSublink' ).style.display = "";
                document.getElementById( 'serviceSublink1' ).style.display = "";
		document.getElementById( 'serviceTreeLinkImage' ).src = "images/homepage30.gif";
            }
            else
            {
                if( action == 'treeSelector' )
                {
                    document.getElementById( 'serviceSublink' ).style.display = "none";
                    document.getElementById( 'serviceSublink1' ).style.display = "none";
                    document.getElementById( 'serviceTreeLinkImage' ).src = "images/homepage29.gif";
                }
            }
        }	
    }

    function loadILinkPage( linkPage )
    {
	var the_iframe = document.getElementById( 'innerFrame' ); 
	
        if( linkPage == 'aboutIDF/overview.html' )
            the_iframe.height = 550;

        if( linkPage == 'aboutIDF/features.html' )
            the_iframe.height = 750;
        
        if( linkPage == 'aboutIDF/databaseDev.html' )
            the_iframe.height = 825;

        if( linkPage == 'aboutIDF/searchAndSort.html' )
            the_iframe.height = 800;

        if( linkPage == 'aboutIDF/dataPresentation.html' )
            the_iframe.height = 1250;

        if( linkPage == 'aboutIDF/subscriptions.html' )
            the_iframe.height = 650;

        if( linkPage == 'aboutIDF/paymentprocessing.html' )
            the_iframe.height = 700;

        if( linkPage == 'aboutIDF/sharedHosting.html' )
            the_iframe.height = 700;

        if( linkPage == 'aboutIDF/dedicatedHosting.html' )
            the_iframe.height = 550;

        if( linkPage == 'aboutIDF/softwareInfs.html' )
            the_iframe.height = 675;

        if( linkPage == 'aboutIDF/securityInfs.html' )
            the_iframe.height = 500;

        if( linkPage == 'aboutIDF/infsInfs.html' )
            the_iframe.height = 850;

        if( linkPage == 'aboutIDF/perfavailInfs.html' )
            the_iframe.height = 550;

        if( linkPage == 'aboutIDF/infastructure.html' )
            the_iframe.height = 825;

        if( linkPage == 'aboutIDF/featureList.html' )
            the_iframe.height = 4900;

        if( linkPage == 'aboutIDF/rev4.html' )
            the_iframe.height = 1325;

         the_iframe.src = linkPage;
    }

    function popupImage( imageLocation, w, h, scrollValue )
    {
        var scroll = scrollValue;
	
        LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
        TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
        settings = 'width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
	
        settings = 'width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=yes,resizable=yes';
        window.open( imageLocation, '', settings );
    }

    function mainLoaded()
    {
        document.loginform.domain_name.focus();
        document.loginform.domain_name.value = "http://";
    }

    function faqLoaded()
    {
        var faqCount = 19;

        for( var i=1; i<faqCount+1; i++ )
        {
            var qNumber = "q" + i;
            var question = document.getElementById( qNumber );
            question.style.display ="none";
        }
    }

    function showfaq( qNum )
    {
        var elementName = qNum + 'tLink';
        var question = document.getElementById( qNum );

        if( question.style.display == "" )
        {
            question.style.display ="none";
            lastDisplayed = "";
            document.getElementById( elementName ).src = "images/homepage29.gif";
            return;
        }

        if( lastDisplayed != qNum )
        {
            var question = document.getElementById( qNum );
            question.style.display ="";
            lastDisplayed = qNum;
            document.getElementById( elementName ).src = "images/homepage30.gif";
        }
        else
            lastDisplayed = "";
    }

    function openPDF( document )
    {
        var win = null; var w = screen.width*.85; var h = screen.height*.85; var scroll = "yes";
	
        LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
        TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
        settings = 'width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=yes,resizable=yes';

        window.open(document, '', settings );
    }

