//var nBGLast = 0;

function drawNavBar () {
   var ttHTML = "";
   ttHTML += "<table border='0' cellspacing='5' cellpadding='0' width='100%'>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/tthome.htm'>Home</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttactivities.htm'>Activities</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttitinerary.htm'>Itinerary</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttphotogallery.htm'>Photo Gallery</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttculture.htm'>Fiji Culture</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvideo.htm'>Video</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/\_private\\tttravelagents.htm'>Travel Agents</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/tthoneymoon.htm'>Honeymoons</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttbooking.htm'>Booking</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttguestfeedback.htm'>Guest Feedback</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttcontactus.htm'>Contact Us</a></td>";
   ttHTML += "</tr>";
   ttHTML += "</table>";

   return ttHTML;
}

function drawPrivateNavBar () {
   var ttHTML = "";
   ttHTML += "<table border='0' cellspacing='5' cellpadding='0' width='100%'>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/tthome.htm'>Home</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttactivities.htm'>Activities</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttitinerary.htm'>Itinerary</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttphotogallery.htm'>Photo Gallery</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttculture.htm'>Fiji Culture</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvideo.htm'>Video</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/_private/tttravelagents.htm'>Travel Agents</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/tthoneymoon.htm'>Honeymoons</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttbooking.htm'>Booking</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttguestfeedback.htm'>Guest Feedback</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttcontactus.htm'>Contact Us</a></td>";
   ttHTML += "</tr>";
   ttHTML += "</table>";

   return ttHTML;
}

function drawNMNavBar () {
   var ttHTML = "";
   ttHTML += "<table border='0' cellspacing='5' cellpadding='0' width='100%'>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/nm_tthome.htm'>Home</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/nm_ttactivities.htm'>Activities</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/nm_ttitinerary.htm'>Itinerary</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/nm_ttphotogallery.htm'>Photo Gallery</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/nm_ttculture.htm'>Fiji Culture</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/nm_ttvideo.htm'>Video</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/nm_tthoneymoon.htm'>Honeymoons</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/nm_ttguestfeedback.htm'>Guest Feedback</a></td>";
   ttHTML += "</tr>";
   ttHTML += "</table>";

   return ttHTML;
}

function drawLogo() {
   var ttHTML = "";
   ttHTML += "<IMG SRC='images/logo_new_tr.gif' WIDTH='100' HEIGHT='78' BORDER='0'>";
   return ttHTML;
}

function drawShip() {
   var ttHTML = "";
   ttHTML += "<IMG SRC='images/tuitai_cartoon2.jpg' WIDTH='100' HEIGHT='75' BORDER='0'>";
   return ttHTML;
}

function drawPrivateLogo() {
   var ttHTML = "";
   ttHTML += "<IMG SRC='../images/logo_new.gif' WIDTH='100' HEIGHT='78' BORDER='0'>";
   return ttHTML;
}

function showLargeImage(ttImgName, ttWindowName, ttWindowProps) {
   var ttWindowHeight;
   var ttWindowWidth;
   var ttImageWidth;
   var ttImageHeight;
   var ttNewWindowProps;

   if (ttWindowProps == 'tall') {
      ttWindowHeight = 670;
      ttWindowWidth = 520;
      ttImageWidth = 490;
      ttImageHeight = 550;
   }
   else if (ttWindowProps == 'wide') {
      ttWindowHeight = 570;
      ttWindowWidth = 770;
      ttImageWidth = 740;
      ttImageHeight = 480;   
   }

   ttNewWindowProps = "width=";
   ttNewWindowProps += ttWindowWidth;
   ttNewWindowProps += ",height=";
   ttNewWindowProps += ttWindowHeight;

   ttWindow = window.open("", "", ttNewWindowProps);
   var ttHTML = "<HTML><HEAD><TITLE>";
   ttHTML += ttWindowName;
   ttHTML += "</TITLE></HEAD>\n";
   ttHTML += "<style type='text/css'>\n<!--\n@import url(ttac_style.css);\n-->\n</style>";
   ttHTML += "<style type='text/css'>\n<!--\n@import url(../ttac_style.css);\n-->\n</style>";
   ttHTML += "<BODY>\n<center>\n<DIV class='ttPhotoGalleryImagePageTitle'>"
   ttHTML += ttWindowName;
   ttHTML += "</DIV>\n<a href='javascript: window.close();'>\nClose window\n</a>\n<table class='ttPhotoGalleryImagePageTable'>\n<tr>\n<td>";

   ttHTML += "\n<IMG SRC='";
   ttHTML += ttImgName;
   ttHTML += "' WIDTH='";
   ttHTML += ttImageWidth;
   ttHTML += "' HEIGHT='"
   ttHTML += ttImageHeight;
   ttHTML += "'>\n";
   ttHTML += "</td></tr></table></center></BODY></HTML>";

   ttWindow.document.write(ttHTML);
   ttWindow.document.close();
}

