// This javascript is imported on media center pages for Flash
var aboutPages = new Array();
aboutPages["about_contact"] = "about_contact";
aboutPages["about_leadership"] = "about_leadership";
aboutPages["about_welcome"] = "about_welcome";
aboutPages["ceo"] = "ceo";
aboutPages["vp_editor"] = "vp_editor";
aboutPages["me_mm"] = "me_mm";
aboutPages["vp_clss"] = "vp_clss";
aboutPages["vp_strategy"] = "vp_strategy";
aboutPages["vp_finance"] = "vp_finance";
aboutPages["gm_newsweek"] = "gm_newsweek";
aboutPages["vp_marketing"] = "vp_marketing";
aboutPages["vp_technology"] = "vp_technology";
aboutPages["vp_busdev"] = "vp_busdev";
aboutPages["vp_sales"] = "vp_sales";
aboutPages["vp_ops"] = "vp_ops";
var adPages = new Array();
adPages["ad_newsweek"] = "ad_newsweek";
adPages["ad_request"] = "ad_request";
adPages["ad_specs"] = "ad_specs";
adPages["ad_washingtonpost"] = "ad_washingtonpost";
var pressPages = new Array();
pressPages["press_awards"] = "press_awards";
pressPages["prindex"] = "prindex";
var audiencePages = new Array();
audiencePages["research_demographics"] = "research_demographics";
audiencePages["research_studies"] = "research_studies";

var page = getPageName();
if( aboutPages[ page ] == page ) whichSection = "about";
else if ( adPages[ page ] == page ) whichSection = "advertising";
else if ( pressPages[ page ] == page ) whichSection = "press";
else if ( audiencePages[ page ] == page ) whichSection = "audience";
else if ( page.indexOf("release") == 0 ) whichSection = "press";
else whichSection = "about";

function getPageName()
{
  return window.location.href.substring( window.location.href.lastIndexOf( "/" ) + 1,
                                         window.location.href.lastIndexOf( "." ) );
}
