﻿ function linkTrim()
{
    var objLinks=window.document.getElementsByTagName('A');
    for (i=0;i<objLinks.length;i++)
    {
	  var strLinkArray=objLinks[i].href.split('/');
			     var strTempArray=strLinkArray[strLinkArray.length-1].split('.')
			     var strPageID=strTempArray[strTempArray.length-2];
	  
if (strPageID=='15') objLinks[i].setAttribute('href','/practice_areas');
if (strPageID=='3') objLinks[i].setAttribute('href','/about_us');
if (strPageID=='35') objLinks[i].setAttribute('href','/services/board_search');
if (strPageID=='146') objLinks[i].setAttribute('href','/services/executive_search');
if (strPageID=='34') objLinks[i].setAttribute('href','/about_us/case_studies');
if (strPageID=='8') objLinks[i].setAttribute('href','/about_us/contact_us');
if (strPageID=='31') objLinks[i].setAttribute('href','/about_us/ethics_values');
if (strPageID=='25') objLinks[i].setAttribute('href','/extranet_page');
if (strPageID=='45') objLinks[i].setAttribute('href','/extranet');
if (strPageID=='23') objLinks[i].setAttribute('href','/frequently_asked_questions');
if (strPageID=='39') objLinks[i].setAttribute('href','/practice_areas/functional_practices');
if (strPageID=='48') objLinks[i].setAttribute('href','/german');
if (strPageID=='16') objLinks[i].setAttribute('href','/practice_areas/industy_practices');
if (strPageID=='41') objLinks[i].setAttribute('href','/offices/london');
if (strPageID=='60') objLinks[i].setAttribute('href','/offices/london');
if (strPageID=='115') objLinks[i].setAttribute('href','/offices/copenhagen');
if (strPageID=='116') objLinks[i].setAttribute('href','/offices/hamburg');
if (strPageID=='117') objLinks[i].setAttribute('href','/offices/hong_kong');
if (strPageID=='114') objLinks[i].setAttribute('href','/offices/newyork');
if (strPageID=='118') objLinks[i].setAttribute('href','/offices/oslo_via_copenhagen');
if (strPageID=='119') objLinks[i].setAttribute('href','/offices/stockholm_via_copenhagen');
if (strPageID=='36') objLinks[i].setAttribute('href','/services/leadership_assessment');
if (strPageID=='33') objLinks[i].setAttribute('href','/offices/london');
if (strPageID=='5') objLinks[i].setAttribute('href','/about_us/message_from_our_founder');
if (strPageID=='19') objLinks[i].setAttribute('href','/offices');
if (strPageID=='4') objLinks[i].setAttribute('href','/about_us/our_firm');
if (strPageID=='15') objLinks[i].setAttribute('href','/practice_areas');
if (strPageID=='32') objLinks[i].setAttribute('href','/privacy_policy');
if (strPageID=='17') objLinks[i].setAttribute('href','/research_insights');
if (strPageID=='46') objLinks[i].setAttribute('href','/search');
if (strPageID=='9') objLinks[i].setAttribute('href','/our_services');
if (strPageID=='26') objLinks[i].setAttribute('href','/sitemap');
if (strPageID=='21') objLinks[i].setAttribute('href','/terms_conditions');
if (strPageID=='20') objLinks[i].setAttribute('href','/your_career');
if (strPageID=='42') objLinks[i].setAttribute('href','/about_us/case_studies/general_manager_china');
if (strPageID=='49') objLinks[i].setAttribute('href','/services/search_process');
if (strPageID=='82') objLinks[i].setAttribute('href','/about_us/case_studies/board_director');
if (strPageID=='84') objLinks[i].setAttribute('href','/about_us/case_studies/chief_financial_officer');
if (strPageID=='86') objLinks[i].setAttribute('href','/about_us/case_studies/chief_operating_officer');
if (strPageID=='87') objLinks[i].setAttribute('href','/about_us/case_studies/chief_technology_officer');
if (strPageID=='88') objLinks[i].setAttribute('href','/about_us/case_studies/general_manager_usa');
if (strPageID=='89') objLinks[i].setAttribute('href','/about_us/case_studies/general_manager_japan');
if (strPageID=='90') objLinks[i].setAttribute('href','/about_us/case_studies/sales_director');
if (strPageID=='91') objLinks[i].setAttribute('href','/about_us/case_studies/supply_chain_and_logistics_manager');
if (strPageID=='92') objLinks[i].setAttribute('href','/about_us/case_studies/vice_president_service_and_after_sales');
if (strPageID=='93') objLinks[i].setAttribute('href','/about_us/case_studies/vice_president_business_development');
if (strPageID=='78') objLinks[i].setAttribute('href','/practice_areas/industry_practices/automotive');
if (strPageID=='95') objLinks[i].setAttribute('href','/practice_areas/industry_practices/chemicals');
if (strPageID=='97') objLinks[i].setAttribute('href','/practice_areas/industry_practices/construction_and_building_materials');
if (strPageID=='96') objLinks[i].setAttribute('href','/practice_areas/industry_practices/consumer_products');
if (strPageID=='98') objLinks[i].setAttribute('href','/practice_areas/industry_practices/industrial_machinery_and_equipment');
if (strPageID=='99') objLinks[i].setAttribute('href','/practice_areas/industry_practices/medical_devices_and_pharmaceuticals'); 
if (strPageID=='100') objLinks[i].setAttribute('href','/practice_areas/industry_practices/private_equity');
if (strPageID=='101') objLinks[i].setAttribute('href','/practice_areas/industry_practices/technology');
if (strPageID=='102') objLinks[i].setAttribute('href','/practice_areas/functional_practices/board_of_directors');
if (strPageID=='103') objLinks[i].setAttribute('href','/practice_areas/functional_practices/president_and_ceo');
if (strPageID=='104') objLinks[i].setAttribute('href','/practice_areas/functional_practices/finance');
if (strPageID=='105') objLinks[i].setAttribute('href','/practice_areas/functional_practices/operations');
if (strPageID=='106') objLinks[i].setAttribute('href','/practice_areas/functional_practices/sales_and_marketing');
if (strPageID=='107') objLinks[i].setAttribute('href','/practice_areas/functional_practices/service_and_after_sales');
if (strPageID=='108') objLinks[i].setAttribute('href','/practice_areas/functional_practices/supply_chain');
if (strPageID=='109') objLinks[i].setAttribute('href','/practice_areas/functional_practices/technology');
if (strPageID=='143') objLinks[i].setAttribute('href','/deutsch');
if (strPageID=='143') objLinks[i].setAttribute('href','/dansk');

    }

    try
    {
	  SubPageLoad();
    }
    catch(strError)
    {}
}