function showSmallImage(ttImgName, ttWindowName, ttWindowProps) {
   var ttWindowHeight;
   var ttWindowWidth;
   var ttImageWidth;
   var ttImageHeight;
   var ttNewWindowProps;

   if (ttWindowProps == 'tall') {
      ttWindowHeight = 460;
      ttWindowWidth = 280;
      ttImageWidth = 250;
      ttImageHeight = 370;
   }
   else if (ttWindowProps == 'wide') {
      ttWindowHeight = 340;
      ttWindowWidth = 400;
      ttImageWidth = 370;
      ttImageHeight = 250;   
   }

   ttNewWindowProps = "width=";
   ttNewWindowProps += ttWindowWidth;
   ttNewWindowProps += ",height=";
   ttNewWindowProps += ttWindowHeight;

   ttWindow = window.open("", "", ttNewWindowProps);
   var ttHTML = "<HTML><HEAD><TITLE>";
   ttHTML += ttWindowName;
   ttHTML += "</TITLE></HEAD>\n";
   ttHTML += "<style type='text/css'>\n<!--\n@import url(ttac_style.css);\n-->\n</style>";
   ttHTML += "<style type='text/css'>\n<!--\n@import url(../ttac_style.css);\n-->\n</style>";
   ttHTML += "<BODY>\n<center>\n<DIV class='ttPhotoGalleryImagePageTitle'>"
   ttHTML += ttWindowName;
   ttHTML += "</DIV>\n<a href='javascript: window.close();'>\nClose window\n</a>\n<table class='ttPhotoGalleryImagePageTable'>\n<tr>\n<td>";

   ttHTML += "\n<IMG SRC='";
   ttHTML += ttImgName;
   ttHTML += "' WIDTH='";
   ttHTML += ttImageWidth;
   ttHTML += "' HEIGHT='"
   ttHTML += ttImageHeight;
   ttHTML += "'>\n";
   ttHTML += "</td></tr></table></center></BODY></HTML>";

   ttWindow.document.write(ttHTML);
   ttWindow.document.close();
}

function drawFooter() {
   var ttHTML = "";
   ttHTML +=    ttHTML += "Phone: +679-999-6375 | email: <a href='mailto:info@tuitai.com'>info@tuitai.com</a>";
   ttHTML += " | Phone USA: (877) 313-1464";
   return ttHTML;
}

function drawMatanaFooter() {
   var ttHTML = "";
   ttHTML +=    ttHTML += "Phone: +679-999-6375 | email: <a href='mailto:tige@tuitai.com'>tige@tuitai.com</a>";
   ttHTML += " | Phone USA: (505) 989-4760";
   return ttHTML;
}
function showVideo(url, params) {
   ttVideoWindow = window.open(url, "", params);
}

function drawAgentsNavBar () {
   var ttHTML = "";
   ttHTML += "<table border='0' cellspacing='0' cellpadding='5' width='100%'>";
   ttHTML += "<tr align=\"center\">";
   ttHTML += "<td><a class='ttAgentsNavBarText' href='javascript: getAgentsContent(\"rates\");'>Rates</a></td>";
   ttHTML += "<td><a class='ttAgentsNavBarText' href='#' onclick='getAgentsContent(\"itinerary\");'>Itinerary</a></td>";
   ttHTML += "<td><a class='ttAgentsNavBarText' href='#' onclick='getAgentsContent(\"availability\");'>Availability</a></td>";
   ttHTML += "<td><a class='ttAgentsNavBarText' href='#' onclick='getAgentsContent(\"accommodations\");'>Accommodations</a></td>";
   ttHTML += "<td><a class='ttAgentsNavBarText' href='#' onclick='getAgentsContent(\"downloads\");'>Downloads</a></td>";
   ttHTML += "</tr>";
   ttHTML += "</table>";

   return ttHTML;
}

