function TotalNumberOfSlides()
{
	return 350;
}

function DisplayMenu()
{

	var tourID = 'r1012'

	var panTitle = new Array();
	var panPage = new Array();
	
	panTitle[0] = ''
	panPage[0]  = ''

panTitle[1] = 'Beach & Play Area'
panPage[1] = '1_360_pan.html'
panTitle[2] = 'Pool & Shuffleboard'
panPage[2] = '2_360_pan.html'
panTitle[3] = 'Gazebo & Boat Docks'
panPage[3] = '3_360_pan.html'
panTitle[4] = 'Waterfront'
panPage[4] = '4_partial_pan.html'
panTitle[5] = 'Cottages'
panPage[5] = '5_360_pan.html'
panTitle[6] = 'Volleyball Court & Cottages'
panPage[6] = '6_360_pan.html'

	document.write('<center><font size="2" face="Arial" color="#000000"><i>Panoramic Views</i></font></center>');
	document.write('<table border="0" cellpadding="3" cellspacing="1" width="100%">');
	
	var panTotal = panTitle.length;

	for (pcount = 1; pcount < panTotal; pcount++) {
		document.write('<tr><td><a href="' + panPage[pcount] + '">' + panTitle[pcount] + '</a></td></tr>');
	}

	document.write('</table>');
	document.write('<br>');
	document.write('<center><font size="2" face="Arial" color="#000000"><i>Still Photographs</i></font></center>');
	document.write('<table border="0" cellpadding="3" cellspacing="1" width="100%">');
	document.write('<tr><td><a href="allphotos.html" target="_blank">Show All Photos</a></td></tr>');
	document.write('<tr><td><a href="stills.html">Slide Show</a></td></tr>');
	document.write('</table><br>');
	document.write('<table border="0" cellpadding="3" cellspacing="1" width="100%">');
	document.write('<tr><td><a href="mailto:?subject=Virtual Tour&body=http://www.viproperties.ca/' + tourID + '">Email this Virtual Tour</a></td></tr>');
	document.write('</table>');
}

function DisplayAllPhotos()
{
	var imgTitle = new Array();

	imgTitle[0] = ''
imgTitle[1] = 'Pine Vista Resort'
imgTitle[2] = 'Office & Store'
imgTitle[3] = 'Office & Store'
imgTitle[4] = 'Waterfront'
imgTitle[5] = 'Waterfront'
imgTitle[6] = 'Waterfront'
imgTitle[7] = 'Waterfront'
imgTitle[8] = ''
imgTitle[9] = 'Beach'
imgTitle[10] = 'Beach'
imgTitle[11] = ''
imgTitle[12] = 'Beach'
imgTitle[13] = 'Relaxing at the Beach'
imgTitle[14] = ''
imgTitle[15] = 'Beach'
imgTitle[16] = 'Beach'
imgTitle[17] = ''
imgTitle[18] = 'Trampoline Fun'
imgTitle[19] = ''
imgTitle[20] = 'Beach Volleyball'
imgTitle[21] = 'Beach Volleyball and Play Centre'
imgTitle[22] = 'Beach Volleyball and Play Centre'
imgTitle[23] = 'Beach & Gazebo'
imgTitle[24] = 'Gazebo'
imgTitle[25] = 'Gazebo'
imgTitle[26] = 'Waterfront Cottage'
imgTitle[27] = ''
imgTitle[28] = 'Park-like Gardens'
imgTitle[29] = 'Shuffleboard'
imgTitle[30] = 'Exercise Room'
imgTitle[31] = 'Games Room'
imgTitle[32] = 'Games Room'
imgTitle[33] = 'Indoor Hot Tub'
imgTitle[34] = 'Canoes & Kayaking'
imgTitle[35] = 'Canoes & Kayaking'
imgTitle[36] = ''
imgTitle[37] = ''
imgTitle[38] = 'Cottages'
imgTitle[39] = ''
imgTitle[40] = 'Outdoor Hot Tub'
imgTitle[41] = 'Pool'
imgTitle[42] = 'Pool'
imgTitle[43] = 'Pool'
imgTitle[44] = 'Kid`s Camp'
imgTitle[45] = 'Kid`s Camp'
imgTitle[46] = 'Conference Room'
imgTitle[47] = 'Conference Room'
imgTitle[48] = 'Conference Room'
imgTitle[49] = 'Duck Pond'
imgTitle[50] = 'Shoreline'

	var i;
	var imgT = imgTitle.length;
	for (i = 1; i < imgT; i=i+1) {
		if( (i+1) < 0) {
			document.write('<tr><td align=center><table align=center border="5" cellpadding="0" cellspacing="0" style="border: 4px ridge;"><tr><td align=center valign=bottom><img src="images/' + i + '_still.jpg" border="1"></td></tr></table>' + imgTitle[i] + '<br><br></td>');
			document.write('<td align=center><table align=center border="5" cellpadding="0" cellspacing="0" style="border: 4px ridge;"><tr><td align=center valign=bottom><img src="images/' + (i+1) + '_still.jpg" border="1"></td></tr></table>' + imgTitle[i+1] + '<br><br></td></tr>');
		} else {
			document.write('<tr><td colspan=2 align=center><table align=center border="5" cellpadding="0" cellspacing="0" style="border: 4px ridge;"><tr><td align=center valign=bottom><img src="images/' + i + '_still.jpg" border="1"></td></tr></table>' + imgTitle[i] + '<br><br></td></tr>');
		}
	}
}

function DisplayPan(imagename)
{
	document.write('<tr><td><APPLET archive="common/360banner.zip" code="RubberNeck.class" width="600" height="500" /> \n');
	document.write('<PARAM name="imgs" value="images/' + imagename + '" /> \n');
	document.write('<PARAM name="autopan" value="interrupt" /> \n');
	document.write('<PARAM name="backColor" value="240 240 240" /> \n');
	document.write('<PARAM name="foreColor" value="0 0 0" /> \n');
	document.write('<PARAM name="speed" value="5" /> \n');
	document.write('</APPLET></td></tr>');
}

function DisplayPPan(imagename)
{
	document.write('<tr><td><applet archive="common/imgScroller.zip" code="imgScroller.class" width="600" height="500"> \n');
	document.write('<param name="img" value="images/' + imagename + '"> \n');
	document.write('<param name="bgcolor" value="#FFFFFF"> \n');
	document.write('<param name="border" value="false"> \n');
	document.write('<param name="delay" value="50"> \n');
	document.write('<param name="stepx" value="1"> \n');
	document.write('<param name="stepy" value="0"> \n');
	document.write('<param name="scrollingstop" value="false"> \n');
	document.write('<param name="imagedrag" value="true"> \n');
	document.write('</applet></td></tr>');
}
