<!--
	


/********************************************************************
 ********************************************************************
 * functions to identify html objects from their id parameter
 */

// getObj() and getObjNN4()
// cross browser object identify
// returns an object with two
// properties:
// .obj (give access to the object itself)
// .style (give access to the object styles)

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;
  }
  return this;
}

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;
}





/********************************************************************
 ********************************************************************
 * functions to open a new window
 */
function openMuseumCover(address) 
{
	var target = '_blank';
	var width = 600;
	var height = 400;
	var top = (window.screen.availHeight / 2) - (height / 2);
	var left = (window.screen.availWidth / 2) - (width / 2);
	
	var option = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height+",top="+top+",left="+left+",fullscreen=no";
	objWindow = window.open(address, target, option); 
	objWindow.focus();
}



// -->