function getAgentsContent(ttSection) {
   var ttHTML = "";

   if (ttSection == 'rates') {
	ttHTML += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
	ttHTML += "<tr>";
	ttHTML += "<td><b>4-Night Adventure Cruise</b></td>";
	ttHTML += "</tr>";
	ttHTML += "<td></td>";
	ttHTML += "<td>Cabin for Two</td>";
	ttHTML += "<td>Single Occupant</td>";
	ttHTML += "</tr>"
	ttHTML += "<tr>";
	ttHTML += "<td align=\"left\">&nbspAdventure Lodge</td><td>N/A</td><td>FJD $935</td>";
	ttHTML += "</tr>";
	ttHTML += "<tr>";
	ttHTML += "<td align=\"left\">&nbspAdventure Cabin</td><td>FJD $2,300</td><td>FJD $1,740</td>";
	ttHTML += "</tr>";
	ttHTML += "<tr>";
	ttHTML += "<td align=\"left\">&nbspLuxury Cabin</td><td>FJD $3,580</td><td>FJD $2,710</td>";
	ttHTML += "</tr>";
	ttHTML += "</table>";
	ttHTML += "<br>";
	ttHTML += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
	ttHTML += "<tr>";
	ttHTML += "<td><b>3-Night Adventure Cruise</b></td>";
	ttHTML += "</tr>";
	ttHTML += "<tr>";
	ttHTML += "<td></td>";
	ttHTML += "<td>Cabin for Two</td>";
	ttHTML += "<td>Single Occupant</td>";
	ttHTML += "</tr>";
	ttHTML += "<tr>";
	ttHTML += "<td align=\"left\">&nbspAdventure Lodge</td><td>N/A</td><td>FJD $750</td>";
	ttHTML += "</tr>";
	ttHTML += "<tr>";
	ttHTML += "<td align=\"left\">&nbspAdventure Cabin</td><td>FJD $1,840</td><td>FJD $1,380</td>";
	ttHTML += "</tr>";
	ttHTML += "<tr>";
	ttHTML += "<td align=\"left\">&nbspLuxury Cabin</td><td>FJD $3,070</td><td>FJD $2,300</td>";
	ttHTML += "</tr>";
	ttHTML += "</table>";
	ttHTML += "<br>";
	//ttHTML += "<br><br>";
	ttHTML += "Rates include all activities, meals and VAT tax.  Scuba-diving packages ";
	ttHTML += "and bar purchases are extra.  The 4-night Adventure Cruise departs Savusavu, Fiji";
	ttHTML += " on Tuesday and returns Saturday.  The 3-night cruise departs Taveuni on Wednesday, "; 	ttHTML += "returning to Savusavu Saturday.<br><br><br>";
   }
   else if (ttSection == 'availability') {
      ttHTML += "<table border=\"0\" cellspacing=\"5\" cellpadding=\"5\" width=\"100%\" cols=\"1\"><tr><td>Last Modified: ";
	ttHTML += printLastModified();
// Comment from Tige
// Roberta, paste the updated text below here, select after the double quote in the next line
	ttHTML +="</td></tr></table><font size=2><table cellspacing=\"0\" cellpadding=\"5\" width=\"75%\"><!-- header row --><tr align=\"center\"><td align=\"left\" width=\"150\">Date</td><td>Luxury Cabin</td><td>Adventure Cabin</td><td>Adventure Lodge</td></tr><!-- January 20, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">January 20, 2004</td><td>AVAILABLE</td><td>5</td><td>6</td></tr></font><!-- January 27, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">January 27, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- February 3, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">February 3, 2004</td><td>SOLD</td><td>5</td><td>8</td></tr></font><!-- February 10, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">February 10, 2004</td><td>AVAILABLE</td><td>5</td><td>8</td></tr></font><!-- February 17, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">February 17, 2004</td><td>AVAILABLE</td><td>3</td><td>8</td></tr></font><!-- February 24, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">February 24, 2004</td><td>AVAILABLE</td><td>3</td><td>8</td></tr></font><!-- March 2, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">March 2, 2004</td><td>AVAILABLE</td><td>4</td><td>7</td></tr></font><!-- March 9, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">March 9, 2004</td><td>AVAILABLE</td><td>4</td><td>8</td></tr></font><!-- March 16, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">March 16, 2004</td><td>AVAILABLE</td><td>5</td><td>8</td></tr></font><!-- March 23, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">March 23, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- March 30, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">March 30, 2004</td><td>AVAILABLE</td><td>5</td><td>8</td></tr></font><!-- April 6, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">April 6, 2004</td><td>SOLD</td><td>3</td><td>4</td></tr></font><!-- April 13, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">April 13, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- April 20, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">April 20, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- April 27, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">April 27, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- May 4, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">May 4, 2004</td><td>SOLD</td><td>3</td><td>8</td></tr></font><!-- May 11, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">May 11, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- May 18, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">May 18, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- May 25, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">May 25, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- June 1, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">June 1, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- June 8, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">June 8, 2004</td><td>AVAILABLE</td><td>4</td><td>6</td></tr></font><!-- June 15, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">June 15, 2004</td><td>AVAILABLE</td><td>5</td><td>8</td></tr></font><!-- June 22, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">June 22, 2004</td><td>AVAILABLE</td><td>5</td><td>8</td></tr></font><!-- June 29, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">June 29, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font><!-- July 6, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">July 6, 2004</td><td>AVAILABLE</td><td>4</td><td>8</td></tr></font><!-- July 13, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">July 13, 2004</td><td>AVAILABLE</td><td>5</td><td>8</td></tr></font><!-- July 20, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">July 20, 2004</td><td>AVAILABLE</td><td>5</td><td>8</td></tr></font><!-- July 27, 2004 --><tr align=\"center\"><td align=\"left\" width=\"150\">July 27, 2004</td><td>SOLD</td><td>0</td><td>0</td></tr></font></table><br><br>";
// Comment from Tige
   }
   else if (ttSection == 'accommodations') {
	ttHTML += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbspLUXURY CABIN - One Available</td></tr>";
	ttHTML += "<tr align=\"left\"><td>Relax in a beautiful cabin made from local hardwoods and traditional furnishings.  The cabin offers complete privacy with its own bathroom, air conditioning unit, and queen-size bed.</td></tr>";
	ttHTML += "<tr><td><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbspADVENTURE CABINS - Five Available</td></tr>";
	ttHTML += "<tr align=\"left\"><td>Each private cabin offers a double-bed that sleeps two, an overhead storage area, air-conditioning and a set of private lockers.  A single-bed may be added to the cabin for those traveling in groups of three.<br></td></tr>";
	ttHTML += "<tr><td><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbspADVENTURE LODGE - Eight Available</td></tr>";
	ttHTML += "<tr align=\"left\"><td>The air-conditioned Adventure Lodge is on the main deck and contains 8 \"Seafari Style\" bunk beds.  Each passenger has a private locker and receives linen and towel service.</td></tr>";
	ttHTML += "</table>";   
	ttHTML += "<br><br>";   
   }
   else if (ttSection == 'itinerary') {
	ttHTML += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbsp<b>Where Does the Trip Begin?</b></td></tr>";
	ttHTML += "<tr align=\"left\"><td>The 4-night Adventure Cruise begins every Tuesday in Savusavu, on the island of Vanua Levu.  A representative from Tui Tai Adventure Cruises will meet you at the airport and arrange for transportation to the boat.<br><br>Guests for the 3-night Adventure Cruise will join the Tui Tai Wednesday morning (at 9:00am) on the island of Taveuni.  Local transportation will be arranged to bring guests to the Tui Tai, which will be anchored on the remote side of the island, near Navakacoa.</td></tr>";
	ttHTML += "<tr><td><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbsp<b>Island Destinations</b></td></tr>";
	ttHTML += "<tr align=\"left\"><td>Vanua Levu: If you join the 4-night Adventure Cruise in Savusavu, you will spend your first day around Savusavu Bay.  You can choose between a tropical river kayak trip, a paddle around the nearby island and black pearl farm, or moderate biking and hiking treks.  Savusavu is known locally (and is kept a secret internationally...) as the \"Hidden Paradise,\" for it's small-town charm, natural beauty and variety of adventure activities.<br><br>Taveuni: On the \"Garden Island of Fiji,\" you can ride bikes, hike to a set of three majestic waterfalls, kayak the coastline, or visit a protected marine park where great snorkeling awaits.  Taveuni is also home to \"Rainbow Reef\" and \"The Great White Wall\" dive-sites, well-known around the world as top scuba-diving destinations.<br><br>Kioa: It is a cultural highlight to visit the only village on this beautiful island.  You will have the chance to buy traditional mats and woven baskets directly from the villagers who made them.  The handicrafts here are unique because the native islanders originate from Tuvalu and are of Polynesian ancestry.  The protected lagoons and bays of Kioa provide amazing kayaking and snorkeling opportunities. You will likely cross paths with the local men in their carved outriggers, fishing for the village.<br><br>Koro:  This is a perfect destination for guests focused on adventure. It\'s a tropical playground offering waterfall hikes, treks to historic ruins, single-track bike rides along the coast, and remote beaches for relaxation. In addition to colorful parrots, our guides will also point out the medicinal plants and trees along the way.  If you are looking to get wet, the protected bays offer superb kayaking, swimming and snorkeling.<br></td></tr>";
	ttHTML += "<tr><td><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbspActual Itinerary</td></tr>";
	ttHTML += "<tr align=\"left\"><td>We do not enforce a set schedule for our guests.  Each guest can do as much or as little as they want, whenever they want.  The itinerary below is a sample of what a guest can expect to do.  In reality, each guest helps us develop the exact itinerary that they want, so activity times are approximate.</td></tr>";
	ttHTML += "<tr><td><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbsp<b>Day 1 Tuesday</b></td></tr>";
	ttHTML += "<tr align=\"left\"><td>9:00am - Tui Tai is docked at the government wharf in Savusavu, ready for guests to check in.<br>11:00am - Small boats depart for river kayak excursion across Savusavu Bay<br>12:30pm - Lunch, packed lunches on the beach/river bank<br>3:00pm - Return in small boats from river kayaking<br>5:00pm - Tui Tai departs from wharf, to protected anchorage in Savusavu Bay<br>6:00pm - Introduction of crew and safety demonstration<br>6:30pm - Dinner<br>7:30pm - Welcoming kava session, guests introduce themselves to the crew<br>8:30pm - Guests can sing-along and drink kava, or hand-line fish<br>11:00pm - Tui Tai sets sail for Taveuni<br><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbsp<b>Day 2 Wednesday</b></td></tr>";
	ttHTML += "<tr align=\"left\"><td>7:00am - Tui Tai arrives and anchors in Navakacoa harbor<br>8:00am - Breakfast<br>9:00am - Guests and guides depart for Bouma Falls or Lavena Coastal walk (choice of transport or riding mountain bikes)<br>12:30pm - Lunch, packed lunches served at Bouma Falls picnic area or at beach in Lavena<br>2:30pm - Return to Tui Tai<br>3:00pm - Tui Tai departs Taveuni for Kioa<br>5:30pm - Tui Tai arrives in Kioa<br>6:30pm - Dinner<br>8:30pm - Guests can sing-along and drink kava, or hand-line fish<br>Overnight in Kioa<br><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbsp<b>Day 3 Thursday</b></td></tr>";
	ttHTML += "<tr align=\"left\"><td>8:00am - Breakfast<br>9:00am - Tour of village in Kioa, visit handicraft market<br>12:30pm - Lunch served on board<br>1:30pm - Kayaking around Kioa, snorkeling the reef<br>3:00pm - Return to Tui Tai<br>3:30pm - Tui Tai departs for Vuna Point in Taveuni, via Somosomo Strait<br>6:00pm - Tui Tai anchors at Vuna Point.<br>6:30pm - Dinner<br>8:30pm - Guests can sing-along and drink kava, or hand-line fish<br>Overnight at Vuna Pt.<br><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbsp<b>Day 4 Friday</b></td></tr>";
	ttHTML += "<tr align=\"left\"><td>5:00am - Tui Tai departs for Koro<br>8:00am - Tui Tai arrives in Koro<br>8:30am - Breakfast<br>9:30am - coastal-rainforest interpretive hikes<br>12:00pm - Lunch served on board<br>1:00pm - Kayaking, snorkeling<br>3:30pm - Crew and guests play beach volleyball<br>6:00pm - Dinner, Lovo on beach<br>8:30pm - Guests can sing-along and drink kava, or hand-line fish<br>Overnight in Koro<br><br></td></tr>";
	ttHTML += "<tr align=\"left\"><td>&nbsp&nbsp<b>Day 5 Saturday</b></td></tr>";
	ttHTML += "<tr align=\"left\"><td>4:00am - Tui Tai departs for Savusavu<br>7:00am - Tui Tai arrives in Savusavu<br>7:30am - Breakfast<br>8:00am - Farewell singing of \"Isa Lei\"<br><br></td></tr>";
	ttHTML += "</table>";   
	ttHTML += "<br>";   
   }
   else if (ttSection == 'downloads') {
	ttHTML += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
	ttHTML += "<tr>";
	ttHTML += "<td colspan=\"2\">Click on an image below, a larger version will appear in a popup window.  Right-click on the image to download the image file (.jpg format).<br><br></td>";
	ttHTML += "</tr>";
	ttHTML += "<tr>";
	ttHTML += "<td align=\"center\">";
      ttHTML += "<a href='javascript:showDownloadImage(\"../images/ttta_itinerary.jpg\", \"355\", \"325\")'><img src=\"../images/ttta_itinerary_th.jpg\" height=\"100\" width=\"100\"></a>";
	ttHTML += "</td>";
	ttHTML += "<td align=\"center\">";
      ttHTML += "<a href='javascript:showDownloadImage(\"../images/ttta_deckplan.jpg\", \"355\", \"325\")'><img src=\"../images/ttta_deckplan_th.jpg\" height=\"100\" width=\"100\"></a>";
	ttHTML += "</td>";
	ttHTML += "</tr>";
	ttHTML += "</table>";   
	ttHTML += "<br><br><br><br>";   
   }
   else {
      ttHTML += ttSection;
      ttHTML += "<br>other TA section";
   }

   if (window.document.all) {
      window.document.all.ttAgentsArea.innerHTML = ttHTML;
   }
   else if (window.document.getElementById) {
      window.document.getElementById('ttAgentsArea').innerHTML = ttHTML;
   }
}

