You should use (stristr($thisurl, 'staticpages'
!== false) rather than eregi. Without a regular expression there's no reason to use eregi. Also, there use to be a task to eliminate ereg* from Geeklog in favor of the preg* function since the preg* functions support unicode.
If you are on PHP5, use stripos in place of stristr as it doesn't return the unneeded string.