structure if ($id == 'intro'):$permalink=$url;else:$permalink=$url.$id;endif; //set permalink structure /* Sanitize $id for CSS id. */ if (!is_numeric(substr($id,0,1))): $cssID=$id; //as long as the id doesn't start w/ a number then it's cool else: $cssID='page-'.$id; //if it does start with a number, prepend the id w/ 'page-' endif; ?>