function getBrowserLoadIntMap() {

	getNextMatanaBackground();

   if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3)) {
   	document.src='mat_int_mac.htm'
   }

	document.src='crap.htm'
	window.reload();
}

function getNextMatanaBackground() {
   var nBackgroundCounter = Math.round(Math.random()*7);
   var ttBgImage = "";

   nBackgroundCounter = Math.round(Math.random()*7);

   nBackgroundCounter = 4;

   if (nBackgroundCounter == 0) {
	ttBgImage = "images/backgrounds/ttbgimage_bilibili.jpg";
   }
   else if (nBackgroundCounter == 1) {
	ttBgImage = "images/backgrounds/ttbgimage_bush2.jpg";
   }
   else if (nBackgroundCounter == 2) {
	ttBgImage = "images/backgrounds/ttbgimage_kayaking.jpg";
   }
   else if (nBackgroundCounter == 3) {
	ttBgImage = "images/backgrounds/ttbgimage_kfisher.jpg";
   }
   else if (nBackgroundCounter == 4) {
	ttBgImage = "images/backgrounds/ttbgimage_koro2.jpg";
   }
   else if (nBackgroundCounter == 5) {
	ttBgImage = "images/backgrounds/ttbgimage_koro.jpg";
   }
   else if (nBackgroundCounter == 6) {
	ttBgImage = "images/backgrounds/ttbgimage_sunset2.jpg";
   }
   else if (nBackgroundCounter == 7) {
	ttBgImage = "images/backgrounds/ttbgimage_waterfall2.jpg";
   }
   else {
	ttBgImage = "images/backgrounds/ttbgimage_sunset2.jpg";
   }

   if (window.document.all) {
      window.document.body.background = ttBgImage;
      //window.document.body.backgroundRepeat = "no-repeat";
      window.document.body.bgProperties = "fixed";
   }
   else if (window.document.getElementById) {
      window.document.body.background = ttBgImage;
      //window.document.body.backgroundRepeat = "no-repeat";
      window.document.body.bgProperties = "fixed";
   }

}

