/************************************/
/*									*/
/*									*/
/*									*/
/*									*/
/*									*/
/************************************/



var Links = new Array();
var LinkDescription = new Array();

var siteBaseAppend = "/";


var Title = 'A Great Adventure';

Links[0] = 'index.html';
//Links[1] = 'blog.html';
Links[1] = 'cblog/index.php';
Links[2] = 'links.html';
//Links[3] = 'cgi-bin/DisplayTobyNews.pl';
Links[3] = 'specs-links.html';
Links[4] = 'waypoints.html';
Links[5] = 'DisplayNews.html';
Links[6] = 'cgi-bin/TripLogs.pl';
Links[7] = 'maps.html';
Links[8] = 'contact.html';
Links[9] = 'groupmessages.html';

LinkDescription[0] = 'Home';
LinkDescription[1] = 'Blog';
LinkDescription[2] = 'Links';
//LinkDescription[3] = 'Toby\'s Corner';
LinkDescription[3] = 'Windswept';
LinkDescription[4] = 'Waypoints';
LinkDescription[5] = 'News/Photos';
LinkDescription[6] = 'Sail Plans/Logs';
LinkDescription[7] = 'Mapping';
LinkDescription[8] = 'Contact Info';
LinkDescription[9] = 'Group Messages';


var i;

/*<script type=\"text/javascript\">
for (i = 0; i <= 5; i++)
{
document.write(\"The number is \" + i)
document.write(\"<br />\")
}
</script>

*/



function GetLinks(){
	var outPut = "";
	
	for(i in Links){
		var c1 = '#00ffff';
		outPut += '<tr><td align=\"center\"><a class=\"NavBar\" onMouseOver=\"doRollover(this, \'#000066\', \'#333399\')\" onMouseOut=\"doRollover(this, \'transparent\',\'';
		
		//alert(document.URL + "\n\n" + Links[i] + "\n\n" + document.URL.indexOf(Links[i]));
		if(document.URL.indexOf(Links[i]) >= 0) {
				c1 = '#ffffff';
		}
		outPut += c1 + '\')\" href=\"'+ siteBaseAppend + Links[i] + '\"><font face=\"Verdana,Arial,Helvetica,sans-serif\" size=\"2\" style=\"color:';
		outPut += c1 + '\;\"><b>' + LinkDescription[i] + '</b></font></a></td></tr>';
		outPut += '\n\n';
		
		//alert(outPut);
	}
	outPut += '<tr><td align=\"center\"><BR><div id=\"CalendarData\"></div></td></tr>';
	//outPut += '<BR><iframe name=\"Calendar\" src =\"http://www.windswept42.com/cgi-bin/caltest1.pl\" frameborder=\"0\" width=\"100\"></iframe>';
	//alert(outPut);
	return outPut;
}


 function doRollover(elem, rollover_color, text_color){
        // set background color of TD
        if (elem.parentNode){ // IE5, IE6 and Netscape 6
            if (rollover_color == 'transparent'){   // Netscape does not like the word "transparent".
                elem.parentNode.bgColor = '';    
            }
            else{
                elem.parentNode.bgColor=rollover_color;
            }
        }
        else if (elem.parentElement && elem.parentElement.setAttribute){ // IE4.
            elem.parentElement.setAttribute("bgColor", rollover_color);
        }
        else{  // Netscape 4.6x or 4.7x
            //alert("Must be Netscape! do nothing");
        }
        // set color of the link text
        if (elem.children){  // IE4, IE5, IE6 and Netscape 6
            elem.children(0).style.color=text_color;
        }
    }                              


