.*#";
+$numMatch = preg_match($eReg,$file,$matches);
+if($numMatch > 0)
+ $topNav = $matches[0];
+// echo $topNav;
-$eReg = "<" . "guid" . "[^<]*" . "<" . "/guid" . ">";
-$file = ereg_replace($eReg,"",$file);
+// Get bottom navigation div
+$eReg = "#
.*#";
+$numMatch = preg_match($eReg,$file,$matches);
+if($numMatch > 0)
+ $bottomNav = $matches[0];
+// echo $bottomNav;
+// Remove text starting from line 1 to
+// line containing tag
+$eReg="##is";
+$file = preg_replace($eReg,"",$file);
+$eReg = "#";
-$file = ereg_replace($eReg,"",$file);
//$file = ereg_replace();