// JavaScript Document

var imageDescriptionArray = new Array();

imageDescriptionArray[0] = '<p><strong>Park Hyatt Dubai, UAE,</strong> <span class="name">Traiteur</span>: Offering modern European cuisine in a striking architecture setting, Traiteur is set on two levels, connected by a long metal staircase suspended by the ceiling. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';

		  

imageDescriptionArray[1] = '<p><strong>Park Hyatt Dubai, UAE,</strong> <span class="name">The Traiteur</span>: Dine underneath a geometric wall at Traiteur.  The design adds endless drama to the dining experience in its sheer proportion and optical illusion. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';

		  

imageDescriptionArray[2] = '<p><strong>Park Hyatt Dubai, UAE,</strong> <span class="name">Vodka Bar</span>: Water, reflection, sunrise and sunset all influenced the design of this cosmopolitan bar. </p><p><a href="../../gallery.php">&lt; Back to Listings</a></p>';


imageDescriptionArray[3] = '<p><strong>Park Hyatt Dubai, UAE,</strong> <span class="name">The Terrace</span>: Overlooking Dubai Creek Yacht Club, the terrace is a calm and relaxing atmosphere with a nautical influence. </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];

	

}
