$facultyarray = array("madams","jbrock","kkawaratani","bkudrle","hluu","jmartinez", "cpotts","isaenz","ytelles","kterry","vthamotharan","tzapata","sminasvand","krichardson","mgoldenberg","pjohari"); $host = $_SERVER['HTTP_HOST']; $page = $_SERVER['PHP_SELF']; $address = "http://$host$page"; $urlparts = parse_url($address); if($address == "http://www.greendot.org/delahoya/index.html" || $address == "http://www.greendot.org/delahoya/" || $address == "http://www.greendot.org/delahoya"){ $flashpage = "home"; } else if(dirname($urlparts['path']) == "/delahoya/faculty/profiles") { $flashpage = basename($urlparts['path'],".html"); $i=0; $picexists = 0; while($i < sizeof($facultyarray) && $picexists == 0){ $picexists = ($flashpage == $facultyarray[$i]); $i++; } $flashpage = ($picexists) ? $flashpage : "none"; } else { $flashpage = "none"; } ?> $flashpage = "aboutus"; ?>