function overRef(name)
{
	document.getElementById("ref"+name+"_1").style.color='#ff6600';
	document.getElementById("ref"+name+"_2").style.color='#5b5b5b';
}
function outRef(name)
{
	document.getElementById("ref"+name+"_1").style.color='#938e87';
	document.getElementById("ref"+name+"_2").style.color='#948f88';
}
function clickRef(url)
{
	window.location=url;
	return false;
}


function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
	this.obj = getObjNN4(document,name);
	this.style = this.obj;
  }
}

function getObjNN4(obj,name)
{
	var x = obj.layers;
	var foundLayer;
	for (var i=0;i<x.length;i++)
	{
		if (x[i].id == name)
		 	foundLayer = x[i];
		else if (x[i].layers.length)
			var tmp = getObjNN4(x[i],name);
		if (tmp) foundLayer = tmp;
	}
	return foundLayer;
}

function showMap()
{
	document.getElementById("showmap").style.display = 'none';
	document.getElementById("showphoto").style.display = 'inline';
	document.getElementById("hq_map").style.display = 'block';
	document.getElementById("hq_photo").style.display = 'none';
	
}

function showPhoto()
{
	document.getElementById("showmap").style.display = 'inline';
	document.getElementById("showphoto").style.display = 'none';
	document.getElementById("hq_map").style.display = 'none';
	document.getElementById("hq_photo").style.display = 'block'
}
