$nav_list = array("home","videos","artists","blog","info");
$nav_list_url = array_combine($nav_list, array("home","episodes","artists","blog","info"));
foreach($nav_list as $nav_item){
$active = "";
if($_REQUEST['p'] == pretty_url($nav_list_url[$nav_item]) || ($_REQUEST['p'] == "episode" && pretty_url($nav_list_url[$nav_item]) == "episodes") || ($_REQUEST['p'] == "artist" && pretty_url($nav_list_url[$nav_item]) == "artists")){
$active = " class='active'";
}
echo "".ucfirst($nav_item)."";
}
?>