
function startLocalFunctions() {
	if (!document.getElementById) return false;
		
		// GLOBAL NAV VARIABLES
		
		var title = "page title";
		var navid = 404;
		var titlecolor = "A8AB36";
		var titletrans = 200;
		var bordercolor = "202E53";
		var borderwidth = 8;
		
		// LOCAL VARIABLES AND FUNCTIONS
			
	if (document.getElementById("about")) {

		var title = "about us";
		var navid = 0;
		var titlecolor = "DEF0B2";
		var titletrans = 100;

	} else if (document.getElementById("about_capabilities")) {

		var title = "our capabilities";
		var navid = 8;
		var titlecolor = "ffff00";
		var titletrans = 100;

	} else if (document.getElementById("about_capabilities_services")) {

		var title = "services";
		var navid = 13;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_services_account_management")) {

		var title = "account management";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;

	} else if (document.getElementById("about_services_brand")) {

		var title = "brand realization %26 market insight";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		var titlesize = 25;
		
	} else if (document.getElementById("about_services_cm")) {

		var title = "campaign management";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_services_creative")) {

		var title = "creative";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_services_digital")) {

		var title = "digital";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_services_diversity")) {

		var title = "diversity enrichment";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_services_media")) {

		var title = "media planning";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_services_retention")) {

		var title = "retention";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_services_roi")) {

		var title = "return on investment";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
		
	} else if (document.getElementById("about_capabilities_products")) {

		var title = "products";
		var navid = 14;
		var bordercolor = "A8AB36";
		var borderwidth = 1;

	} else if (document.getElementById("about_capabilities_industries")) {

		var title = "industries";
		var navid = 12;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_industries_finance")) {

		var title = "finance %26 professional";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
			
	} else if (document.getElementById("about_industries_energy")) {

		var title = "energy";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_industries_aerospace_defense")) {

		var title = "aerospace %26 defense";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_industries_technology")) {

		var title = "technology";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		
	} else if (document.getElementById("about_industries_biotech")) {

		var title = "biotech %26 pharmaceutical";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		var titlesize = 32;	
		
	} else if (document.getElementById("about_industries_retail")) {

		var title = "retail %26 restaurant";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
			
	} else if (document.getElementById("about_industries_entertainment")) {

		var title = "hospitality %26 entertainment";
		var navid = 8;
		var bordercolor = "A8AB36";
		var borderwidth = 1;
		var titlesize = 31;

	} else if (document.getElementById("about_ourapproach")) {

		var title = "our approach";
		var bordercolor = "A8AB36";
		var borderwidth = 1;

	} else if (document.getElementById("about_ourpeople")) {

		var title = "our people";
		var navid = 6;
		var titlecolor = "ffff00";
		var titletrans = 80;

	} else if (document.getElementById("about_ourstory")) {

		var title = "our story";
		var navid = 9;
		var titlecolor = "ffff00";
		var titletrans = 80;

	} else if (document.getElementById("about_awarenesscampaign")) {

		var title = "our campaign";
		var titlecolor = "3c4e1e";
		var titletrans = 200;

	} else if (document.getElementById("awards")) {

		var title = "awards %26 accolades";
		var bordercolor = "A9AC37";
		var borderwidth = 1;


	} else if (document.getElementById("awards_archive")) {

		var title = "awards archive";

	} else if (document.getElementById("contactus")) {

		var title = "contact us";
		var titlecolor = "ffff00";
		var titletrans = 80;

	} else if (document.getElementById("contactus_globalnetwork")) {

		var title = "global network";

	} else if (document.getElementById("credits")) {

		var title = "site credits";
		var titlecolor = "000666";
		var titletrans = 80;

	} else if (document.getElementById("editorial")) {

		var title = "editorials";

	} else if (document.getElementById("global_clients")) {

		var title = "global clients";
		var navid = 2;
		var titlecolor = "ffff00";
		var titletrans = 80;
		
	} else if (document.getElementById("global_network")) {
		
		var title = "global network";
		var navid = 1;
		var titlecolor = "a8292e";
		var titletrans = 80;
		var bordercolor = "000000";
		
	} else if (document.getElementById("default")) {
		
		var title = "";
		var navid = -1;
		
	} else if (document.getElementById("locations")) {
		
		var title = "our locations";
		var navid = 4;
	} else if (document.getElementById("search")) {
		
		var title = "search results";
		
	} else if (document.getElementById("healthcare")) {
		
		var title = "healthcare";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("campaign_management")) {
		
		var title = "campaign management";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("campaign_sites")) {
		
		var title = "campaign sites";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
	
	} else if (document.getElementById("erp")) {
		
		var title = "employee referral program";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		var titlesize = 30;
		
	} else if (document.getElementById("ejb")) {
		
		var title = "creative job postings";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("ejp")) {
		
		var title = "ejp";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("email_marketing")) {
		
		var title = "email marketing";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("event_registration")) {
		
		var title = "event registration";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("event_tracker")) {
		
		var title = "event tracker";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
			
	} else if (document.getElementById("job_viper")) {
		
		var title = "job viper";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("orm")) {
		
		var title = "online resume mining";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("online_survey")) {
		
		var title = "online survey";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("seo")) {
		
		var title = "seo/sem services";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		var titlesize = 30;
		
	} else if (document.getElementById("sem")) {
		
		var title = "search engine marketing";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		var titlesize = 30;
		
	} else if (document.getElementById("tmp_service")) {
		
		var title = "tmp service";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("web_hosting")) {
		
		var title = "web hosting";
		var navid = 21;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("news_events")) {
		
		var title = "news %26 events";
		var navid = 5;
		
	} else if (document.getElementById("news")) {
		
		var title = "news";
		var navid = 23;
		var bordercolor = "A9AC37";
		var borderwidth = 1;

	} else if (document.getElementById("news_archive")) {
		
		var title = "news archive";
		var navid = 23;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("events")) {
		
		var title = "events";
		var navid = 24;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("events-detail")) {
		
		var title = "events";
		var navid = 24;
		var bordercolor = "A9AC37";
		var borderwidth = 1;	
					
	} else if (document.getElementById("portfolio")) {

		var title = "portfolio";
		var navid = 7;
		var titlecolor = "44d1be";
		var titletrans = 85;
		var borderwidth = 0;
		
		var so = new SWFObject("global/portfolio/tmpw_portfolio_v2.swf", "app_movie", "732", "428", "8", "transparent");
		so.addParam("menu", "false");
		so.addParam("wmode", "transparent");
		so.addParam("base","global/portfolio/");
		so.addParam("allowScriptAccess","sameDomain");
		so.addParam("swliveconnect","true");
		so.setAttribute("style", ";"); /* Mozilla FireBug Fix */
		so.addVariable("pID", getQueryParamValue("id"));
		so.write("flashcontent");
	}
	else if (document.getElementById("portfolio_new")) {

		var title = "portfolio new";
		var navid = 7;
		var titlecolor = "44d1be";
		var titletrans = 85;
		var borderwidth = 0;
		
		var so = new SWFObject("global/portfolio/tmpw_portfolio_v2.swf", "app_movie", "732", "428", "8", "transparent");
		so.addParam("menu", "false");
		so.addParam("wmode", "transparent");
		so.addParam("base","global/portfolio/");
		so.addParam("allowScriptAccess","sameDomain");
		so.addParam("swliveconnect","true");
		so.setAttribute("style", ";"); /* Mozilla FireBug Fix */
		so.addVariable("pID", getQueryParamValue("id"));
		so.write("flashcontent");
	}
	 else if (document.getElementById("press")) {
		
		var title = "press kit";
		var navid = 11;
		var titlecolor = "ffff00";
		var titletrans = 80;
		
	} else if (document.getElementById("press_background")) {
		
		var title = "our background";
		var navid = 20;
		
	} else if (document.getElementById("press_factsheet")) {
		
		var title = "fact sheet";
		var navid = 19;
		
	} else if (document.getElementById("press_releases")) {
		
		var title = "press releases";
		var navid = 18;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} else if (document.getElementById("media_coverage")) {
		
		var title = "media coverage";
		var navid = 22;
		var bordercolor = "A9AC37";
		var borderwidth = 1;
		
	} 
	//else if (document.getElementById("events")) {
		
	//	var title = "events";
	//	var navid = 23;
		
	//}
	 else if (document.getElementById("privacy")) {
		
		var title = "privacy";
		
	 } else if (document.getElementById("browsers")) {
		
		var title = "supported browsers";	
		
	} else if (document.getElementById("profile_employees")) {
		
		var title = "employee profiles";
		var navid = 17;
		var titlecolor = "67b2b7";
		var titletrans = 100;
		var bordercolor = "FFFFFF";
		
	} else if (document.getElementById("profile_executives")) {
		
		var title = "executive profiles";
		var navid = 15;
		var bordercolor = "FFFFFF";
		
	} else if (document.getElementById("profile_speakers")) {
		
		var title = "speakers bureau";
		var navid = 16;
		var bordercolor = "FFFFFF";
		
	} else if (document.getElementById("video-profiles")) {
		
		var title = "creative directors";
		var navid = 25;
		var titletrans = 0;
		var titlecolor = "44d1be";
		var borderwidth = 0;
		
	} else if (document.getElementById("work")) {
		
		var title = "work for us";
		var navid = 10;
		var titlecolor = "DEF0B2";
		
	} else if (document.getElementById("work_jobsearch")) {
		
		var title = "job search";
}
	so = new SWFObject("global/_flash/primary_navigation.swf", "app_navigation", "270", "428", "8");
	// so.useExpressInstall('global/_flash/flash_expressinstall.swf');
	so.addParam("menu", "false");
	so.addParam("wmode", "transparent");
	so.addParam("allowScriptAccess","sameDomain");
	so.addParam("swliveconnect","true");
	so.setAttribute("style", ";"); /* Mozilla FireBug Fix */
	so.addVariable("titleText", title);
	
	if (titlesize != null) {
		so.addVariable("titleFontSize", titlesize);
	}
		
	so.addVariable("idFromAsp", navid);
	so.addVariable("borderRGB", "0x" + bordercolor);
	so.addVariable("borderWidth", borderwidth);
	so.addVariable("titleRGB", "0x" + titlecolor);
	so.addVariable("titleTransp", titletrans);
	so.write("primarynavigation");
}
