Doxygen Documentation




  Front Page
  Wedding
  Honeymoon
  Pets
  Travel
  Bloggy Style
  Elyse
  Customization
  Documentation
  What's New?

functions.php

Go to the documentation of this file.
00001 <?php
00002 
00015 $GlobalSerial = 0;
00016 
00017 
00018 
00021 function cookie_check()
00022 {
00023 global $prestop_custom_style;
00024 //global $HTTP_COOKIE_VARS['prestop_custom_style'];
00025 
00026 echo "prestop_custom_style:"; 
00027 echo $prestop_custom_style;
00028 
00029 echo "<br>\n";
00030 echo "cookies[prestop_custom_style]: ";
00031 echo $HTTP_COOKIE_VARS['prestop_custom_style'];
00032 echo "<br>\n";
00033 
00034 if ($prestop_custom_style == 2)
00035          echo " 2 true";
00036 else
00037          echo " 2 false";
00038 
00039 if ($prestop_custom_style == "2")
00040          echo " 2q true";
00041 else
00042          echo " 2q false";
00043 }
00044 
00045 
00050 function linky($url)
00051 {
00052 print "<a href=\"http://$url\">$url</a>";
00053 }
00054 
00061 function thumbnailer($file_name,$image_title,$caption=NULL)
00062 {
00063 echo "<a href=\"http://prestopnik.com/displayImage.php?fileName=";
00064 
00065 $thisURL = $GLOBALS["PATH_INFO"];
00066 $pos = strrpos($thisURL,'/');
00067 
00068 $filenamePath = substr($thisURL,0,$pos) . "/images/" . $file_name;
00069 
00070 echo $filenamePath;
00071 echo "&imageTitle=";
00072 echo urlencode($image_title);
00073 echo "\">\n";
00074 echo "<img src=\"images/tn_" . $file_name . "\" alt=\"\" align=center vspace=5 hspace=5 border=0>\n";
00075 if ($caption)
00076 {
00077          echo "<h4 align=center>" . $caption . "</h4>";
00078 }
00079 echo "</a>\n";
00080 }
00081 
00082 
00089 function rightThumbnailer($file_name,$image_title,$caption=NULL)
00090 {
00091 
00092 echo "<a href=\"http://prestopnik.com/displayImage.php?fileName=";
00093 
00094 $thisURL = $GLOBALS["PATH_INFO"];
00095 $pos = strrpos($thisURL,'/');
00096 
00097 $filenamePath = substr($thisURL,0,$pos) . "/images/" . $file_name;
00098 
00099 echo $filenamePath;
00100 
00101 echo "&imageTitle=";
00102 
00103 echo urlencode($image_title);
00104 echo "\">\n";
00105 
00106 echo "<img src=\"images/tn_" . $file_name . "\" alt=\"\" align=right vspace=5 hspace=10 border=0>\n";
00107 if ($caption)
00108 {
00109          echo "<h4 align=center>" . $caption . "</h4>";
00110 }
00111 echo "</a>\n";
00112 }
00119 function leftThumbnailer($file_name,$image_title,$caption=NULL)
00120 {
00121 
00122 echo "<a href=\"http://prestopnik.com/displayImage.php?fileName=";
00123 
00124 $thisURL = $GLOBALS["PATH_INFO"];
00125 $pos = strrpos($thisURL,'/');
00126 
00127 $filenamePath = substr($thisURL,0,$pos) . "/images/" . $file_name;
00128 
00129 echo $filenamePath;
00130 
00131 echo "&imageTitle=";
00132 
00133 echo urlencode($image_title);
00134 echo "\">\n";
00135 
00136 echo "<img src=\"images/tn_" . $file_name . "\" alt=\"\" align=left vspace=5 hspace=10 border=0>\n";
00137 if ($caption)
00138 {
00139          echo "<h4 align=center>" . $caption . "</h4>";
00140 }
00141 echo "</a>\n";
00142 }
00143 
00144 
00153 function print_standard_top($title)
00154 {
00155 global $prestop_custom_style;
00156 print "<!DOCTYPE php PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n";
00157 print "        \"http://www.w3.org/TR/xphp1/DTD/transitional.dtd\">\n";
00158 
00159 
00160 print "<php>\n";
00161 
00162 print "<head>\n";
00163 print "<link rel=\"icon\" href=\"/favicon.ico\"";
00164 print "type=\"image/x-icon\">";
00165 print "<link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\">";
00166 print "<title>\n";
00167 print "$title\n";
00168 print "</title>\n";
00169 
00170 switch ($prestop_custom_style) {
00171 case "1":
00172          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle.css";
00173          break;  
00174 case "2":
00175          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle2.css";
00176          break;  
00177 case "3":
00178          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle3.css";
00179          break;  
00180 case "4":
00181          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle4.css";
00182          break;  
00183 case "5":
00184          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle5.css";
00185          break;  
00186 case "6":
00187          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle6.css";
00188          break;  
00189 default:
00190          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle2.css";
00191          break;  
00192 }
00193 print "<link rel=\"stylesheet\" href=\"$style_sheet_location\">\n";
00194 print "</head>\n";
00195 print "<body>\n";
00196 print "<center><h1>\n";
00197 print "$title\n";
00198 print "</h1></center>\n";
00199 
00200 print "<br /><br /><br />\n";
00201 
00202 print "<table width=\"100%\"  valign=top>\n";
00203 print "<tr>\n";
00204 print "<td width=175 valign=\"top\">\n";
00205 $menu_dat_location = "http://" . $GLOBALS["SERVER_NAME"] . "/menu.dat";
00206 load_and_print_menu($menu_dat_location);
00207 
00208 print "</td>\n";
00209 
00210 print "<td valign=top>\n";
00211 print "    <!--keep cellpadding=1 and cellspacing=1 for the border around the table-->\n";
00212 print "    <table width=800 cellpadding=1 cellspacing=1 border=0  align=left valign=top ";
00213 print_main_table_bgcolor();
00214 print "    <tr><td valign=top>\n";
00215 
00216 print "        <center>\n";
00217 print "        <table width=100% cellpadding=0 cellspacing=0 border=0 valign=top ";
00218 print_main_table_bgcolor();
00219 
00220 print "        align=left>   <table width=\"100%\" cellspacing=\"2\" cellpadding=\"10\" border=\"1\" ";
00221 print_main_table_bgcolor(); 
00222 print "    align=left valign=top>       <tr><td align=left valign=top>\n";
00223 }
00224 
00225 
00234 function print_dox_top()
00235 {
00236   //$title = substr($GLOBALS["PATH_INFO"],1);
00237   $title = "Doxygen Documentation";
00238 
00239 global $prestop_custom_style;
00240 
00241 print "<!DOCTYPE php PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n";
00242 print "        \"http://www.w3.org/TR/xphp1/DTD/transitional.dtd\">\n";
00243 
00244 
00245 print "<php>\n";
00246 
00247 print "<head>\n";
00248 print "<link rel=\"icon\" href=\"/favicon.ico\"";
00249 print "type=\"image/x-icon\">";
00250 print "<link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\">";
00251 print "<title>\n";
00252 print "$title\n";
00253 print "</title>\n";
00254 
00255 
00256 switch ($prestop_custom_style) {
00257 case "1":
00258          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle.css";
00259          break;  
00260 case "2":
00261          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle2.css";
00262          break;  
00263 case "3":
00264          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle3.css";
00265          break;  
00266 case "4":
00267          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle4.css";
00268          break;  
00269 case "5":
00270          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle5.css";
00271          break;  
00272 case "6":
00273          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle6.css";
00274          break;  
00275 default:
00276          $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/mainstyle2.css";
00277          break;  
00278 }
00279 // $style_sheet_location = "http://" . $GLOBALS["SERVER_NAME"] . "/doxygen.css";
00280 print "<link rel=\"stylesheet\" href=\"$style_sheet_location\">\n";
00281 print "</head>\n";
00282 print "<body>\n";
00283 print "<center><h1>\n";
00284 print "$title\n";
00285 print "</h1></center>\n";
00286 
00287 print "<br /><br /><br />\n";
00288 
00289 print "<table width=\"100%\"  valign=top>\n";
00290 print "<tr>\n";
00291 print "<td width=150 valign=\"top\">\n";
00292 $menu_dat_location = "http://" . $GLOBALS["SERVER_NAME"] . "/menu.dat";
00293 load_and_print_menu($menu_dat_location);
00294 
00295 print "</td>\n";
00296 
00297 print "<td valign=top>\n";
00298 print "    <!--keep cellpadding=1 and cellspacing=1 for the border around the table-->\n";
00299 print "    <table width=800 cellpadding=1 cellspacing=1 border=0  align=left valign=top ";
00300 print_main_table_bgcolor();
00301 print "    <tr><td valign=top>\n";
00302 
00303 print "        <center>\n";
00304 print "        <table width=100% cellpadding=0 cellspacing=0 border=0 valign=top ";
00305 print_main_table_bgcolor();
00306 
00307 
00308 print "        align=left>   <table width=\"100%\" cellspacing=\"2\" cellpadding=\"10\" border=\"1\" ";
00309 print_main_table_bgcolor();
00310 
00311 print "    align=left valign=top>       <tr><td align=left valign=top>\n";
00312 }
00313 
00321 function print_prev_next_day_begin($prev_link, $title, $next_link)
00322 {
00323 print "<table width=100% valign=top><tr>\n";
00324 print "<td width=33% align=left valign=top>\n";
00325 
00326 if($prev_link != NULL)
00327       print "<a href=\"$prev_link\">Previous Day</a>\n";
00328 
00329 print "</td>\n";
00330 print "<td width=33% align=center valign=top><h3>$title</h3></td>\n";
00331 print "<td width=33% align=right valign=top>\n";
00332 
00333 if($next_link != NULL)
00334                   print "<a href=\"$next_link\">Next Day</a>\n";
00335 
00336 print "</td></tr>\n";
00337 }
00338 
00339 
00348 function print_prev_next_day_end($prev_link, $title, $next_link)
00349 {
00350 print "<tr>\n";
00351 print "<td width=33% align=left>\n";
00352 
00353 if($prev_link != NULL)
00354   print "<a href=\"$prev_link\">Previous Day</a>\n";
00355 
00356 print "</td>\n";
00357 print "<td width=33% align=center><h3>$title</h3></td>\n";
00358 print "<td width=33% align=right>\n";
00359 
00360 if($next_link != NULL)
00361   print "<a href=\"$next_link\">Next Day</a>\n";
00362 
00363 print "</td></tr>\n";
00364 print "</table>\n";
00365 }
00366 
00372 function print_standard_bottom()
00373 {
00374 global $prestop_custom_style;
00375 print "                                         </td></tr>\n";
00376 print "        </table>\n";
00377 print "        </center>\n";
00378 
00379 print "   </td></tr>\n";
00380 print "   </table>\n";
00381 
00382 
00383 print "</td></tr>\n";
00384 print "</table>\n";
00385 print "<br><br><img src=\"/images/";
00386 switch ($prestop_custom_style){
00387 case "1":
00388 case "2":
00389 case "3":
00390 case "5":
00391                  print "emails.gif";
00392                  break;          
00393 case "4":
00394 case "6":
00395                  print "emails_ltgray.gif";
00396                  break;
00397 default:
00398                  print "emails.gif";
00399                  break;
00400                  }               
00401 
00402 print"\">";
00403 print "</body>\n";
00404 print "</php>\n";
00405 }
00406 
00411 function print_main_table_bgcolor()
00412 {
00413 global $prestop_custom_style;
00414 
00415 switch ($prestop_custom_style){
00416 case "2":
00417                  print "bgcolor=\"#080808\"";
00418                  break;
00419 case "3":
00420                  print "bgcolor=\"#2D3140\"";
00421                  break;
00422 case "4":
00423                  print "bgcolor=\"#080808\"";
00424                  break;
00425 case "5":
00426                  print "bgcolor=\"#efc04a\"";
00427                  break;
00428 case "6":
00429                  print "bgcolor=\"#420000\"";
00430                  break;
00431 case "1":
00432                  print "bgcolor=\"#f9f9e3\"";
00433                  break;
00434 default:
00435                  print "bgcolor=\"#080808\"";
00436                  break;
00437                  }
00438 }
00439 
00443 function print_color_test()
00444 {
00445  $colors = array();
00446  $color_names = array();
00447  $colors[0] = "00ffff";
00448  $colors[1] = "ff00ff";
00449  $colors[2] = "0000ff";
00450  $colors[3] = "008000";
00451  $colors[4] = "ff0000";
00452  $colors[5] = "008080";
00453  
00454  $color_names[0] = "aqua";
00455  $color_names[1] = "fuchsia";
00456  $color_names[2] = "blue";
00457  $color_names[3] = "green";
00458  $color_names[4] = "red";
00459  $color_names[5] = "teal";
00460  $color_size = 6;
00461  
00462  for($i = 0; $i < $color_size; $i++)
00463  {
00464   print "<font color=\"#" . $colors[$i] . "\">";        
00465         tqbf();
00466          print " - ". $color_names[$i] . "</font><br>\n";
00467  }
00468 }
00469 
00470 
00475 function tqbf()
00476 {
00477 print "The Quick Brown Fox Jumped Over The Angry Dog.";
00478 }
00479 
00480 
00481 
00485 function print_node($root)
00486 {
00487   echo "url: ".$root->url;
00488   echo "<br>";
00489   echo "menu_name: ".$root->menu_name;
00490   echo "<br>";
00491   echo "# of children_pages: ".count($root->children_pages);  
00492   echo "<br>";
00493   echo "hidden: ";
00494   if ($root->hidden == true)
00495     echo "true";
00496   else
00497     echo "false";
00498   echo "<br>";
00499   echo "font_size: ".$root->font_size;
00500   echo "<br>";
00501   echo "icon: ".$root->icon;
00502   echo "<br>";
00503 }
00504 
00508 function clean_print_node($root)
00509 {
00510   echo $root->url;
00511   echo "<br>";
00512   echo $root->menu_name;
00513   echo "<br>";
00514   if ($root->hidden == true)
00515     echo "true";
00516   else
00517     echo "false";
00518   echo "<br>";
00519   echo $root->font_size;
00520   echo "<br>";
00521   echo $root->icon;
00522   echo "<br>";
00523   echo count($root->children_pages); 
00524   echo "<br>";
00525 }
00526 
00530 function load_tree($file_name)
00531 {
00532  $lines = file($file_name);
00533  for($i = 0; $i<count($lines); $i++)
00534    $lines[$i] = rtrim($lines[$i]);
00535 
00536  $root = new menu_tree_node();
00537  read_and_add_node($lines, $root);
00538 
00539  return $root;
00540 } 
00541 
00542 
00547 function read_and_add_node(&$lines, &$root)
00548 {
00549  $root->url = $lines[0];
00550  $root->menu_name = $lines[1];
00551  if($lines[2] == "true") 
00552    $root->hidden = true;
00553  else
00554    $root->hidden = false;
00555  $root->font_size = $lines[3];
00556  $root->icon = $lines[4];
00557  $num_children = $lines[5];
00558  for($i = 0; $i < $num_children; $i++)  //$line[5] is a string, but converts to a  #
00559    {
00560      //echo "adding child $i<br>";
00561      $root->children_pages[$i] = new menu_tree_node();
00562      $lines = array_slice($lines,6);
00563      read_and_add_node($lines, $root->children_pages[$i]);
00564    }
00565 }
00566 
00570 function print_full_tree($root)
00571 {
00572  print_node($root);
00573  for($i = 0; $i < count($root->children_pages); $i++)
00574  {
00575    print_full_tree($root->children_pages[$i]);
00576  }
00577 }
00578 
00582 function clean_print_full_tree($root)
00583 {
00584  clean_print_node($root);
00585  for($i = 0; $i < count($root->children_pages); $i++)
00586  {
00587    clean_print_full_tree($root->children_pages[$i]);
00588  }
00589 }
00590 
00594 class menu_tree_node
00595 {
00597   var $serial;
00599   var $url;
00601   var $menu_name;
00602   //var $mouse_over;
00604   var $children_pages = array();  
00605   //var $index_terms = array();
00607   var $hidden;
00609   var $font_size;
00611   var $icon;
00613   var $print_value;  //$print_value > 0 implies $menu_name should be displayed
00614 
00615   function menu_tree_node()
00616     {
00617       $this->mouse_over = "mouse over test";
00618       $this->hidden = false;
00619       $this->font_size = "medium";
00620       $this->icon = "none";
00621       $this->serial = $GLOBALS['GlobalSerial']++;
00622       $this->print_value = 0;
00623     }
00624 }
00625 
00626 
00631 function get_parent_n($root, $node)
00632 {
00633  if ($root == NULL)
00634    return NULL;
00635  if (is_parent($root,$node))
00636  {
00637    //print("$root->url is $node->url's parent");
00638    return $root;
00639  }
00640  for($i = 0; $i < count($root->children_pages); $i++)
00641  {
00642    $prNode = $root->children_pages[$i];
00643    //print (":$prNode->url");
00644    $tmpNode = get_parent_n($root->children_pages[$i], $node);
00645    if ($tmpNode != NULL)
00646      {
00647        //print("found!! = $tmpNode->url");
00648        return $tmpNode;
00649      }
00650  }
00651  return NULL; 
00652 }
00653 
00654 
00659 function get_parent($root, $url)
00660 {
00661   for($i = 0; $i < count($root->children_pages); $i++)
00662     {
00663       $node = $root->children_pages[$i];
00664       //echo("examining:  $node->url vs. $url <br>");
00665       if($url == $node->url)
00666         {
00667           //   echo("return1: $root->url <br>");
00668           return $root; 
00669         }
00670       $tmpURL = get_parent($node, $url);
00671       if ($tmpURL != NULL)
00672         {
00673           //              echo("return2: $tmpURL->url <br>");
00674           return $tmpURL;
00675         }
00676     }
00677   return NULL;
00678 }
00679 
00685 function create_menu_tree()
00686 {
00687   $root = new menu_tree_node();
00688   $root->children_pages[0] = new menu_tree_node();
00689   $root->children_pages[0]->url = "index.php";
00690   $root->children_pages[0]->menu_name = "Front Page";
00691 
00692   $root->children_pages[1] = new menu_tree_node();
00693   $root->children_pages[1]->url = "wedding/index.php";
00694   $root->children_pages[1]->menu_name = "Wedding"; 
00695 
00696   $root->children_pages[1]->children_pages[1] = new menu_tree_node();
00697   $root->children_pages[1]->children_pages[1]->url = "wedding/planning_index.php";
00698   $root->children_pages[1]->children_pages[1]->menu_name = "Pre-Wedding"; 
00699 
00700   $root->children_pages[1]->children_pages[1]->children_pages[3] = new menu_tree_node();
00701   $root->children_pages[1]->children_pages[1]->children_pages[3]->url = "wedding/photographers.php";
00702   $root->children_pages[1]->children_pages[1]->children_pages[3]->menu_name = "Photographer"; 
00703 
00704   $root->children_pages[1]->children_pages[1]->children_pages[2] = new menu_tree_node();
00705   $root->children_pages[1]->children_pages[1]->children_pages[2]->url = "wedding/reception.php";
00706   $root->children_pages[1]->children_pages[1]->children_pages[2]->menu_name = "Reception"; 
00707 
00708   $root->children_pages[1]->children_pages[1]->children_pages[1] = new menu_tree_node();
00709   $root->children_pages[1]->children_pages[1]->children_pages[1]->url = "wedding/ceremony.php";
00710   $root->children_pages[1]->children_pages[1]->children_pages[1]->menu_name = "Ceremony"; 
00711 
00712   $root->children_pages[1]->children_pages[1]->children_pages[4] = new menu_tree_node();
00713   $root->children_pages[1]->children_pages[1]->children_pages[4]->url = "wedding/florist.php";
00714   $root->children_pages[1]->children_pages[1]->children_pages[4]->menu_name = "Flowers"; 
00715 
00716   $root->children_pages[1]->children_pages[1]->children_pages[5] = new menu_tree_node();
00717   $root->children_pages[1]->children_pages[1]->children_pages[5]->url = "wedding/attire.php";
00718   $root->children_pages[1]->children_pages[1]->children_pages[5]->menu_name = "Attire"; 
00719 
00720   $root->children_pages[1]->children_pages[1]->children_pages[6] = new menu_tree_node();
00721   $root->children_pages[1]->children_pages[1]->children_pages[6]->url = "wedding/entertainment.php";
00722   $root->children_pages[1]->children_pages[1]->children_pages[6]->menu_name = "Entertainment"; 
00723 
00724   $root->children_pages[1]->children_pages[1]->children_pages[0] = new menu_tree_node();
00725   $root->children_pages[1]->children_pages[1]->children_pages[0]->url = "wedding/guest_info.php";
00726   $root->children_pages[1]->children_pages[1]->children_pages[0]->menu_name = "Guest Info"; 
00727 
00728   $root->children_pages[1]->children_pages[1]->children_pages[7] = new menu_tree_node();
00729   $root->children_pages[1]->children_pages[1]->children_pages[7]->url = "wedding/budget.php";
00730   $root->children_pages[1]->children_pages[1]->children_pages[7]->menu_name = "Budget/Expense"; 
00731   $root->children_pages[1]->children_pages[1]->children_pages[7]->hidden = true;
00732 
00733   $root->children_pages[1]->children_pages[1]->children_pages[8] = new menu_tree_node();
00734   $root->children_pages[1]->children_pages[1]->children_pages[8]->url = "wedding/invitations.php";
00735   $root->children_pages[1]->children_pages[1]->children_pages[8]->menu_name = "Invitations";
00736   $root->children_pages[1]->children_pages[1]->children_pages[8]->hidden = true;
00737 
00738   $root->children_pages[1]->children_pages[0] = new menu_tree_node();
00739   $root->children_pages[1]->children_pages[0]->url = "wedding/photos.php";
00740   $root->children_pages[1]->children_pages[0]->menu_name = "Photos";
00741 
00742   $root->children_pages[1]->children_pages[0]->children_pages[0] = new menu_tree_node();
00743   $root->children_pages[1]->children_pages[0]->children_pages[0]->url = "wedding/julie_hair_makeup_gallery.php"; 
00744   $root->children_pages[1]->children_pages[0]->children_pages[0]->menu_name ="1 &nbsp;&nbsp;&nbsp;&nbsp;- &nbsp;&nbsp;34";
00745   $root->children_pages[1]->children_pages[0]->children_pages[0]->icon = "images/camera_icon.gif";
00746  
00747   $root->children_pages[1]->children_pages[0]->children_pages[1] = new menu_tree_node();
00748   $root->children_pages[1]->children_pages[0]->children_pages[1]->url = "wedding/paul_getting_ready_gallery.php"; 
00749   $root->children_pages[1]->children_pages[0]->children_pages[1]->menu_name ="35 &nbsp;&nbsp;- &nbsp;&nbsp;53";
00750   $root->children_pages[1]->children_pages[0]->children_pages[1]->icon = "images/camera_icon.gif";
00751  
00752   $root->children_pages[1]->children_pages[0]->children_pages[2] = new menu_tree_node();
00753   $root->children_pages[1]->children_pages[0]->children_pages[2]->url = "wedding/julie_getting_dressed_gallery.php"; 
00754   $root->children_pages[1]->children_pages[0]->children_pages[2]->menu_name ="54 &nbsp;&nbsp;- &nbsp;&nbsp;74";
00755   $root->children_pages[1]->children_pages[0]->children_pages[2]->icon = "images/camera_icon.gif";
00756  
00757   $root->children_pages[1]->children_pages[0]->children_pages[3] = new menu_tree_node();
00758   $root->children_pages[1]->children_pages[0]->children_pages[3]->url = "wedding/pre_ceremony_gallery.php"; 
00759   $root->children_pages[1]->children_pages[0]->children_pages[3]->menu_name ="75 &nbsp;&nbsp;- 139";
00760   $root->children_pages[1]->children_pages[0]->children_pages[3]->icon = "images/camera_icon.gif";
00761  
00762   $root->children_pages[1]->children_pages[0]->children_pages[4] = new menu_tree_node();
00763   $root->children_pages[1]->children_pages[0]->children_pages[4]->url = "wedding/pre_ceremony_gallery1.php"; 
00764   $root->children_pages[1]->children_pages[0]->children_pages[4]->menu_name ="    (Pg 1)";
00765   $root->children_pages[1]->children_pages[0]->children_pages[4]->font_size ="small";
00766   $root->children_pages[1]->children_pages[0]->children_pages[4]->icon = "images/camera_icon.gif";
00767  
00768   $root->children_pages[1]->children_pages[0]->children_pages[5] = new menu_tree_node();
00769   $root->children_pages[1]->children_pages[0]->children_pages[5]->url = "wedding/pre_ceremony_gallery2.php"; 
00770   $root->children_pages[1]->children_pages[0]->children_pages[5]->menu_name ="    (Pg 2)";
00771   $root->children_pages[1]->children_pages[0]->children_pages[5]->font_size ="small";
00772   $root->children_pages[1]->children_pages[0]->children_pages[5]->icon = "images/camera_icon.gif";
00773  
00774   $root->children_pages[1]->children_pages[0]->children_pages[6] = new menu_tree_node();
00775   $root->children_pages[1]->children_pages[0]->children_pages[6]->url = "wedding/ceremony_processional_gallery.php"; 
00776   $root->children_pages[1]->children_pages[0]->children_pages[6]->menu_name ="140 - 160";
00777   $root->children_pages[1]->children_pages[0]->children_pages[6]->icon = "images/camera_icon.gif";
00778  
00779   $root->children_pages[1]->children_pages[0]->children_pages[7] = new menu_tree_node();
00780   $root->children_pages[1]->children_pages[0]->children_pages[7]->url = "wedding/ceremony_gallery.php"; 
00781   $root->children_pages[1]->children_pages[0]->children_pages[7]->menu_name ="161 - 244";
00782   $root->children_pages[1]->children_pages[0]->children_pages[7]->icon = "images/camera_icon.gif";
00783  
00784   $root->children_pages[1]->children_pages[0]->children_pages[8] = new menu_tree_node();
00785   $root->children_pages[1]->children_pages[0]->children_pages[8]->url = "wedding/ceremony_gallery1.php"; 
00786   $root->children_pages[1]->children_pages[0]->children_pages[8]->menu_name ="    (Pg 1)";
00787   $root->children_pages[1]->children_pages[0]->children_pages[8]->font_size ="small";
00788   $root->children_pages[1]->children_pages[0]->children_pages[8]->icon = "images/camera_icon.gif";
00789  
00790   $root->children_pages[1]->children_pages[0]->children_pages[9] = new menu_tree_node();
00791   $root->children_pages[1]->children_pages[0]->children_pages[9]->url = "wedding/ceremony_gallery2.php"; 
00792   $root->children_pages[1]->children_pages[0]->children_pages[9]->menu_name ="    (Pg 2)";
00793   $root->children_pages[1]->children_pages[0]->children_pages[9]->font_size ="small";
00794   $root->children_pages[1]->children_pages[0]->children_pages[9]->icon = "images/camera_icon.gif";
00795  
00796   $root->children_pages[1]->children_pages[0]->children_pages[10] = new menu_tree_node();
00797   $root->children_pages[1]->children_pages[0]->children_pages[10]->url = "wedding/ceremony_recessional_gallery.php"; 
00798   $root->children_pages[1]->children_pages[0]->children_pages[10]->menu_name ="245 - 254";
00799   $root->children_pages[1]->children_pages[0]->children_pages[10]->icon = "images/camera_icon.gif";
00800  
00801   $root->children_pages[1]->children_pages[0]->children_pages[11] = new menu_tree_node();
00802   $root->children_pages[1]->children_pages[0]->children_pages[11]->url = "wedding/post_ceremony_gallery.php"; 
00803   $root->children_pages[1]->children_pages[0]->children_pages[11]->menu_name ="255 - 273";
00804   $root->children_pages[1]->children_pages[0]->children_pages[11]->icon = "images/camera_icon.gif";
00805  
00806   $root->children_pages[1]->children_pages[0]->children_pages[12] = new menu_tree_node();
00807   $root->children_pages[1]->children_pages[0]->children_pages[12]->url = "wedding/formal_family_gallery.php"; 
00808   $root->children_pages[1]->children_pages[0]->children_pages[12]->menu_name ="274 - 390";
00809   $root->children_pages[1]->children_pages[0]->children_pages[12]->icon = "images/camera_icon.gif";
00810  
00811   $root->children_pages[1]->children_pages[0]->children_pages[13] = new menu_tree_node();
00812   $root->children_pages[1]->children_pages[0]->children_pages[13]->url = "wedding/formal_family_gallery1.php"; 
00813   $root->children_pages[1]->children_pages[0]->children_pages[13]->menu_name ="    (Pg 1)";
00814   $root->children_pages[1]->children_pages[0]->children_pages[13]->font_size ="small";
00815   $root->children_pages[1]->children_pages[0]->children_pages[13]->icon = "images/camera_icon.gif";
00816  
00817   $root->children_pages[1]->children_pages[0]->children_pages[14] = new menu_tree_node();
00818   $root->children_pages[1]->children_pages[0]->children_pages[14]->url = "wedding/formal_family_gallery2.php"; 
00819   $root->children_pages[1]->children_pages[0]->children_pages[14]->menu_name ="    (Pg 2)";
00820   $root->children_pages[1]->children_pages[0]->children_pages[14]->font_size ="small";
00821   $root->children_pages[1]->children_pages[0]->children_pages[14]->icon = "images/camera_icon.gif";
00822  
00823   $root->children_pages[1]->children_pages[0]->children_pages[15] = new menu_tree_node();
00824   $root->children_pages[1]->children_pages[0]->children_pages[15]->url = "wedding/formal_family_gallery3.php"; 
00825   $root->children_pages[1]->children_pages[0]->children_pages[15]->menu_name ="    (Pg 3)";
00826   $root->children_pages[1]->children_pages[0]->children_pages[15]->font_size ="small";
00827   $root->children_pages[1]->children_pages[0]->children_pages[15]->icon = "images/camera_icon.gif";
00828  
00829   $root->children_pages[1]->children_pages[0]->children_pages[16] = new menu_tree_node();
00830   $root->children_pages[1]->children_pages[0]->children_pages[16]->url = "wedding/formal_pj_gallery.php"; 
00831   $root->children_pages[1]->children_pages[0]->children_pages[16]->menu_name ="391 - 446";
00832   $root->children_pages[1]->children_pages[0]->children_pages[16]->icon = "images/camera_icon.gif";
00833  
00834   $root->children_pages[1]->children_pages[0]->children_pages[17] = new menu_tree_node();
00835   $root->children_pages[1]->children_pages[0]->children_pages[17]->url = "wedding/formal_pj_gallery1.php"; 
00836   $root->children_pages[1]->children_pages[0]->children_pages[17]->menu_name ="    (Pg 1)";
00837   $root->children_pages[1]->children_pages[0]->children_pages[17]->font_size ="small";
00838   $root->children_pages[1]->children_pages[0]->children_pages[17]->icon = "images/camera_icon.gif";
00839  
00840   $root->children_pages[1]->children_pages[0]->children_pages[18] = new menu_tree_node();
00841   $root->children_pages[1]->children_pages[0]->children_pages[18]->url = "wedding/formal_pj_gallery2.php"; 
00842   $root->children_pages[1]->children_pages[0]->children_pages[18]->menu_name ="    (Pg 2)";
00843   $root->children_pages[1]->children_pages[0]->children_pages[18]->font_size ="small";
00844   $root->children_pages[1]->children_pages[0]->children_pages[18]->icon = "images/camera_icon.gif";
00845  
00846   $root->children_pages[1]->children_pages[0]->children_pages[19] = new menu_tree_node();
00847   $root->children_pages[1]->children_pages[0]->children_pages[19]->url = "wedding/arriving_reception_gallery.php"; 
00848   $root->children_pages[1]->children_pages[0]->children_pages[19]->menu_name ="447 - 466";
00849   $root->children_pages[1]->children_pages[0]->children_pages[19]->icon = "images/camera_icon.gif";
00850  
00851   $root->children_pages[1]->children_pages[0]->children_pages[20] = new menu_tree_node();
00852   $root->children_pages[1]->children_pages[0]->children_pages[20]->url = "wedding/reception_gallery.php"; 
00853   $root->children_pages[1]->children_pages[0]->children_pages[20]->menu_name ="467 - 580";
00854   $root->children_pages[1]->children_pages[0]->children_pages[20]->icon = "images/camera_icon.gif";
00855  
00856   $root->children_pages[1]->children_pages[0]->children_pages[21] = new menu_tree_node();
00857   $root->children_pages[1]->children_pages[0]->children_pages[21]->url = "wedding/reception_gallery1.php"; 
00858   $root->children_pages[1]->children_pages[0]->children_pages[21]->menu_name ="    (Pg 1)";
00859   $root->children_pages[1]->children_pages[0]->children_pages[21]->font_size ="small";
00860   $root->children_pages[1]->children_pages[0]->children_pages[21]->icon = "images/camera_icon.gif";
00861  
00862   $root->children_pages[1]->children_pages[0]->children_pages[22] = new menu_tree_node();
00863   $root->children_pages[1]->children_pages[0]->children_pages[22]->url = "wedding/reception_gallery2.php"; 
00864   $root->children_pages[1]->children_pages[0]->children_pages[22]->menu_name ="    (Pg 2)";
00865   $root->children_pages[1]->children_pages[0]->children_pages[22]->font_size ="small";
00866   $root->children_pages[1]->children_pages[0]->children_pages[22]->icon = "images/camera_icon.gif";
00867  
00868   $root->children_pages[1]->children_pages[0]->children_pages[23] = new menu_tree_node();
00869   $root->children_pages[1]->children_pages[0]->children_pages[23]->url = "wedding/reception_gallery3.php"; 
00870   $root->children_pages[1]->children_pages[0]->children_pages[23]->menu_name ="    (Pg 3)";
00871   $root->children_pages[1]->children_pages[0]->children_pages[23]->font_size ="small";
00872   $root->children_pages[1]->children_pages[0]->children_pages[23]->icon = "images/camera_icon.gif";
00873  
00874   $root->children_pages[1]->children_pages[0]->children_pages[24] = new menu_tree_node();
00875   $root->children_pages[1]->children_pages[0]->children_pages[24]->url = "wedding/saying_goodbye_gallery.php"; 
00876   $root->children_pages[1]->children_pages[0]->children_pages[24]->menu_name ="581 - 618";
00877   $root->children_pages[1]->children_pages[0]->children_pages[24]->icon = "images/camera_icon.gif";
00878  
00879   $root->children_pages[1]->children_pages[0]->children_pages[25] = new menu_tree_node();
00880   $root->children_pages[1]->children_pages[0]->children_pages[25]->url = "wedding/engagement_shoot.php"; 
00881   $root->children_pages[1]->children_pages[0]->children_pages[25]->menu_name ="Engagement";
00882   $root->children_pages[1]->children_pages[0]->children_pages[25]->icon = "images/camera_icon.gif";
00883  
00884   $root->children_pages[2] = new menu_tree_node();
00885   $root->children_pages[2]->url = "honeymoon/index.php";
00886   $root->children_pages[2]->menu_name = "Honeymoon";
00887 
00888   $root->children_pages[2]->children_pages[0] = new menu_tree_node();
00889   $root->children_pages[2]->children_pages[0]->url = "honeymoon/calendar2.php";
00890   $root->children_pages[2]->children_pages[0]->menu_name = "Calendar";
00891   $root->children_pages[2]->children_pages[0]->hidden = false;
00892         
00893   $root->children_pages[2]->children_pages[1] = new menu_tree_node();
00894   $root->children_pages[2]->children_pages[1]->url = "honeymoon/honeymoon_photo_gallery_index.php";
00895   $root->children_pages[2]->children_pages[1]->menu_name = "Photo Galleries";
00896 
00897   $root->children_pages[2]->children_pages[2] = new menu_tree_node();
00898   $root->children_pages[2]->children_pages[2]->url = "honeymoon/04_05_17.php";
00899   $root->children_pages[2]->children_pages[2]->menu_name = "2004/05/17";
00900         
00901   $root->children_pages[2]->children_pages[2]->children_pages[0] = new menu_tree_node();
00902   $root->children_pages[2]->children_pages[2]->children_pages[0]->url = "honeymoon/singel_gallery.php";
00903   $root->children_pages[2]->children_pages[2]->children_pages[0]->menu_name = "Singel Apt.";
00904   $root->children_pages[2]->children_pages[2]->children_pages[0]->icon = "images/camera_icon.gif";
00905  
00906   $root->children_pages[2]->children_pages[3] = new menu_tree_node();
00907   $root->children_pages[2]->children_pages[3]->url = "honeymoon/04_05_18.php";
00908   $root->children_pages[2]->children_pages[3]->menu_name = "2004/05/18";
00909 
00910   $root->children_pages[2]->children_pages[3]->children_pages[0] = new menu_tree_node();
00911   $root->children_pages[2]->children_pages[3]->children_pages[0]->url = "honeymoon/damsquare_gallery.php";
00912   $root->children_pages[2]->children_pages[3]->children_pages[0]->menu_name = "Dam Square";
00913   $root->children_pages[2]->children_pages[3]->children_pages[0]->icon = "images/camera_icon.gif";
00914  
00915   $root->children_pages[2]->children_pages[3]->children_pages[1] = new menu_tree_node();
00916   $root->children_pages[2]->children_pages[3]->children_pages[1]->url = "honeymoon/oude_kerk_gallery.php";
00917   $root->children_pages[2]->children_pages[3]->children_pages[1]->menu_name = "Oude Kerk";
00918   $root->children_pages[2]->children_pages[3]->children_pages[1]->icon = "images/camera_icon.gif";
00919         
00920   $root->children_pages[2]->children_pages[3]->children_pages[2] = new menu_tree_node();
00921   $root->children_pages[2]->children_pages[3]->children_pages[2]->url = "honeymoon/sex_museum_gallery_entrance.php";
00922   $root->children_pages[2]->children_pages[3]->children_pages[2]->menu_name = "Sex Museum";
00923   $root->children_pages[2]->children_pages[3]->children_pages[2]->icon = "images/camera_icon.gif";
00924         
00925   $root->children_pages[2]->children_pages[3]->children_pages[3] = new menu_tree_node();
00926   $root->children_pages[2]->children_pages[3]->children_pages[3]->url = "honeymoon/sex_museum/gallery.php";
00927   $root->children_pages[2]->children_pages[3]->children_pages[3]->menu_name = "Sex Museum";
00928   $root->children_pages[2]->children_pages[3]->children_pages[3]->hidden = true;
00929   $root->children_pages[2]->children_pages[3]->children_pages[3]->icon = "images/camera_icon.gif";
00930 
00931   $root->children_pages[2]->children_pages[3]->children_pages[3] = new menu_tree_node();
00932   $root->children_pages[2]->children_pages[3]->children_pages[3]->url = "honeymoon/04_05_18_misc_gallery.php";
00933   $root->children_pages[2]->children_pages[3]->children_pages[3]->menu_name = "Miscellaneous";
00934   $root->children_pages[2]->children_pages[3]->children_pages[3]->icon = "images/camera_icon.gif";
00935 
00936   $root->children_pages[2]->children_pages[4] = new menu_tree_node();
00937   $root->children_pages[2]->children_pages[4]->url = "honeymoon/04_05_19.php";
00938   $root->children_pages[2]->children_pages[4]->menu_name = "2004/05/19";
00939         
00940   $root->children_pages[2]->children_pages[4]->children_pages[0] = new menu_tree_node();
00941   $root->children_pages[2]->children_pages[4]->children_pages[0]->url = "honeymoon/keukenhof_gallery.php";
00942   $root->children_pages[2]->children_pages[4]->children_pages[0]->menu_name = "Keukenhof";
00943   $root->children_pages[2]->children_pages[4]->children_pages[0]->icon = "images/camera_icon.gif";
00944  
00945   $root->children_pages[2]->children_pages[4]->children_pages[1] = new menu_tree_node();
00946   $root->children_pages[2]->children_pages[4]->children_pages[1]->url = "honeymoon/leiden_gallery.php";
00947   $root->children_pages[2]->children_pages[4]->children_pages[1]->menu_name = "Leiden";
00948   $root->children_pages[2]->children_pages[4]->children_pages[1]->icon = "images/camera_icon.gif";
00949  
00950   $root->children_pages[2]->children_pages[5] = new menu_tree_node();
00951   $root->children_pages[2]->children_pages[5]->url = "honeymoon/04_05_20.php";
00952   $root->children_pages[2]->children_pages[5]->menu_name = "2004/05/20";
00953         
00954   $root->children_pages[2]->children_pages[5]->children_pages[0] = new menu_tree_node();
00955   $root->children_pages[2]->children_pages[5]->children_pages[0]->url = "honeymoon/begijnhof_gallery.php";
00956   $root->children_pages[2]->children_pages[5]->children_pages[0]->menu_name = "Begijnhof";
00957   $root->children_pages[2]->children_pages[5]->children_pages[0]->icon = "images/camera_icon.gif";
00958         
00959   $root->children_pages[2]->children_pages[5]->children_pages[1] = new menu_tree_node();
00960   $root->children_pages[2]->children_pages[5]->children_pages[1]->url = "honeymoon/04_05_20_misc_gallery.php";
00961   $root->children_pages[2]->children_pages[5]->children_pages[1]->menu_name = "Miscellaneous";
00962   $root->children_pages[2]->children_pages[5]->children_pages[1]->icon = "images/camera_icon.gif";
00963 
00964   $root->children_pages[2]->children_pages[6] = new menu_tree_node();
00965   $root->children_pages[2]->children_pages[6]->url = "honeymoon/04_05_21.php";
00966   $root->children_pages[2]->children_pages[6]->menu_name = "2004/05/21";
00967         
00968   $root->children_pages[2]->children_pages[6]->children_pages[0] = new menu_tree_node();
00969   $root->children_pages[2]->children_pages[6]->children_pages[0]->url = "honeymoon/kalvertoren_gallery.php";
00970   $root->children_pages[2]->children_pages[6]->children_pages[0]->menu_name = "Kalvertoren";
00971   $root->children_pages[2]->children_pages[6]->children_pages[0]->icon = "images/camera_icon.gif";
00972         
00973   $root->children_pages[2]->children_pages[7] = new menu_tree_node();
00974   $root->children_pages[2]->children_pages[7]->url = "honeymoon/04_05_22.php";
00975   $root->children_pages[2]->children_pages[7]->menu_name = "2004/05/22";
00976         
00977   $root->children_pages[2]->children_pages[7]->children_pages[0] = new menu_tree_node();
00978   $root->children_pages[2]->children_pages[7]->children_pages[0]->url = "honeymoon/04_05_22_misc_gallery.php";
00979   $root->children_pages[2]->children_pages[7]->children_pages[0]->menu_name = "Miscellaneous";
00980   $root->children_pages[2]->children_pages[7]->children_pages[0]->icon = "images/camera_icon.gif";
00981 
00982   $root->children_pages[2]->children_pages[8] = new menu_tree_node();
00983   $root->children_pages[2]->children_pages[8]->url = "honeymoon/04_05_23.php";
00984   $root->children_pages[2]->children_pages[8]->menu_name = "2004/05/23";
00985         
00986   $root->children_pages[2]->children_pages[9] = new menu_tree_node();
00987   $root->children_pages[2]->children_pages[9]->url = "honeymoon/04_05_24.php";
00988   $root->children_pages[2]->children_pages[9]->menu_name = "2004/05/24";
00989 
00990   $root->children_pages[2]->children_pages[10] = new menu_tree_node();
00991   $root->children_pages[2]->children_pages[10]->url = "honeymoon/04_05_25.php";
00992   $root->children_pages[2]->children_pages[10]->menu_name = "2004/05/25";
00993 
00994   $root->children_pages[2]->children_pages[11] = new menu_tree_node();
00995   $root->children_pages[2]->children_pages[11]->url = "honeymoon/04_05_26.php";
00996   $root->children_pages[2]->children_pages[11]->menu_name = "2004/05/26";
00997         
00998   $root->children_pages[2]->children_pages[12] = new menu_tree_node();
00999   $root->children_pages[2]->children_pages[12]->url = "honeymoon/04_05_27.php";
01000   $root->children_pages[2]->children_pages[12]->menu_name = "2004/05/27";
01001         
01002   $root->children_pages[2]->children_pages[13] = new menu_tree_node();
01003   $root->children_pages[2]->children_pages[13]->url = "honeymoon/04_05_28.php";
01004   $root->children_pages[2]->children_pages[13]->menu_name = "2004/05/28";
01005         
01006   $root->children_pages[2]->children_pages[14] = new menu_tree_node();
01007   $root->children_pages[2]->children_pages[14]->url = "honeymoon/04_05_29.php";
01008   $root->children_pages[2]->children_pages[14]->menu_name = "2004/05/29";
01009         
01010   $root->children_pages[2]->children_pages[15] = new menu_tree_node();
01011   $root->children_pages[2]->children_pages[15]->url = "honeymoon/04_05_30.php";
01012   $root->children_pages[2]->children_pages[15]->menu_name = "2004/05/30";
01013         
01014   $root->children_pages[2]->children_pages[16] = new menu_tree_node();
01015   $root->children_pages[2]->children_pages[16]->url = "honeymoon/04_05_31.php";
01016   $root->children_pages[2]->children_pages[16]->menu_name = "2004/05/31";
01017         
01018   $root->children_pages[2]->children_pages[17] = new menu_tree_node();
01019   $root->children_pages[2]->children_pages[17]->url = "honeymoon/04_06_01.php";
01020   $root->children_pages[2]->children_pages[17]->menu_name = "2004/06/01";
01021         
01022   $root->children_pages[2]->children_pages[18] = new menu_tree_node();
01023   $root->children_pages[2]->children_pages[18]->url = "honeymoon/04_06_02.php";
01024   $root->children_pages[2]->children_pages[18]->menu_name = "2004/06/02";
01025 
01026   $root->children_pages[2]->children_pages[19] = new menu_tree_node();
01027   $root->children_pages[2]->children_pages[19]->url = "honeymoon/planning_index.php";
01028   $root->children_pages[2]->children_pages[19]->menu_name = "Pre-Trip";
01029 
01030   $root->children_pages[2]->children_pages[19]->children_pages[0] = new menu_tree_node();
01031   $root->children_pages[2]->children_pages[19]->children_pages[0]->url = "honeymoon/calendar.php";
01032   $root->children_pages[2]->children_pages[19]->children_pages[0]->menu_name = "Calendar";
01033 
01034   $root->children_pages[2]->children_pages[19]->children_pages[1] = new menu_tree_node();
01035   $root->children_pages[2]->children_pages[19]->children_pages[1]->url = "honeymoon/amsterdam.php";
01036   $root->children_pages[2]->children_pages[19]->children_pages[1]->menu_name = "Amsterdam";
01037 
01038   $root->children_pages[2]->children_pages[19]->children_pages[2] = new menu_tree_node();
01039   $root->children_pages[2]->children_pages[19]->children_pages[2]->url = "honeymoon/germany.php";
01040   $root->children_pages[2]->children_pages[19]->children_pages[2]->menu_name = "Germany";
01041 
01042   $root->children_pages[2]->children_pages[19]->children_pages[3] = new menu_tree_node();
01043   $root->children_pages[2]->children_pages[19]->children_pages[3]->url = "honeymoon/paris.php";
01044   $root->children_pages[2]->children_pages[19]->children_pages[3]->menu_name = "Paris";
01045 
01046   $root->children_pages[2]->children_pages[19]->children_pages[4] = new menu_tree_node();
01047   $root->children_pages[2]->children_pages[19]->children_pages[4]->url = "honeymoon/travel.php";
01048   $root->children_pages[2]->children_pages[19]->children_pages[4]->menu_name = "Trains & Cars";
01049 
01050   $root->children_pages[2]->children_pages[19]->children_pages[5] = new menu_tree_node();
01051   $root->children_pages[2]->children_pages[19]->children_pages[5]->url = "honeymoon/flights.php";
01052   $root->children_pages[2]->children_pages[19]->children_pages[5]->menu_name = "Air Travel";
01053 
01054   $root->children_pages[3] = new menu_tree_node();
01055   $root->children_pages[3]->url = "pets/index.php";
01056   $root->children_pages[3]->menu_name = "Animals";
01057 
01058   $root->children_pages[4] = new menu_tree_node();
01059   $root->children_pages[4]->url = "new.php";
01060   $root->children_pages[4]->menu_name = "What's New?";
01061 
01062   $root->children_pages[5] = new menu_tree_node();
01063   $root->children_pages[5]->url = "displayImage.php";
01064   $root->children_pages[5]->menu_name = "DisplayImage";
01065   $root->children_pages[5]->hidden = true;
01066 
01067   return $root;
01068 }
01069 
01075 function create_tn_link($image_dir, $file_name, $title)
01076 {
01077 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$image_dir/$file_name&imageTitle=$title\">");
01078 print("<img src=\"images/tn_keukenhof1.jpg\" alt=\"\" align=center vspace=5 hspace=10 border=0></a>");
01079 }
01080 
01084 function create_and_print_menu()
01085 {
01086 $root = create_menu_tree();
01087 print_menu($root,$root);
01088 }
01089 
01095 function print_menu($real_root, $root, $num_spaces=0)
01096 {
01097   if($real_root == NULL)
01098         {
01099         echo("print_menu() passed $real_root = NULL ");
01100         return;
01101         }
01102         
01103   if ($root == NULL)
01104     return;
01105   
01106   $main_URL = "http://prestopnik.com/";
01107   $test_string = $GLOBALS["SERVER_NAME"] . $GLOBALS["PATH_INFO"];
01108 
01109   $thisURL = $GLOBALS["PATH_INFO"];
01110 
01111   //echo("Entered print_menu with root: $root->url, thisUrl: $thisURL <br>");
01112   //  echo("Entered print_menu with num_Spaces: $num_spaces <br>");
01113 //      print("<medium>");
01114   for($i = 0; $i < count($root->children_pages); $i++)
01115     {
01116                    display_menu_node($real_root, $root->children_pages[$i],$num_spaces);
01117                          print_menu($real_root, $root->children_pages[$i],$num_spaces+3);               
01118                 }
01119  // print("</medium>");
01120 }
01121 
01126 function getNodesFromURL($root, $url)
01127 {
01128   $nodes = array();
01129         $tmpNodes = array();
01130         
01131          if($root->url == $url)
01132          {
01133             $nodes[0] = new menu_tree_node();
01134                         $nodes[0] = $root;
01135          }      
01136          
01137          for($i = 0; $i < count($root->children_pages); $i++)
01138    {
01139             $tmpNodes = getNodesFromURL($root->children_pages[$i], $url);
01140                         $nodes = array_merge($nodes,$tmpNodes);
01141          }
01142          
01143          return $nodes;
01144 }
01145 
01152 function getNodeFromURL($root, $url)
01153 {
01154  if($root->url == $url)
01155    return $root;
01156  
01157  $tmpNode == NULL;
01158          
01159  for($i = 0; $i < count($root->children_pages); $i++)
01160     {
01161                   if($tmpNode == NULL)                          
01162                                 $tmpNode = getNodeFromURL($root->children_pages[$i], $url);
01163                 }
01164                 
01165  return $tmpNode;
01166 }
01167 
01178 function display_menu_node($root, $node, $num_spaces)
01179 {
01180  $thisURL = $GLOBALS["PATH_INFO"];
01181  $thisURL = substr($thisURL,1); //remove leading slash
01182  $thisNodes = getNodesFromURL($root, $thisURL);
01183  /* print("thisNode = $thisNode->url");
01184  print("thisURL = $thisURL");
01185  */
01186  $toPrint = false;
01187  if( is_parent($root,$node))    
01188    $toPrint = true;
01189         
01190  for($i = 0; $i < count($thisNodes); $i++)
01191  {
01192                  
01193    if( is_sibling($root, $node, $thisNodes[$i]))
01194      $toPrint = true;
01195                          
01196    if (is_child($thisNodes[$i],$node))
01197      $toPrint = true;
01198 
01199   
01200    if ( in_path($node,$root,$thisNodes[$i]))
01201      $toPrint = true;
01202 
01203  
01204  }
01205  if($toPrint)
01206    print_node_link($node,$num_spaces);
01207 }
01208 
01213 function is_parent($node_p, $node)
01214 {
01215   for($i = 0; $i < count($node_p->children_pages); $i++)
01216                   if($node_p->children_pages[$i] == $node)
01217                                         return true;
01218         
01219         return false;
01220 }
01221 
01228 function is_sibling($root, $node1, $node2)
01229 {
01230  $parent1 = get_parent_n($root,$node1);
01231  //print("<br> node1,parent1: $node1->url,$parent1->url <br>");
01232  $parent2 = get_parent_n($root,$node2);
01233  //print("node2,parent2: $node2->url,$parent2->url <br>");
01234         
01235  if($parent1 == $parent2)
01236    return true;
01237  else
01238    return false;
01239 }
01240 
01241 
01246 function is_child($node_p, $node_c)
01247 {
01248   for($i = 0; $i < count($node_p->children_pages); $i++)
01249     if ($node_p->children_pages[$i] == $node_c)
01250       return true;
01251   
01252   return false;
01253 }
01254 
01255 
01260 function is_ancestor($node, $node_a)
01261 {
01262  return is_descendent($node_a, $node);
01263 }
01264 
01269 function is_descendent($node, $node_d)
01270 {
01271  if($node == NULL)
01272         return false;
01273 
01274  if($node_d == NULL)
01275   return false; 
01276         
01277  if ($node == $node_d)
01278         return true;
01279 
01280  if(is_child($node,$node_d))
01281                 return true;            
01282 
01283  for($i = 0; $i < count($node->children_pages); $i++)
01284                                 if( is_descendent($node->children_pages[$i], $node_d))
01285                                    return true;
01286 
01287  return false;
01288 }
01289 
01290 
01296 function in_path($node, $node_top, $node_bottom)
01297 {
01298  return (is_descendent($node,$node_bottom) && is_ancestor($node,$node_top));
01299 }
01300 
01308 function print_node_link($node,$num_spaces)
01309 {
01310   if( $node == NULL)
01311     return;
01312 
01313   $url = "http://" . $GLOBALS["SERVER_NAME"] . "/" . $node->url;
01314 
01315   // echo "for $node->url: ";
01316   //echo "hidden is: ".($node->hidden ? "true":"false");
01317   //echo " <br> ";
01318   if ($node->hidden == false)
01319     {
01320       echo("<$node->font_size>");
01321       for($j=0; $j<$num_spaces; $j++)
01322         echo("&nbsp;");
01323       print_unfinished_link($node->menu_name, $url);
01324       echo("</$node->font_size>");
01325       echo("</a>");
01326       if ($node->icon != "none")
01327         echo ("<img src=\"http://prestopnik.com/$node->icon\">");
01328       
01329       echo("<br>\n");
01330     }  
01331 }
01332 
01340 function print_unfinished_link($name, $url)
01341 {
01342   $test_string = "http://" . $GLOBALS["SERVER_NAME"] . $GLOBALS["PATH_INFO"];
01343   if($url == $test_string)
01344     echo("$name");
01345   else
01346     {
01347       $trimmed_name = ltrim($name);
01348       $len1 = strlen($name);
01349       $len2 = strlen($trimmed_name);
01350       for($i=0; $i<($len1-$len2); $i++)
01351         echo("&nbsp;");
01352       echo("<a href=\"$url\">$trimmed_name");
01353     }
01354 }
01355 
01363 function print_link($name, $url)
01364 {
01365   $test_string = "http://" . $GLOBALS["SERVER_NAME"] . $GLOBALS["PATH_INFO"];
01366   if($url == $test_string)
01367     echo("$name");
01368   else
01369     {
01370       $trimmed_name = ltrim($name);
01371       $len1 = strlen($name);
01372       $len2 = strlen($trimmed_name);
01373       for($i=0; $i<($len1-$len2); $i++)
01374         echo("&nbsp;");
01375       echo("<a href=\"$url\">$trimmed_name</a>");
01376     }
01377 }
01378 
01382 function get_this_parent($root)
01383 {
01384     $thisPage = $GLOBALS["PATH_INFO"];
01385     $thisPage = substr($thisPage,1); //remove leading slash
01386   return get_parent($root, $thisPage);
01387 }
01388 
01392 function print_wedding_gallery_top()
01393 {
01394 print("<table width=800>");
01395 }
01396 
01406 function print_wed_gal_4_row($num1, $num2, $num3, $num4)
01407 {
01408   print_wedding_gallery_4_row("/wedding/images/jp$num1.jpg","$num1","images/tn_jp$num1.jpg",
01409                               "/wedding/images/jp$num2.jpg","$num2","images/tn_jp$num2.jpg",
01410                               "/wedding/images/jp$num3.jpg","$num3","images/tn_jp$num3.jpg",
01411                               "/wedding/images/jp$num4.jpg","$num4","images/tn_jp$num4.jpg");   
01412 }
01413 
01417 function print_wedding_gallery_4_row($filename1, $imageTitle1, $tn_filename1, $filename2, $imageTitle2, $tn_filename2, $filename3, $imageTitle3, $tn_filename3, $filename4, $imageTitle4, $tn_filename4 )
01418 {
01419 print("<tr align=center>\n");
01420 
01421 print("<td>\n");
01422 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename1&imageTitle=$imageTitle1\">\n");
01423 print("<img src=\"$tn_filename1\" align=center vspace=12 hspace=15 border=0></a>\n");
01424 
01425 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename2&imageTitle=$imageTitle2\">\n");
01426 print("<img src=\"$tn_filename2\" align=center vspace=12 hspace=15 border=0></a>\n");
01427 
01428 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename3&imageTitle=$imageTitle3\">\n");
01429 print("<img src=\"$tn_filename3\" align=center vspace=12 hspace=15 border=0></a>\n");
01430 
01431 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename4&imageTitle=$imageTitle4\">\n");
01432 print("<img src=\"$tn_filename4\" align=center vspace=12 hspace=15 border=0></a>\n");
01433 print("</td>\n");
01434 
01435 print("</tr>\n\n");
01436 }
01437 
01449 function print_wed_gal_6_row($num1, $num2, $num3, $num4, $num5, $num6)
01450 {
01451   print_wedding_gallery_6_row("/wedding/images/jp$num1.jpg","$num1","images/tn_jp$num1.jpg",
01452                               "/wedding/images/jp$num2.jpg","$num2","images/tn_jp$num2.jpg",
01453                               "/wedding/images/jp$num3.jpg","$num3","images/tn_jp$num3.jpg",
01454                               "/wedding/images/jp$num4.jpg","$num4","images/tn_jp$num4.jpg",
01455                               "/wedding/images/jp$num5.jpg","$num5","images/tn_jp$num5.jpg",
01456                               "/wedding/images/jp$num6.jpg","$num6","images/tn_jp$num6.jpg");   
01457 }
01458 
01459 
01463 function print_wedding_gallery_6_row($filename1, $imageTitle1, $tn_filename1, $filename2, $imageTitle2, $tn_filename2, $filename3, $imageTitle3, $tn_filename3, $filename4, $imageTitle4, $tn_filename4, $filename5, $imageTitle5, $tn_filename5, $filename6, $imageTitle6, $tn_filename6 )
01464 {
01465 print("<tr align=center>\n");
01466 
01467 print("<td>\n");
01468 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename1&imageTitle=$imageTitle1\">\n");
01469 print("<img src=\"$tn_filename1\" align=center vspace=12 hspace=9 border=0></a>\n");
01470 
01471 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename2&imageTitle=$imageTitle2\">\n");
01472 print("<img src=\"$tn_filename2\" align=center vspace=12 hspace=9 border=0></a>\n");
01473 
01474 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename3&imageTitle=$imageTitle3\">\n");
01475 print("<img src=\"$tn_filename3\" align=center vspace=12 hspace=9 border=0></a>\n");
01476 
01477 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename4&imageTitle=$imageTitle4\">\n");
01478 print("<img src=\"$tn_filename4\" align=center vspace=12 hspace=9 border=0></a>\n");
01479 
01480 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename5&imageTitle=$imageTitle5\">\n");
01481 print("<img src=\"$tn_filename5\" align=center vspace=12 hspace=9 border=0></a>\n");
01482 
01483 print("<a href=\"http://prestopnik.com/displayImage.php?fileName=$filename6&imageTitle=$imageTitle6\">\n");
01484 print("<img src=\"$tn_filename6\" align=center vspace=12 hspace=9 border=0></a>\n");
01485 print("</td>\n");
01486 
01487 print("</tr>\n\n");
01488 }
01489 
01493 function print_wedding_gallery_bottom()
01494 {
01495 }
01496 
01500 function load_and_print_menu($file_name)
01501 {
01502 $root = load_tree($file_name);
01503 determine_print_values($root,true);
01504 smart_print_menu($root,$root);
01505 //print_menu($root,$root);
01506 }
01507 
01519 function determine_print_values(&$root, $set_children)
01520 {
01521  $thisURL = $GLOBALS["PATH_INFO"];
01522  $thisURL = substr($thisURL,1); //remove leading slash
01523  
01524  if ($thisURL == $root->url)
01525    {
01526      //echo ("found node ". $root->url ."=". $thisURL ."<br>");
01527      //$root->print_value = 1;
01528      for($k = 0; $k < count($root->children_pages); $k++)
01529        {
01530          $root->children_pages[$k]->print_value = 1;
01531          //echo ("1Set ". $root->children_pages[$k]->url ." = 1<br>");
01532          //determine_print_values($root->children_pages[$k],false);
01533        }                
01534      $root->print_value = 1;
01535      //echo ("Set node".$root->url ."=1<br>");
01536    }
01537  else
01538    for($i = 0; $i < count($root->children_pages); $i++)
01539      {
01540        if ($set_children)
01541          {
01542            $root->children_pages[$i]->print_value = 2;
01543            //echo ("2Set ". $root->children_pages[$i]->url ."= 2<br>");
01544          }
01545        
01546        determine_print_values($root->children_pages[$i], false);
01547        if($root->children_pages[$i]->print_value > 0)
01548          {
01549            //echo("found a kid: ". $root->children_pages[$i]->url . "with pv: ". $root->children_pages[$i]->print_value. "<br>");
01550            //echo("type = ". gettype($root->children_pages[$i]->print_value));
01551            $root->print_value = ($root->children_pages[$i]->print_value) + 1;
01552            //echo ("3Set $root->url = " . $root->print_value . "<br>");
01553            if ($root->children_pages[$i]->print_value == 1)
01554              for($j = 0; $j < count($root->children_pages); $j++)
01555                {
01556                  $root->children_pages[$j]->print_value = 2;
01557                  //echo ("4Set ". $root->children_pages[$j]->url ." = 1<br>");
01558                } 
01559          }         
01560      }
01561 }
01562 
01569 function smart_print_menu($real_root, $root, $num_spaces=0)
01570 {
01571   if($real_root == NULL)
01572     {
01573       echo("print_menu() passed $real_root = NULL ");
01574       return;
01575     }
01576   
01577   if ($root == NULL)
01578     return;
01579   
01580   $main_URL = "http://prestopnik.com/";
01581   $test_string = $GLOBALS["SERVER_NAME"] . $GLOBALS["PATH_INFO"];
01582   
01583   $thisURL = $GLOBALS["PATH_INFO"];
01584   
01585   //echo("Entered print_menu with root: $root->url, thisUrl: $thisURL <br>");
01586   //  echo("Entered print_menu with num_Spaces: $num_spaces <br>");
01587   
01588   //echo("name: $root->menu_name  pv: $root->print_value<br>"); 
01589   if($root->print_value > 0)
01590     print_node_link($root,$num_spaces);
01591   
01592   for($i = 0; $i < count($root->children_pages); $i++)
01593     smart_print_menu($real_root, $root->children_pages[$i],$num_spaces+2);              
01594 }
01595 
01596 ?>
01597 
Last modified: August 30 2018 23:38