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

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

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

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

function showBrandOverview()
{
	showLayer('brandOverviewContent');
	hideLayer('audienceContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('regularSectionsContent');
	hideLayer('specialIssues');
	hideLayer('researchContent');
	hideLayer('contactsContent');

	deSelectTab('ContactsTab');
	deSelectTab('ResearchTab');
	deSelectTab('SpecialIssuesTab');
	deSelectTab('RegularSectionsTab');
	deSelectTab('SpecsDeadlinesTab');
	deSelectTab('RatesTab');
	deSelectTab('AudienceTab');
	selectTab('BrandOverviewTab');
}

function showAudience()
{
	hideLayer('brandOverviewContent');
	showLayer('audienceContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('regularSectionsContent');
	hideLayer('specialIssues');
	hideLayer('researchContent');
	hideLayer('contactsContent');

	deSelectTab('ContactsTab');
	deSelectTab('ResearchTab');
	deSelectTab('SpecialIssuesTab');
	deSelectTab('RegularSectionsTab');
	deSelectTab('SpecsDeadlinesTab');
	deSelectTab('RatesTab');
	deSelectTab('BrandOverviewTab');
	selectTab('AudienceTab');
}

function showRates()
{	
	hideLayer('brandOverviewContent');
	hideLayer('audienceContent');
	showLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('regularSectionsContent');
	hideLayer('specialIssues');
	hideLayer('researchContent');
	hideLayer('contactsContent');

	deSelectTab('ContactsTab');
	deSelectTab('ResearchTab');
	deSelectTab('SpecialIssuesTab');
	deSelectTab('RegularSectionsTab');
	deSelectTab('SpecsDeadlinesTab');
	deSelectTab('AudienceTab');
	deSelectTab('BrandOverviewTab');
	selectTab('RatesTab');
}

function showSpecsDeadlines()
{
	hideLayer('brandOverviewContent');
	hideLayer('audienceContent');
	hideLayer('ratesContent');
	showLayer('specsAndDeadlinesContent');
	hideLayer('regularSectionsContent');
	hideLayer('specialIssues');
	hideLayer('researchContent');
	hideLayer('contactsContent');

	deSelectTab('ContactsTab');
	deSelectTab('ResearchTab');
	deSelectTab('SpecialIssuesTab');
	deSelectTab('RegularSectionsTab');
	deSelectTab('RatesTab');
	deSelectTab('AudienceTab');
	deSelectTab('BrandOverviewTab');
	selectTab('SpecsDeadlinesTab');
}

function showRegularSections()
{
	hideLayer('brandOverviewContent');
	hideLayer('audienceContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	showLayer('regularSectionsContent');
	hideLayer('specialIssues');
	hideLayer('researchContent');
	hideLayer('contactsContent');

	deSelectTab('ContactsTab');
	deSelectTab('ResearchTab');
	deSelectTab('SpecialIssuesTab');
	deSelectTab('SpecsDeadlinesTab');
	deSelectTab('RatesTab');
	deSelectTab('AudienceTab');
	deSelectTab('BrandOverviewTab');
	selectTab('RegularSectionsTab');
}

function showSpecialIssues()
{
	hideLayer('brandOverviewContent');
	hideLayer('audienceContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('regularSectionsContent');
	showLayer('specialIssues');
	hideLayer('researchContent');
	hideLayer('contactsContent');

	deSelectTab('ContactsTab');
	deSelectTab('ResearchTab');
	deSelectTab('RegularSectionsTab');
	deSelectTab('SpecsDeadlinesTab');
	deSelectTab('RatesTab');
	deSelectTab('AudienceTab');
	deSelectTab('BrandOverviewTab');
	selectTab('SpecialIssuesTab');
}

function showResearch()
{
	hideLayer('brandOverviewContent');
	hideLayer('audienceContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('regularSectionsContent');
	hideLayer('specialIssues');
	showLayer('researchContent');
	hideLayer('contactsContent');

	deSelectTab('ContactsTab');
	deSelectTab('SpecialIssuesTab');
	deSelectTab('RegularSectionsTab');
	deSelectTab('SpecsDeadlinesTab');
	deSelectTab('RatesTab');
	deSelectTab('AudienceTab');
	deSelectTab('BrandOverviewTab');
	selectTab('ResearchTab');
}

function showContacts()
{
	hideLayer('brandOverviewContent');
	hideLayer('audienceContent');
	hideLayer('ratesContent');
	hideLayer('specsAndDeadlinesContent');
	hideLayer('regularSectionsContent');
	hideLayer('specialIssues');
	hideLayer('researchContent');
	showLayer('contactsContent');

	deSelectTab('ResearchTab');
	deSelectTab('SpecialIssuesTab');
	deSelectTab('RegularSectionsTab');
	deSelectTab('SpecsDeadlinesTab');
	deSelectTab('RatesTab');
	deSelectTab('AudienceTab');
	deSelectTab('BrandOverviewTab');
	selectTab('ContactsTab');
}
