function Enlarge(obj,name)
{
    var imgbox=document.getElementById("imgbox");
    imgbox.style.display='block';
    var img = document.createElement("img");    
    img.src=obj.src.replace('Thumbnail','Medium');

	var nameHolder = document.createElement("div");
	nameHolder.className = "imgbox_parkname";
	nameHolder.innerHTML = name;
    
    imgbox.childNodes[1].innerHTML='';    
    imgbox.childNodes[1].appendChild(img);
	imgbox.childNodes[1].appendChild(nameHolder);    
    imgbox.style.left=(getElementLeft(obj))+ obj.width + 'px';  
	imgbox.style.top=(getElementTop(obj)) - 100 + obj.height/2 + 'px';
	
	imgbox.childNodes[1].style.height=(obj.height*3.2) -80 + 'px';
	
}  

function HideImage()
{
    document.getElementById("imgbox").style.display='none';
}

function getElementLeft(elm) 
{
	var curLeft = 0;

	if(elm.offsetParent) {
		do {
			curLeft += elm.offsetLeft;
		} while(elm = elm.offsetParent)
	}
     return curLeft;
}
function getElementTop(elm) 
{
    var curTop = 0;

	if(elm.offsetParent) {
		do {
			curTop += elm.offsetTop;
		} while(elm = elm.offsetParent)
	}
     return curTop;
}