// JavaScript Document

function mouseOver(i){
	which = document.getElementById('hiddenLayer');
	if (!document.getElementById || which == null)
    	return
	which.style.display = "block";
	which.style.zIndex = 150;
	str = 't'+parseInt(i);
	st = document.getElementById(str).innerHTML;
	x_pos = document.getElementById(str).getAttribute('x');
	y_pos = document.getElementById(str).getAttribute('y');
	y_pos -= 3;
	x_pos -= -8;
	x_pos+='px';
	y_pos+='px';
	which.style.left = x_pos;
	which.style.top = y_pos;
	document.getElementById('myp').innerHTML = st;
	
	
	dotImg = document.getElementById('dotImg' + parseInt(i));
	if (dotImg != null) {
		dotImg.src = "img/starInCircle.png";
		
		dotEle = document.getElementById('dot' + parseInt(i));
		curX = parseInt(dotEle.style.left);
		curY =  parseInt(dotEle.style.top);
		//alert(curX + "  " + curY);
		dotEle.style.left = (curX - 7) + "px";
		dotEle.style.top = (curY - 8) + "px";
		dotEle.style.zIndex = 35;
		
	}
	
	
}

function mouseOut(i){
	which = document.getElementById('hiddenLayer');
	if (!document.getElementById || which == null)
      return
	which.style.display = "none";
	
	dotImg = document.getElementById('dotImg' + parseInt(i));
	if (dotImg != null) {
		dotImg.src = "img/dot.gif";
		dotEle = document.getElementById('dot' + parseInt(i));
		curX = parseInt(dotEle.style.left);
		curY =  parseInt(dotEle.style.top);
		//alert(curX + "  " + curY);
		dotEle.style.left = (curX + 7) + "px";
		dotEle.style.top = (curY + 8) + "px";
		dotEle.style.zIndex = 5;
		
	}

}

function redirect(num, order){
	window.location = 'tree_general.aspx?tree_id='+num+'&tour_order='+order;
}