
		var dynimages = new Array();
		
				dynimages[1] = new Image;
			dynimages[1].src = "../img/gallery/grounds/full/full_Grounds_01.jpg";
				dynimages[2] = new Image;
			dynimages[2].src = "../img/gallery/grounds/full/full_Grounds_02.jpg";
				dynimages[3] = new Image;
			dynimages[3].src = "../img/gallery/grounds/full/full_Grounds_03.jpg";
				dynimages[4] = new Image;
			dynimages[4].src = "../img/gallery/grounds/full/full_Grounds_04.jpg";
				dynimages[5] = new Image;
			dynimages[5].src = "../img/gallery/grounds/full/full_Grounds_05.jpg";
				dynimages[6] = new Image;
			dynimages[6].src = "../img/gallery/grounds/full/full_Grounds_06.jpg";
				dynimages[7] = new Image;
			dynimages[7].src = "../img/gallery/grounds/full/full_Grounds_07.jpg";
				dynimages[8] = new Image;
			dynimages[8].src = "../img/gallery/grounds/full/full_Grounds_08.jpg";
				dynimages[9] = new Image;
			dynimages[9].src = "../img/gallery/grounds/full/full_Grounds_09.jpg";
				dynimages[10] = new Image;
			dynimages[10].src = "../img/gallery/grounds/full/full_Grounds_10.jpg";
				dynimages[11] = new Image;
			dynimages[11].src = "../img/gallery/grounds/full/full_Grounds_11.jpg";
				dynimages[12] = new Image;
			dynimages[12].src = "../img/gallery/grounds/full/full_Grounds_12.jpg";
				dynimages[13] = new Image;
			dynimages[13].src = "../img/gallery/grounds/full/full_Grounds_13.jpg";
				dynimages[14] = new Image;
			dynimages[14].src = "../img/gallery/grounds/full/full_Grounds_14.jpg";
				dynimages[15] = new Image;
			dynimages[15].src = "../img/gallery/grounds/full/full_Grounds_15.jpg";
				dynimages[16] = new Image;
			dynimages[16].src = "../img/gallery/grounds/full/full_Grounds_16.jpg";
				dynimages[17] = new Image;
			dynimages[17].src = "../img/gallery/grounds/full/full_Grounds_17.jpg";
				dynimages[18] = new Image;
			dynimages[18].src = "../img/gallery/grounds/full/full_Grounds_18.jpg";
				dynimages[19] = new Image;
			dynimages[19].src = "../img/gallery/grounds/full/full_Grounds_19.jpg";
				dynimages[20] = new Image;
			dynimages[20].src = "../img/gallery/grounds/full/full_Grounds_20.jpg";
				dynimages[21] = new Image;
			dynimages[21].src = "../img/gallery/grounds/full/full_Grounds_21.jpg";
				dynimages[22] = new Image;
			dynimages[22].src = "../img/gallery/grounds/full/full_Grounds_22.jpg";
				dynimages[23] = new Image;
			dynimages[23].src = "../img/gallery/grounds/full/full_Grounds_23.jpg";
				dynimages[24] = new Image;
			dynimages[24].src = "../img/gallery/grounds/full/full_Grounds_24.jpg";

								

	function SwapImage(new_image_id) {

		var mycontainerx = 443;
		var mycontainery = 306;

		myimage = dynimages[new_image_id];

		var mycontainer = document.getElementById('image_container_outer');
		var my_image_container = document.getElementById('image_container_inner');

		myimagex = dynimages[new_image_id].width;
		myimagey = dynimages[new_image_id].height;


		if(myimagex<myimagey) {

			newx = parseInt(mycontainery*(myimage.width/myimage.height));
			newy = mycontainery;

			posx = (mycontainerx-newx)/2;
			posy = 0;

		} else {

			newx = mycontainerx;
			newy = parseInt(mycontainerx*(myimage.height/myimage.width));

			posx = 0;
			posy = 0; //(mycontainery-myimagey)/2;

		}


		document.current_image.src = dynimages[new_image_id].src;

		document.current_image.style.height = newy+'px';
		document.current_image.style.width = newx+'px';

		my_image_container.style.left = posx+'px';
		my_image_container.style.top = posy+'px';

		my_image_container.style.height = newy+'px';
		my_image_container.style.width = newx+'px';


	}

	function SwapImage_old(new_image_id)
	{
		new_image = dynimages[new_image_id].src;
		document.current_image.src = new_image;
	}

	function addLoadEvent(func) {
		var oldonload = window.onload;

		if (typeof window.onload != "function") {
			window.onload = func;
		} else {
			window.onload = function () {
				oldonload();
				func();
			}
		}
	}

	addLoadEvent(function () {
		self.focus();
	});

