function applyAliases() {
 if (doc=="bpp_library" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/actionscript" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/content_management" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/cpp" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/data_structures" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/design_patterns" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/java" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/java_intro" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/javascript" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/operations_research" && ch=="presentation") { ch=""; change=true; }
 if (doc=="course/php" && ch=="presentation") { ch=""; change=true; }
 if (doc=="exercises/data_structures" && ch=="introduction") { ch=""; change=true; }
 if (doc=="exercises/uml" && ch=="introduction") { ch=""; change=true; }
 if (doc=="java" && ch=="presentation") { ch=""; change=true; }
 if (doc=="ms_thesis" && ch=="title") { ch=""; change=true; }
 if (doc=="phd_thesis" && ch=="title") { ch=""; change=true; }
 if (doc=="photos" && ch=="brazil_2008") { ch=""; change=true; }

 if (doc=="bpp_library" && ch!="" && lang!="en") { lang="en"; change=true; }
 if (doc=="course/actionscript" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/content_management" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/cpp" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/data_structures" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/design_patterns" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/java" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/java_intro" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/javascript" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/operations_research" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="course/php" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="exercises/data_structures" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="exercises/uml" && lang!="fr") { lang="fr"; change=true; }
 if (doc=="ms_thesis" && lang!="en") { lang="en"; change=true; }
 if (doc=="phd_thesis" && lang!="fr") { lang="fr"; change=true; }
}
