// Tour Site Array
// These are all the tour sites available.  They are arranged in the order that they
//	should be viewed by the user when pressing the previous/next buttons.
var gTour = new Array ('Project-Services', 
					   'RT-Main', 'RT-Loure', 'RT-Hopetown', 'RT-Hacienda', 'RT-Menlyn', 'RT-Jewel', 'RT-Bandung', 'RT-TownSquare', 'RT-Atlantis', 'RT-Istinye', 'RT-SanMarino', 'RT-Viva', 'RT-Batam', 'RT-Pondok',
					   'ET-Main', 'ET-Menlyn','ET-Alpella', 'ET-Riverwalk', 'ET-Muvico_Paris', 'ET-Muvico_Rose', 'ET-Muvico_Xan', 'ET-Muvico_Coco', 'ET-Muvico_Arun', 'ET-Newport', 'ET-1885', 'ET-Expo', 'ET-Extreme-Hiro',
					   'TC-Main', 'TC-Easton', 'TC-Altamonte', 'TC-Greene', 'TC-Perkins', 'TC-Medina', 'TC-SouthSide', 'TC-GrandStation', 'TC-Sunco', 'TC-Bayshore', 'TC-Fairfax', 'TC-Pullman', 'TC-Viva','TC-Edison',																				        						  'TC-Woodlands',
					   'MU-Main', 'MU-Bank','MU-Puerto','MU-Westgate','MU-Dammam','MU-Akasya','MU-National','MU-Pier','MU-AbuDhabi','MU-Atlantic','MU-Blue','MU-Village',
					   'PL-Main', 'PL-Emerald', 'PL-Riberas', 'PL-Dasve', 'PL-Sirbani', 'PL-Giardino', 'PL-Alareen', 'PL-Arcabil', 'PL-Zonk', 'PL-Urbano', 'PL-Riverwalk', 'PL-Xicheng', 'PL-Lux',
					   			  'PL-Jinqiao', 'PL-Marine', 'PL-Ancol', 'PL-Desert', 'PL-Marina',
					   'HS-Main', 'HS-Xicheng', 'HS-MarriottSF', 'HS-Crowne', 'HS-Ocean', 'HS-Lily', 'HS-Yogya', 'HS-Dubai', 'HS-MarriottTC','HS-Aruba', 'HS-Bali',
					   'RS-Main', 'RS-Horizon', 'RS-Regina','RS-Hres', 'RS-Pedro', 'RS-Jinqiao', 'RS-GVT','RS-Kemer','RS-Dreamland','RS-Marbella','RS-Central','RS-Dune','RS-Maoshan','RS-Legenda', 'RS-Pondok',
					   'GR-EG_Main', 'GR-EG_Newport','GR-EG_Muvico-Rose','GR-EG_Oakland','GR-EG_Menlyn','GR-EG_AlDhiyafa','GR-EG_Muvico-Ybor','GR-EG_Sawgrass','GR-EG_1885','GR-EG_Easton','GR-EG_Pondok', 'GR-EG_Childrens'			                                  ,'GR-EX_Main', 'GR-EX_GRbooth', 'GR-EX_Ellman', 'GR-EX_AlAin', 'GR-EX_McWhinney', 'GR-EX_Peterson',
					   'GR-ID_Main', 'GR-ID_Spectrum' , 'GR-ID_Lighthouse', 'GR-ID_Jewel', 'GR-ID_Akasya', 'GR-ID_Richwood', 'GR-ID_Stationpark', 'GR-ID_1885', 'GR-ID_River',
					   'GR-PR_Main','GR-PR_Jewel','GR-PR_Lease','GR-PR_Mono','GR-PR_Promo', 
					   'SU-Main', 'SU-Loure', 'SU-Alpella', 'SU-Zonk', 'SU-Atlantic', 'SU-Sirbani', 'SU-Quay', 'SU-Watters',
					   'SS-Main', 'SS-Sketches', 'SS-Models', 'SS-MM_Main' );	 
					   
					    

function GoToNextTourSite (currentTourSite)
{	
	for (i=0; i < gTour.length; i++)	
	{	
		if (gTour[i] == currentTourSite)
		{
			var index = i;
			
			if (i+1 == gTour.length)
			{
				index = 0;
			}
			else
			{
				index++;
			}

			document.location = MakeProjectURL(gTour[index]);
		}
	}
}

function GoToPreviousTourSite (currentTourSite)
{
	for (i=0; i < gTour.length; i++)	
	{
		if (gTour[i] == currentTourSite)
		{
			var index = i;
			
			if (i == 0)
			{
				index = gTour.length-1;
			}
			else
			{
				index--;
			}
			
			document.location = MakeProjectURL(gTour[index]);
		}
	}
}

function MakeProjectURL (tourSite)
{
	return '../' + tourSite + '/Project.html';
}