var jsLinkPath="http://www.famestock.com/";
function displayTours(rid, rim) {
	var ob1      = document.getElementById(rid).style;
	var ob2      = document.getElementById(rim);
	var isOpened = (ob1.display=="block")?true:false;	
	var theRows = window.document.getElementsByTagName("DIV");
	var theImgs = window.document.getElementsByName("rwi");
	for(var y=0; y < theRows.length; y++) {
		if(theRows[y].id && theRows[y].id.indexOf('rw') == 0 ) theRows[y].style.display = 'none';
		}
	for(var z=0; z < theImgs.length; z++) { theImgs[z].src=jsLinkPath+'images/icon/plus.icon.gif'; }
	ob1.display = (isOpened)?'none':'block';
	ob2.src = (isOpened)?jsLinkPath+'images/icon/plus.icon.gif':jsLinkPath+'images/icon/minus.icon.gif';
	}
	
		
function displayTours2(rid2, rim2) {
	var ob1      = document.getElementById(rid2).style;
	var ob2      = document.getElementById(rim2);
	var isOpened = (ob1.display=="block")?true:false;	
	var theRows = window.document.getElementsByTagName("DIV");
	var theImgs = window.document.getElementsByName("kwi");
	for(var y=0; y < theRows.length; y++) {
		if(theRows[y].id && theRows[y].id.indexOf('kw') == 0 ) theRows[y].style.display = 'none';
		}
	for(var z=0; z < theImgs.length; z++) { theImgs[z].src=jsLinkPath+'images/icon/plus.icon.gif'; }
	ob1.display = (isOpened)?'none':'block';
	ob2.src = (isOpened)?jsLinkPath+'images/icon/plus.icon.gif':jsLinkPath+'images/icon/minus.icon.gif';
	}

	
// Used for when user select a departure date for tour
// to update the return date label's innerHTML value.
function findReturnDate(dep) {
	var theDates = new Array();
	theDates = dep.split('@');
	document.getElementById('firstReturnDate').innerHTML = theDates[1];
	}	
