switch(location.href.substring(location.href.lastIndexOf('/')+1) ){    
    case 'thecompany.html':
      window.location.href= '/about.php';
    break;
    case 'core.html':
      window.location.href= '/about.php#core';
    break;
    case 'quote.html':
      window.location.href= '/contact.php#quote';
    break;
    case 'reservation.html':
      window.location.href= '/contact.php#quote';
    break;
    case 'newsevents.html':
      window.location.href= '/resources.php#news';
    break;
    case 'links.html':
      window.location.href= '/resources.php#links';
    break;
    case 'articles.html':
      window.location.href= '/resources.php#articles';
    break;
    case 'siliconwafers.html':
      window.location.href= '/wafers.php#SiliconWafers';
    break;
    case 'otherwafers.html':
      window.location.href= '/wafers.php#OtherWafers';
    break;
    case 'soiwafers.html':
      window.location.href= '/wafers.php#OtherWafers';
    break;
    case 'wetthermaloxidation2.html':
      window.location.href= '/foundry.php#WetThermalOxidation';
    break;
    case 'drythermaloxidation2.html':
      window.location.href= '/foundry.php#DryThermalOxidation';
    break;
    case 'drychlorinatedthermaloxidation.html':
      window.location.href= '/foundry.php#DryChlorinatedThermalOxidation';
    break;
    case 'pecvdoxide.html':
      window.location.href= '/foundry.php#PECVDOXIDE';
    break;
    case 'pecvdoxide.html':
      window.location.href= '/foundry.php#PECVDOXIDE';
    break;
    case 'pecvdoxynitride.html':
      window.location.href= '/foundry.php#PECVDOxyNitride';
    break;
    case 'sputterednitride.html':
      window.location.href= '/foundry.php#SputteredSiliconNitride';
    break;
    case 'stoichiometriclpcvdnitride.html':
      window.location.href= '/foundry.php#LowStressLPCVDNitride';
    break;
    case 'superlowstresslpcvdnitride.html':
      window.location.href= '/foundry.php#SuperLowStressLPCVDNitride';
    break;
    case 'superlowstresslpcvdnitride.html':
      window.location.href= '/foundry.php#SuperLowStressLPCVDNitride';
    break;
    case 'superlowstresslpcvdnitride.html':
      window.location.href= '/foundry.php#SuperLowStressLPCVDNitride';
    break;
    case 'targetedstresslpcvdnitride.html':
      window.location.href= '/foundry.php#TargetedStressLPCVDNitride';
    break;
    case 'targetedstresslpcvdnitride.html':
      window.location.href= '/foundry.php#TargetedStressLPCVDNitride';
    break;
    case 'pecvdnitride.html':
      window.location.href= '/foundry.php#PECVDNitride-PECVDLowStressNitride';
    break;
    case 'sputteredsilicon.html':
      window.location.href= '/foundry.php#SputteredSilicon';
    break;
    case 'pecvdsiliconcarbide.html':
      window.location.href= '/foundry.php#pecvdsiliconcarbide.html';
    break;
    case 'sputteredmetals.html':
      window.location.href= '/foundry.php#SputteredMetals';
    break;
    case 'evaporatedmetals.html':
      window.location.href= '/foundry.php#E-BeamEvaporatedMetals';
    break;
    case 'thermalanneal.html':
      window.location.href= '/foundry.php\#N2N2-O2Anneal';
    break;    
}

