var Services = {};

Services.DoSectionText = function(UniqueID, IconColapse, IconExpand, SectionName) {

    TabImage = document.getElementById('TabIcon' + UniqueID);
    ServicesContainer = document.getElementById('ServicesSectionText' + UniqueID);
    ATabImage = document.getElementById('ATabIcon' + UniqueID);    
    if (ServicesContainer.getAttribute('visible') == '1') {
        ServicesContainer.style.display = 'none';
        ServicesContainer.setAttribute("visible", "0");
        ServicesContainer.setAttribute("focus", "1");
        //TabImage.src = IconExpand;
        TabImage.src = IconColapse + 'ServicesExpandBlack.jpg';
        ATabImage.setAttribute('alt', StringResources.open + '  ' + SectionName);
        ATabImage.setAttribute('title', StringResources.open + '  ' + SectionName);
        TabImage.setAttribute('title', StringResources.open + '  ' + SectionName);
        TabImage.setAttribute('alt', StringResources.open + '  ' + SectionName);
    } else {

        ServicesContainer.style.display = 'block';
        ServicesContainer.setAttribute("visible", "1");
        ServicesContainer.setAttribute("focus", "1");
        TabImage.src = IconColapse + 'ServicesColapseUpBlack.jpg';
        //TabImage.src = ServicesExpand;

        ATabImage.setAttribute('alt', StringResources.close + '  ' + SectionName);
        ATabImage.setAttribute('title', StringResources.close + '  ' + SectionName);
        TabImage.setAttribute('title', StringResources.close + '  ' + SectionName);
        TabImage.setAttribute('alt', StringResources.close + '  ' + SectionName);
    }

}


Services.Over = function(UniqueID, IconColapse, IconExpand, IconExpandBlack) {
    TabImage = document.getElementById('TabIcon' + UniqueID);
    ServicesContainer = document.getElementById('ServicesSectionText' + UniqueID);
    
    if (ServicesContainer.getAttribute('visible') == '0') {
        if (ServicesContainer.getAttribute('focus') == '0') {

            ServicesContainer.setAttribute("focus", "1");
            TabImage.src = IconColapse + 'ServicesExpandBlack.jpg';
            //TabImage.src = IconExpandBlack;
        } else {
            ServicesContainer.setAttribute("focus", "0");
            TabImage.src = IconColapse + 'ServicesColapse.jpg';
            //TabImage.src = IconColapse;
        }
    } else {

        if (ServicesContainer.getAttribute('focus') == '0') {

            ServicesContainer.setAttribute("focus", "1");
            TabImage.src = IconColapse + 'ServicesColapseUpBlack.jpg';
            //TabImage.src = IconExpandBlack;
        } else {
            ServicesContainer.setAttribute("focus", "0");
            TabImage.src = IconColapse + 'ServicesExpand.jpg';
            //  TabImage.src = IconExpand;

        }

    }
}
