//for next and previous button
var tourPages = new Array();
tourPages[0]="default";
tourPages[1]="editing";
tourPages[2]="sharing";
tourPages[3]="collaborating";
tourPages[4]="collecting";

function nextURL(){
	createURL(findURL(), true);
}
function preURL(){
	createURL(findURL(), false);
}

function createURL(indexNum, navFF){
	if(navFF==true){
		indexNum++;
		if(indexNum>4){
			indexNum=0;
		}
	}else{
		indexNum--;
		if (indexNum<0){
			indexNum=4;
		}		
	}
	window.location.href = tourPages[indexNum]+".aspx";
}
function findURL(){
	for (i=0; i<tourPages.length; i++){
		if(window.location.href.toLowerCase().indexOf(tourPages[i]) != -1){
			return i;
		}
	}
}
	
	