function getNextBackground() {
   var nBackgroundCounter = Math.round(Math.random()*8);
   var ttBgImage = "";
/*
   while (nBGLast != null && nBackgroundCounter == nBGLast) {
      nBackgroundCounter = Math.round(Math.random()*8);
   }

   nBGLast = nBackgroundCounter;
   alert (nBGLast);
*/

   //nBackgroundCounter = 0;

   if (nBackgroundCounter == 0) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_koro2.jpg";
   }
   else if (nBackgroundCounter == 1) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_bush2.jpg";
   }
   else if (nBackgroundCounter == 2) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_kayaking.jpg";
   }
   else if (nBackgroundCounter == 3) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_kayaking2.jpg";
   }
   else if (nBackgroundCounter == 4) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_sunset2.jpg";
   }
   else if (nBackgroundCounter == 5) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_kfisher.jpg";
   }
   else if (nBackgroundCounter == 6) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_outrigger2.jpg";
   }
   else if (nBackgroundCounter == 7) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_crew.jpg";
   }
   else if (nBackgroundCounter == 8) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_waterfall2.jpg";
   }
   else {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_bilibili.jpg";
   }

   if (window.document.all) {
      window.document.body.background = ttBgImage;
      //window.document.body.backgroundRepeat = "no-repeat";
      window.document.body.bgProperties = "fixed";
   }
   else if (window.document.getElementById) {
      window.document.body.background = ttBgImage;
      //window.document.body.backgroundRepeat = "no-repeat";
      window.document.body.bgProperties = "fixed";
   }

   //alert (ttBgImage);
  // return ttBgImage;   

}

