var Pictures = new Array(1)
var PictureCount = 0


Pictures[01] = new Picture ('ภายในห้องสตูดิโอ',											'inside-hotel-0002.jpg', '')
Pictures[02] = new Picture ('ภายในห้องสตูดิโอ',											'inside-hotel-0003.jpg', '')
Pictures[03] = new Picture ('ภายในห้องสตูดิโอ',											'inside-hotel-0004.jpg', '')
Pictures[04] = new Picture ('ภายในห้องสตูดิโอ',											'inside-hotel-0005.jpg', '')
Pictures[05] = new Picture ('ภายในห้องสตูดิโอ',											'inside-hotel-0006.jpg', '')
Pictures[06] = new Picture ('ภายในห้องสตูดิโอ',											'inside-hotel-0007.jpg', '')
Pictures[07] = new Picture ('ห้องพักสำหรับ 2 ท่าน',											'inside-hotel-0010.jpg', '')
Pictures[08] = new Picture ('ห้องพักสำหรับ 2 ท่าน',											'inside-hotel-0008.jpg', '')
Pictures[09] = new Picture ('ห้องพักสำหรับ 2 ท่าน',											'inside-hotel-0009.jpg', '')
Pictures[10] = new Picture ('ห้องพักสไตล์โรงแรม 8 ท่าน',											'inside-hotel-0001.jpg', '')
Pictures[11] = new Picture ('ห้องพักสไตล์โรงแรม 8 ท่าน',											'inside-hotel-0012.jpg', '') 
Pictures[12] = new Picture ('ห้องพักสไตล์โรงแรม 8 ท่าน',											'inside-hotel-0013.jpg', '') 

PictureCount = 12

function Picture(
						TTitle, 
						FileName,
						TNote
						)
{
	this.TTitle = TTitle
	this.FileName = FileName
	this.TNote = TNote
}

var Pages = new Array(1)
var PageCount = 2

function Page( Pic1, Pic2, Pic3, Pic4, Pic5, Pic6, Pic7, Pic8, Pic9 )
{
	this.Pic1 = Pic1
	this.Pic2 = Pic2
	this.Pic3 = Pic3
	this.Pic4 = Pic4
	this.Pic5 = Pic5
	this.Pic6 = Pic6
	this.Pic7 = Pic7
	this.Pic8 = Pic8
	this.Pic9 = Pic9
}

Pages[1] =  new Page(  1,  2,  3,  4,  5,  6,  7,  8,  9)
Pages[2] =  new Page( 10, 11, 12) // 13//, 14)//, 15, 16, 17, 18)
// Pages[3] =  new Page( 19, 20, 21, 22, 23, 24, 25, 26, 27)
// Pages[4] =  new Page( 28, 29, 30, 31, 32, 33, 34, 35, 36)
// Pages[5] =  new Page( 37, 38, 39, 40, 41, 42, 43)
// Pages[6] =  new Page( 46, 47, 48, 49, 50, 51, 52, 53, 54)
// Pages[7] =  new Page( 55, 56, 57, 58, 59, 60, 61, 62, 63)
// Pages[8] =  new Page( 64, 65, 66, 67, 68, 69, 70, 71, 72)
// Pages[9] =  new Page( 73, 74, 75, 76, 77, 78, 79, 80, 81)
// Pages[10] = new Page( 82, 83, 84, 85, 86, 87, 88, 89, 90)
// Pages[11] = new Page( 91, 92, 93, 94, 95, 96, 97, 98, 99)
// Pages[12] = new Page(100,101,102,103,104,105,106,107,108)
PageCount = 2

function PrintPicture( PictureIndex )
{
	document.write ('<center>')

	document.write ('<table border=0 cellpadding=0 cellspacing=0>')
	document.write ('<tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr>')
	document.write ('<tr><td background="gutter-left.gif"></td><td align=center valign=top><img border=0 src="album/' + Pictures[PictureIndex].FileName + '"></td><td background="gutter-right.gif"></td></tr>')
	document.write ('<tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr>')
	document.write ('</table>')

	if ( Pictures[PictureIndex].TTitle != '' )
	{
		document.write ('<font face="angsanaupc" color=#404080 size=5><b>' + Pictures[PictureIndex].TTitle + '</b></font><br>')
	}
	if ( Pictures[PictureIndex].TNote != '' )
		document.write ('<font face="ms sans serif" color=#7f7f90 size=2>' + Pictures[PictureIndex].TNote + '</font><br>')
	document.write ('<br>')
	document.write ('<font face="ms sans serif" color=#dfdff0 size=1>')
	document.write ('</font><br>')
	document.write ('</center><br><br><br>')
}

function PrintThumb( PictureIndex )
{
	document.write ('<td bgcolor=#505580 valign=top align=center>ABC</td>')
//	document.write ('<td bgcolor=#505580 valign=top align=center><a href="gal2.html?' + PictureIndex + '"><img border=1 src="thumb/' + Pictures[PictureIndex].FileName + '"></a><br>')
//	document.write (Pictures[PictureIndex].TTitle + '</td>')
}

function PrintPage(PageNumber)
{
	document.write ('<center><table cellspacing=0 cellpadding=2 border=0>')
	document.write ('<tr>')
	document.write ('<td width=33% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic1 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic1].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic1].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic1].TNote + '</font>')
	document.write ('</td><td width=34% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic2 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic2].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic2].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic2].TNote + '</font>')
	document.write ('</td><td width=33% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic3 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic3].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic3].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic3].TNote + '</font>')
	document.write ('</td>')
	document.write ('</tr>')
	document.write ('<tr>')
	document.write ('<td width=33% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic4 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic4].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic4].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic4].TNote + '</font>')
	document.write ('</td><td width=34% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic5 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic5].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic5].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic5].TNote + '</font>')
	document.write ('</td><td width=33% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic6 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic6].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic6].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic6].TNote + '</font>')
	document.write ('</td>')
	document.write ('</tr>')
	document.write ('<tr>')
	document.write ('<td width=33% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic7 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic7].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic7].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic7].TNote + '</font>')
	document.write ('</td><td width=34% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic8 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic8].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic8].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic8].TNote + '</font>')
	document.write ('</td><td width=33% bgcolor=#ffffff valign=top align=center>')
   	document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="gutter-topleft.gif"></td><td background="gutter-top.gif"></td><td><img src="gutter-topright.gif"></td></tr><tr><td background="gutter-left.gif"></td><td align=center valign=top><a href="gal2.html?' + Pages[PageNumber].Pic9 + '"><img border=0 src="album/thumb/' + Pictures[Pages[PageNumber].Pic9].FileName + '"></a></td><td background="gutter-right.gif"><tr><td><img src="gutter-bottomleft.gif"></td><td background="gutter-bottom.gif"></td><td><img src="gutter-bottomright.gif"></td></tr></table><font face="ms sans serif" color=#404040 size=2><b>' + Pictures[Pages[PageNumber].Pic9].TTitle + '</b><br><font face="ms sans serif" size=1 color=#808180>' + Pictures[Pages[PageNumber].Pic9].TNote + '</font>')
	document.write ('</td>')
	document.write ('</tr>')
	document.write ('</table></center>')
}


