// JavaScript Document

var imageDescriptionArray = new Array();

imageDescriptionArray[0] = '<p><strong>St. Regis Singapore,</strong> <span class="name"> Le Brezza</span>: At this poolside restaurant a light and fresh design concept was selected to create a synergy with the dazzling azure tones of the pool landscape.  Lighting fixtures add a unique Moroccan flair. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';

		  

imageDescriptionArray[1] = '<p><strong>St. Regis Singapore,</strong> <span class="name"> Astro Bar</span>: The design of the Astro Bar combines plush leather chairs and dark fabric banquettes that visually astound and are incorporated with whimsical, yet oversized birdcages which allude to an Asian history. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';

imageDescriptionArray[2] = '<p><strong>St. Regis Singapore,</strong> <span class="name"> The Decanter</span>: This semi- private dining alcove creates a cozy ambiance for the guest to sit back among the plush cushioned banquettes and enjoy their meal. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';

imageDescriptionArray[3] = '<p><strong>St. Regis Singapore,</strong> <span class="name"> The Decanter Wine Cellar</span>: This tinted glass wine cellar showcases over 200 of the hotel’s premium wine bottles. The combination of vibrant leather seating, blazing gold chandeliers and steel frames set the stage for an exclusive gentleman\’s retreat. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';	


	 
	 
function preloadImages() 

{ 

	//check if there are some images in the HTML page only then preload the new images

	if(document.images)

	{

		if(!document.p) 

		{

			document.p=new Array();

		}	

			

		var i,j=document.p.length,a=preloadImages.arguments; 

		for(i=0; i<a.length; i++)

		{

			if (a[i].indexOf("#")!=0)

			{ 

				document.p[j]=new Image; 

				document.p[j++].src=a[i];

			}

		}	

	}

}



function changeImages(elementID, newImageSrc, pos)

{

	if(document.getElementById(elementID))

	{

		document.getElementById(elementID).src = newImageSrc;

	}

	document.getElementById('content').innerHTML = imageDescriptionArray[pos];

	

}