function getNextBackgroundPrivate() {
   var nBackgroundCounter = Math.round(Math.random()*8);
   var ttBgImage = "";
   if (nBackgroundCounter == 0) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_bilibili.jpg";
   }
   else if (nBackgroundCounter == 1) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_bush2.jpg";
   }
   else if (nBackgroundCounter == 2) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_kayaking.jpg";
   }
   else if (nBackgroundCounter == 3) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_kayaking2.jpg";
   }
   else if (nBackgroundCounter == 4) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_sunset2.jpg";
   }
   else if (nBackgroundCounter == 5) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_kfisher.jpg";
   }
   else if (nBackgroundCounter == 6) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_outrigger2.jpg";
   }
   else if (nBackgroundCounter == 7) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_crew.jpg";
   }
   else if (nBackgroundCounter == 8) {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_waterfall2.jpg";
   }
   else {
	ttBgImage = "http://www.tuitai.com/images/backgrounds/ttbgimage_bilibili.jpg";
   }

   if (window.document.all) {
      window.document.body.background = ttBgImage;
      //window.document.body.backgroundRepeat = "no-repeat";
      window.document.body.bgProperties = "fixed";
   }
   else if (window.document.getElementById) {
      window.document.body.background = ttBgImage;
      //window.document.body.backgroundRepeat = "no-repeat";
      window.document.body.bgProperties = "fixed";
   }

   //alert (nBackgroundCounter);
  // return ttBgImage;   

}

function showDownloadImage (ttImgName, ttWidth, ttHeight) {
   var ttWindowHeight;
   var ttWindowWidth;
   var ttImageWidth;
   var ttImageHeight;
   var ttNewWindowProps;

   ttWindowHeight = "500";
   ttWindowWidth = "500";
   ttImageWidth = ttWidth;
   ttImageHeight = ttHeight;

   ttNewWindowProps = "width=";
   ttNewWindowProps += ttWindowWidth;
   ttNewWindowProps += ",height=";
   ttNewWindowProps += ttWindowHeight;

   ttWindow = window.open("", "", ttNewWindowProps);
   var ttHTML = "<HTML><HEAD><TITLE>";
   ttHTML += "Image Download";
   ttHTML += "</TITLE></HEAD>\n";
   ttHTML += "<style type='text/css'>\n<!--\n@import url(ttac_style.css);\n-->\n</style>";
   ttHTML += "<style type='text/css'>\n<!--\n@import url(../ttac_style.css);\n-->\n</style>";
   ttHTML += "<BODY>\n<center>\n<DIV class='ttPhotoGalleryImagePageTitle'>"
   ttHTML += "Image Download";
   ttHTML += "</DIV>\n<a href='javascript: window.close();'>\nClose window\n</a>\n<table class='ttPhotoGalleryImagePageTable'>\n<tr>\n<td><br>";

   ttHTML += "\n<IMG SRC='";
   ttHTML += ttImgName;
   ttHTML += "' WIDTH='";
   ttHTML += ttImageWidth;
   ttHTML += "' HEIGHT='"
   ttHTML += ttImageHeight;
   ttHTML += "'>\n";
   ttHTML += "</td></tr></table></center></BODY></HTML>";

   ttWindow.document.write(ttHTML);
   ttWindow.document.close();
}

