// JavaScript Document

var imageDescriptionArray = new Array();

imageDescriptionArray[0] = '<p></p>';
imageDescriptionArray[1] = '<p></p>';
imageDescriptionArray[2] = '<p></p>';
imageDescriptionArray[3] = '<p></p>';
imageDescriptionArray[4] = '<p></p>';
imageDescriptionArray[5] = '<p></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];

	

}
