
	
	
	function show(this_area,location,province)
	
		{
			var spot_area = document.getElementById(this_area)
			var ad_content =  document.getElementById('ad_content')	

			ad_content.innerHTML = spot_area.innerHTML
			
			set_gallery(this_area);
			
			if (this_area == 'map')
				{set_map(location,province)};

		}
	
	
		function set_gallery(this_area)
			{
				if (this_area == 'gallery')
					{
						document.getElementById('small_gallery').style.display = 'none';
						document.getElementById('ad_content').style.width = '650px';
						//ad_content.innerHTML = 
							if (document.getElementById('thumb_strip') != undefined)
								{document.getElementById('big_strip').innerHTML = document.getElementById('thumb_strip').innerHTML}	
					}
				else
					{
						document.getElementById('ad_content').style.width = '415px'
						document.getElementById('small_gallery').style.display = 'block';
					}

			}



		function set_map(x,y)
				{
					var map = new YMap(document.getElementById('yahoomap'));
					
					var map_location = x+'+'+y
					var zoom = 10
	
					map.drawZoomAndCenter(map_location,zoom);
					map.addZoomLong();
					map.addPanControl();
					document.getElementById('yahoomap').style.display = 'block'
				};


		
	function expand_thumb(image,large_width,large_height,thumb_caption,big_width,big_height)
		{

					var image_src = document.getElementById(image).src
					var large_pic = document.getElementById("large_pic")
					large_pic.src = image_src;
					var big_picture = document.getElementById("big_picture")
					var caption = document.getElementById("caption")
					var big_caption = document.getElementById("big_caption")
					//large_pic.src = 'images/prop/'+pic_location;
					large_pic.width = large_width;
					large_pic.height = large_height;
					large_pic.alt = thumb_caption;
					caption.innerHTML = thumb_caption;
					big_picture.src = image_src;
					big_picture.width = big_width;
					big_picture.height = big_height;
					big_picture.alt = thumb_caption;
					big_caption.innerHTML= thumb_caption;
		
		}