function preloadBackgrounds() {

   getNextBackground();
/*
   var ttBgArray = new Array();
   ttBgArray[0]= new Image(1000,750);
   ttBgArray[1]= new Image(1000,750);
   ttBgArray[2]= new Image(1000,750);
   ttBgArray[3]= new Image(1000,750);
   ttBgArray[4]= new Image(1000,750);
   ttBgArray[5]= new Image(1000,750);
   ttBgArray[6]= new Image(1000,750);
   ttBgArray[7]= new Image(1000,750);
   ttBgArray[8]= new Image(1000,750);

   ttBgArray[0].src="images/backgrounds/ttbgimage_water.jpg";
   ttBgArray[1].src="images/backgrounds/ttbgimage_bilibili.jpg";
   ttBgArray[2].src="images/backgrounds/ttbgimage_bush2.jpg";
   ttBgArray[3].src="images/backgrounds/ttbgimage_bush.jpg";
   ttBgArray[4].src="images/backgrounds/ttbgimage_coconuttree.jpg";
   ttBgArray[5].src="images/backgrounds/ttbgimage_crab.jpg";
   ttBgArray[6].src="images/backgrounds/ttbgimage_sunset2.jpg";
   ttBgArray[7].src="images/backgrounds/ttbgimage_bush3.jpg";
   ttBgArray[8].src="images/backgrounds/ttbgimage_sails.jpg";
   ttBgArray[9].src="images/backgrounds/ttbgimage_sand2.jpg";
   ttBgArray[10].src="images/backgrounds/ttbgimage_sand.jpg";
   ttBgArray[11].src="images/backgrounds/ttbgimage_sunset.jpg";
   ttBgArray[12].src="images/backgrounds/ttbgimage_water2.jpg";
   ttBgArray[13].src="images/backgrounds/ttbgimage_water3.jpg";
   ttBgArray[14].src="images/backgrounds/ttbgimage_waterfall3.jpg";
   ttBgArray[15].src="images/backgrounds/ttbgimage_waterfall.jpg";
   ttBgArray[16].src="images/backgrounds/ttbgimage_waterfall4.jpg";
   ttBgArray[17].src="images/backgrounds/ttbgimage_bush4.jpg";
*/
}

function printLastModified() {
   d = new Date();
   strDay = d.getDate();
   nMonth = d.getMonth() + 1;
   switch (nMonth)
   {
	case 1 :
      	strMonth = "January";
		break;
	case 2 :
		strMonth = "February";
		break;
	case 3 :
      	strMonth = "March";
		break;
	case 4 :
		strMonth = "April";
		break;
	case 5 :
      	strMonth = "May";
		break;
	case 6 :
		strMonth = "June";
		break;
	case 7 :
      	strMonth = "July";
		break;
	case 8 :
		strMonth = "August";
		break;
	case 9 :
      	strMonth = "September";
		break;
	case 10 :
		strMonth = "October";
		break;
	case 11 :
      	strMonth = "November";
		break;
	case 12 :
		strMonth = "December";
		break;
	default :
		strMonth = "Neveruary";
   }

   strYear = d.getYear();
   strDate = strMonth + " " + strDay + ", " + strYear;
   return strDate;
}

function drawMatanaNavBar() {
   var ttHTML = "";
   ttHTML += "<table border='0' class='ttncssNavBar' cellspacing='5' cellpadding='0' width='80%'>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='mat_home.htm'>Home</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='mat_photogallery.htm'>Photo Gallery</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='mat_int_map.htm'>Interactive Map</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='mat_beaches.htm'>Beaches</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='mat_activities.htm'>Activities</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='mat_contact.cfm'>Contact Us</a></td>";
   ttHTML += "</tr>";

   ttHTML += "</tr>";
   ttHTML += "</table>";

   return ttHTML;
}

function drawNCSSNavBar () {
   var ttHTML = "";
   ttHTML += "<table border='0' class='ttncssNavBar' cellspacing='5' cellpadding='0' width='80%'>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/tthome.htm'>Home</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttactivities.htm'>Activities</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttitinerary.htm'>Itinerary</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttphotogallery.htm'>Photo Gallery</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttculture.htm'>Fiji Culture</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvideo.htm'>Video</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/\_private\\tttravelagents.htm'>Travel Agents</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/tthoneymoon.htm'>Honeymoons</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttbooking.htm'>Booking</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttguestfeedback.htm'>Guest Feedback</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttcontactus.htm'>Contact Us</a></td>";
   ttHTML += "</tr>";
   ttHTML += "</table>";

   return ttHTML;
}

