<!-- Rotate -->
function rotateFaded () {
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
gSlideshowInterval = 4;
gNumberOfImages = 6; // +1, last in array should also be listed below...

gImages = new Array(gNumberOfImages);
gImages[0] = "./Faded/RoseIslandLighthouse.jpg";
gImages[1] = "./Faded/TheBreakers.jpg";
gImages[2] = "./Faded/CliffWalk.jpg";
gImages[3] = "./Faded/NewportHarbor.jpg";
gImages[4] = "./Faded/CastleHillLighthouse.jpg";
gImages[5] = "./Faded/TennisHall.jpg";

gImageCapableBrowser = canManipulateImages();
gCurrentImage = 0;
setInterval("nextSlide()",gSlideshowInterval * 1000);

}

function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}

function loadSlide(imageURL) {
	if (gImageCapableBrowser) {
		document.slide.src = imageURL;
		return false;
	}
	else {
		return true;
	}
}

function nextSlide() {
	gCurrentImage = (gCurrentImage + 1) % gNumberOfImages;
	loadSlide(gImages[gCurrentImage]);
}


function titleHeader() {
//Build page header for all pages with
//rotating pictures

   document.write("<table cellpadding=\"05\" cellspacing=\"0\" border=\"0\"  width=\"90%\"  bgcolor=\"#003366\">");
	 document.write("<tr>");
		document.write("<td align=\"center\" bgcolor=\"#003366\">");
          document.write("<a href=\".\/index.htm\">");
		  document.write("<img src=\"./pics/FinalShellBlue.jpg\" border=0 alt=\"Newport Country Bed and Breakfast Assocation Logo\" height=\"200\" ><\/td>");
          document.write("<\/a>");
		document.write("<td align=\"center\" bgcolor=\"#003366\">");
		  document.write("<IMG SRC=\"./Faded/RoseIslandLighthouse.jpg\" height=\"200\" BORDER=0 ALT=\"Rotating logos for the Newport Country Bed ");
		  document.write("and Breakfast Association\" NAME=\"slide\" align=\"center\">");
        document.write("<\/td>");
        document.write("<\/tr><tr>");
        document.write("<td colspan=2 align=\"center\" bgcolor=\"#003366\" class=\"whiteText\">");
		document.write("The Longest Running Bed and Breakfast Association in Newport County<\/td>");
  document.write("<\/tr>");
}

function endTitleHeader() {
  document.write("<\/table>");
}

function miniNavBar() {
          document.write("<tr><td colspan=2 align=\"center\" bgcolor=\"#003366\" class=\"miniNav\">");
          document.write("<a href=\".\/index.htm\">Home<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
          document.write("<a href=\".\/ThingsToDo.htm\">Things To Do<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
          document.write("<a href=\".\/Restaurants.htm\">Restaurants<\/a><br><br>");
          document.write("<\/td><\/tr>");
}
