// JavaScript Document

var imageDescriptionArray = new Array();

imageDescriptionArray[0] = '<p><strong>MGM-Grand-Macau, China, </strong> <span class="name">Imperial Court</span>: The inspiration behind the theme of this eatery is based on Imperial China and reflects a multitude of unique, vibrant color combinations seen in the Qing and Ming Dynasties. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';

		  

imageDescriptionArray[1] = '<p><strong>MGM-Grand-Macau, China, </strong> <span class="name">Private Dining</span>: In this private dining space, a glass encased wine cellar which reflects a blue ambiance inspired by the color seen in traditional Portuguese heritage. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';

		  

imageDescriptionArray[2] = '<p><strong>MGM-Grand-Macau, China, </strong> <span class="name">Champagne Bar</span>: An ice-inspired luminous bar allows each guest to sit back and take in the extravagance of the space which showcases a glowing opulent chandelier overhead. </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];

	

}