function drawNCSSPrivateNavBar () {
   var ttHTML = "";
   ttHTML += "<table border='0' class='ttncssNavBar' cellspacing='5' cellpadding='0' width='80%'>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/tthome.htm'>Home</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttactivities.htm'>Activities</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttitinerary.htm'>Itinerary</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttphotogallery.htm'>Photo Gallery</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttculture.htm'>Fiji Culture</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvideo.htm'>Video</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/_private/tttravelagents.htm'>Travel Agents</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/tthoneymoon.htm'>Honeymoons</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttbooking.htm'>Booking</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttguestfeedback.htm'>Guest Feedback</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttcontactus.htm'>Contact Us</a></td>";
   ttHTML += "</tr>";
   ttHTML += "</table>";

   return ttHTML;
}

function drawOakNavBar () {
   var ttHTML = "";
   ttHTML += "<table border='0' class='ttncssNavBar' cellspacing='5' cellpadding='0' width='80%'>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttveitau.htm'>Home</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvei_accom.htm'>Accommodations</a></td>";
   ttHTML += "</tr>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvei_events.htm'>Veitau Events</a></td>";
   ttHTML += "</tr>";
   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvei_itinerary.htm'>Itinerary</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvei_photogallery.htm'>Photo Gallery</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvei_culture.htm'>Fiji Culture</a></td>";
   ttHTML += "</tr>";

   ttHTML += "<tr valign='middle'>";
   ttHTML += "<td class='ttNavBarTD' align='right'><a class='ttNavBarText' href='http://www.tuitai.com/ttvei_video.htm'>Video</a></td>";
   ttHTML += "</tr>";

   ttHTML += "</table>";

   return ttHTML;
}

function drawVeiFooter() {
   var ttHTML = "";
   ttHTML += "<IMG SRC='images/swheader.jpg' WIDTH='463' HEIGHT='143' BORDER='0'><br>";
   ttHTML += "Phone: +679-670-0922 | email: <a href='mailto:resfiji@southern-world.com'>resfiji@southern-world.com</a>";
   ttHTML += " | Fax: +679-670-2090";
   return ttHTML;
}

function getMatIntMapText(letter) {
   var ttHTML = "";
//alert('tige');
   if (letter == "a") {
      ttHTML ="This white sand beach is referred to as \"South Beach.\"  One can swim at high and low tide and when one walks into the water it is all white sand.";
   }
   else if (letter == "b") {
      ttHTML ="This beach is referred to as \"Bligh\'s Cove.\"  It affords excellent privacy due to the lava rock outcroppings that flank it.  The snorkeling is world class.";
   }
   else if (letter == "c") {
      ttHTML ="This white sand beach is referred to as \"Nola Point Beach\" on Wailolo Point.  The beach is swimmable at high and low tides and is white sand under water all the way to the live reefs.";
   }
   else if (letter == "d") {
      ttHTML ="The live reefs that surround Vatumatau Bay are teaming with fish and sea life and are considered by Deep Sea Diving experts, as the best in Fiji.  Between Nola Point and the live reefs, there is a deep water channel that allows ships to enter Vatumatau Bay for safe anchorage.";
   }
   else if (letter == "e") {
      ttHTML ="These white sand beaches of Vatumatau Bay are swimmable at high tide and contain some mangrove areas where fish breed.  There is a river that flows continuously carrying water from the mountains to the Matana Plantation waterfall and then into the bay.";
   }
   else if (letter == "f") {
      ttHTML ="Old Worker\'\s Quarters area.  Also natural springs are located nearby.";
   }
   else if (letter == "g") {
      ttHTML ="In the 1860\'\s, during the American Civil War, Matana was converted to a cotton plantation.  An old stone plantation house (whose walls still stand) was built in this area.";
   }
   else if (letter == "h") {
      ttHTML ="The approximate location of then plantation waterfall that feeds the river.";
   }
   else if (letter == "i") {
      ttHTML ="Perfect Hotel/Estates sites.  Undulating hillside that has views of both South Beach and Vatumatau Bay.  The views from the plantation are stunning.";
   }
   else if (letter == "j") {
      ttHTML ="Nabuna Village: Over 200 English speaking Fijians live here.  An excellent source of labor.  Villagers are of Christian faith and basically self sufficient.  Village is 20 minutes from the Koro Airport.  One of 11 Koro Villages.";
   }
   else {
      ttHTML ="ccccccccccccccccccccccccc";
   }

   if (window.document.all) {
      window.document.all.mat_int_map_letter_text.innerHTML = ttHTML;
   }
   else if (window.document.getElementById) {
      window.document.getElementById('mat_int_map_letter_text').innerHTML = ttHTML;
   }
   


}

