	var globalImage;
	
	function main( name )
	{
		globalImage = document.images["i"+name];
	}

	function chgViewPhoto( obj, url )
	{
		var largePhoto	   = document.images["largePhoto"];
			largePhoto.src = "/images/gallery/" + url;
			
			obj.id		   = "activePhoto";
			globalImage.id = "pasivePhoto";
			globalImage	   = obj;
	}
