var elem, vis;
if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById('navCommunityNswPubLinks');

else if( document.all ) // this is the way old msie versions work
    elem = document.all['navCommunityNswPubLinks'];

else if( document.layers ) // this is the way nn4 works
  elem = document.layers['navCommunityNswPubLinks'];

vis = elem.style;
vis.display = 'block';
elem.previousSibling.firstChild.style.backgroundPosition = '0 -66px';

function showMap()
{
	showLayer('mapContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('specialPublicationsContent');
	hideLayer('researchContent');
	hideLayer('featuresReportsContent');
        hideLayer('marketingCompetitionsContent');
	hideLayer('contactsContent');

        deSelectTab('RatesTab');
        deSelectTab('DeadlinesTab');
        deSelectTab('SpecialPubsTab');
        deSelectTab('ResearchTab');
        deSelectTab('FeaturesReportsTab');
        deSelectTab('MarketingCompTab');
        deSelectTab('ContactsTab');
        selectTab('MapTab');
}

function showRates()
{
	hideLayer('mapContent');
	showLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('specialPublicationsContent');
	hideLayer('researchContent');
	hideLayer('featuresReportsContent');
        hideLayer('marketingCompetitionsContent');
	hideLayer('contactsContent');

        deSelectTab('MapTab');
        deSelectTab('DeadlinesTab');
        deSelectTab('SpecialPubsTab');
        deSelectTab('ResearchTab');
        deSelectTab('FeaturesReportsTab');
        deSelectTab('MarketingCompTab');
        deSelectTab('ContactsTab');
        selectTab('RatesTab');
}

function showDeadlines()
{
	hideLayer('mapContent');
	hideLayer('ratesContent');
	showLayer('specsAndDeadlinesContent');
	hideLayer('specialPublicationsContent');
	hideLayer('researchContent');
	hideLayer('featuresReportsContent');
        hideLayer('marketingCompetitionsContent');
	hideLayer('contactsContent');

        deSelectTab('MapTab');
        deSelectTab('RatesTab');
        deSelectTab('SpecialPubsTab');
        deSelectTab('ResearchTab');
        deSelectTab('FeaturesReportsTab');
        deSelectTab('MarketingCompTab');
        deSelectTab('ContactsTab');
        selectTab('DeadlinesTab');
}

function showSpecialPublications()
{
	hideLayer('mapContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	showLayer('specialPublicationsContent');
	hideLayer('researchContent');
	hideLayer('featuresReportsContent');
        hideLayer('marketingCompetitionsContent');
	hideLayer('contactsContent');

        deSelectTab('MapTab');
        deSelectTab('RatesTab');
        deSelectTab('DeadlinesTab');
        deSelectTab('ResearchTab');
        deSelectTab('FeaturesReportsTab');
        deSelectTab('MarketingCompTab');
        deSelectTab('ContactsTab');
        selectTab('SpecialPubsTab');
}

function showResearch()
{
	hideLayer('mapContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('specialPublicationsContent');
	showLayer('researchContent');
	hideLayer('featuresReportsContent');
        hideLayer('marketingCompetitionsContent');
	hideLayer('contactsContent');

        deSelectTab('MapTab');
        deSelectTab('RatesTab');
        deSelectTab('DeadlinesTab');
        deSelectTab('SpecialPubsTab');
        deSelectTab('FeaturesReportsTab');
        deSelectTab('MarketingCompTab');
        deSelectTab('ContactsTab');
        selectTab('ResearchTab');
}

function showFeaturesAndReports()
{
	hideLayer('mapContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('specialPublicationsContent');
	hideLayer('researchContent');
	showLayer('featuresReportsContent');
        hideLayer('marketingCompetitionsContent');
	hideLayer('contactsContent');

        deSelectTab('MapTab');
        deSelectTab('RatesTab');
        deSelectTab('DeadlinesTab');
        deSelectTab('SpecialPubsTab');
        deSelectTab('ResearchTab');
        deSelectTab('MarketingCompTab');
        deSelectTab('ContactsTab');
        selectTab('FeaturesReportsTab');
}

function showMarketingAndCompetitions()
{
	hideLayer('mapContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('specialPublicationsContent');
	hideLayer('researchContent');
	hideLayer('featuresReportsContent');
        showLayer('marketingCompetitionsContent');
	hideLayer('contactsContent');

        deSelectTab('MapTab');
        deSelectTab('RatesTab');
        deSelectTab('DeadlinesTab');
        deSelectTab('SpecialPubsTab');
        deSelectTab('ResearchTab');
        deSelectTab('FeaturesReportsTab');
        deSelectTab('ContactsTab');
        selectTab('MarketingCompTab');
}

function showContacts()
{
	hideLayer('mapContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('specialPublicationsContent');
	hideLayer('researchContent');
	hideLayer('featuresReportsContent');
        hideLayer('marketingCompetitionsContent');
	showLayer('contactsContent');

        deSelectTab('MapTab');
        deSelectTab('RatesTab');
        deSelectTab('DeadlinesTab');
        deSelectTab('SpecialPubsTab');
        deSelectTab('ResearchTab');
        deSelectTab('FeaturesReportsTab');
        deSelectTab('MarketingCompTab');
        selectTab('ContactsTab');
}
