<!--
ns4   = (document.layers) ? true:false;                 // netscape 4
ie   = (document.all) ? true:false;                    // ie4+
ns6 = ((document.getElementById)&&(!ie))?true:false;   // ns6 etc.

var NUMSECTIONS = 13;

function menuCollapse(id) {

	if (ie || ns6) {
		resetMenu(id);	
		menuElement = 'subMenu' + id;
		document.getElementById(menuElement).style.display='';
		if (document['arrow' + id]) document['arrow' + id].src="images/arrow_on.gif";
	}
}

function resetMenu(id) {
	if (ie || ns6) {
		for (n=1 ; n< NUMSECTIONS+1 ; n++) {
			document.getElementById('subMenu' + n).style.display='none';
			if (document['arrow' + n]) {
				if (document['arrow' + n].src.indexOf('arrow_on') > -1) document['arrow' + n].src="images/arrow.gif";
			}
		}
	}
}


function setSection(sectionId,subsectionId) {
	if (ie || ns6) {
  if (sectionId != 0) {
 		section = 'section' + sectionId;
 		cellId = document.getElementById(section);
 		cellId.className = 'menuSectionOn';
  }
		if (subsectionId != 0) {
			menuCollapse(sectionId);
			subsection = 'subsection' + sectionId + '' + subsectionId;
			cellId = document.getElementById(subsection);
			cellId.className = 'menuSubsectionOn';
		}
	}	
}

function sendMail() {
	document.location.href="mailto:type.friends.email.here?subject=" + escape("Check out the NEW Kaymaran Web Site!") + "&body=" + escape("Hi <enter friends name>,\n\nKaymaran Adventure Tours have a new web site, you can visit it at \n\nhttp://www.kaymaran.com \n\nThey are now doing guided Kayak trips to the Gulf Islands as well as their usual trips in and around Ladner Marsh and the Fraser River!\n\n<enter your name here>");
}
//-->