// Support Script (754)
// Copyright (c) 1998 by Elemental Software, Inc. - ALL RIGHTS RESERVED.
//
// This class finds the named object in either 4.0 DOM and 
// gathers information about it.
//
function objectInfo(objName)
{
	this.fullName = ""; // if this does not get filled the object could not be found.

	if (objName.length == 0) return;

	this.hide = objectInfoHide;
	this.show = objectInfoShow;
	this.setLeft = objectInfoSetLeft;
	this.setTop  = objectInfoSetTop;
	this.getPosition  = objectInfoGetPosition;
	this.isValid      = objectInfoIsValid;
	this.isValidIE    = objectInfoIsValidIE;
	this.getZindex    = objectInfoGetZindex;
	this.setZindex    = objectInfoSetZindex;
	this.getDimension = objectInfoGetDimension;
	this.setDimension = objectInfoSetDimension;
 this.shiftTo      = objectInfoShiftTo;

	// find the named object in the DOM and then get the properties

	if (document.all) // IE
	{
		while (true)
		{
			if (eval("document.all.DBStyle" + objName))
			{
				if (eval("document.all.DBStyle" + objName + ".offsetWidth"))
				{
					this.fullName = "document.all.DBStyle" + objName;
					this.tagName  = this.fullName;
				}
			}
			else if (eval("document.all." + objName))
			{
				if (eval("document.all." + objName + ".offsetWidth"))
				{
					// Text in DIV tags are caught here
					this.fullName = "document.all." + objName;
					this.tagName  = this.fullName;
				}
				else if (eval("document.all." + objName + "." + objName) != null)
				{
					// Other tags are caught here.
					if (eval("document.all." + objName + "[1].tagName")  != "DIV")
					{
						this.fullName = "document.all." + objName + "[0]";
						this.tagName  = "document.all." + objName + "[1]";
					}
				}
			}

			// strip underscores out of input and try one more time
			if (this.fullName.length > 0) break;
			objName2 = objName.replace(/_/, "");
			if (objName2 == objName) break;
			objName = objName2;
		}

		
		if (this.fullName.length > 0)
		{
			this.styleKey = '.style'; // used to access style info
			this.width  = eval(this.fullName + ".offsetWidth");
			this.height = eval(this.fullName + ".offsetHeight");
		}
	}
	else  // NC
	{
		if (document.layers)
		{
			sectionNumber = 0;
			while (true)
			{
				sectionName = "LyrSection" + sectionNumber.toString();
				if (eval("document.layers." + sectionName) == null) break;  // can't find object in DOM

				// see if this is an object in the DOM
				if (eval("document.layers." + sectionName + ".document"))
				{
					while (true)
					{
						if (eval("document.layers." + sectionName + ".document.layers.LyrDBStyle" + objName))
						{
							this.fullName = "document.layers." + sectionName + ".document.layers.LyrDBStyle" + objName;
							this.tagName  = "document.layers." + sectionName + ".document." + objName; 
							break;
						}
						else if (eval("document.layers." + sectionName + ".document.layers.Lyr" + objName))
						{
							this.fullName = "document.layers." + sectionName + ".document.layers.Lyr" + objName;
							this.tagName  = "document.layers." + sectionName + ".document." + objName; 
							break;
						}
						else if (eval("document.layers." + sectionName + ".document.layers." + objName))
						{
							this.fullName = "document.layers." + sectionName + ".document.layers." + objName;
							this.tagName  = "document.layers." + sectionName + ".document." + objName; 
							break;
						}

						// strip underscores out of input and try one more time
						if (this.fullName.length > 0) break;
						objName2 = objName.replace(/_/, "");
						if (objName2 == objName) break;
						objName = objName2;
					}

				} else alert("objectInfo: " + "document.layers." + sectionName + ".document" + " is not an object");

				sectionNumber++;
			} // end while (looping over all SectionN relative positioning layers)

			if (this.fullName.length > 0 && "undefined" != typeof(eval(this.fullName + ".pageX")))
			{
				this.styleKey = '';

				if (eval(this.fullName + ".dbWidth"))
				{
					// we have previously set the values - get them from here, since if we changed
					// the clipping region the size will be wrong (it will be clipping size - not native size).
					this.width  = eval(this.fullName + ".dbWidth");
					this.height = eval(this.fullName + ".dbHeight");
				}
				else
				{
					// get the clipping size and save it off since we haven't yet clipped this guy.
					this.width  = eval(this.fullName + ".clip.width");
					this.height = eval(this.fullName + ".clip.height");
					eval(this.fullName + ".dbWidth  = this.width");
					eval(this.fullName + ".dbHeight = this.height");
				}
			}
			else
			{
				this.fullName = "";
				this.tagName  = "";
			}
		}  // end if (document.layers  e.g. NC)
	}
	this.object = null;
	if (this.fullName.length > 0)
		this.object = eval(this.fullName);
}

function objectInfoHide()
{	
	if (this.fullName.length > 0)
		eval(this.fullName + this.styleKey + ".visibility = 'hidden';");
}

function objectInfoShow()
{
	if (this.fullName.length > 0)
		eval(this.fullName + this.styleKey + ".visibility = 'visible';");
}

function objectInfoSetLeft(left)
{
	if (this.fullName.length > 0)
		eval(this.fullName + this.styleKey + ".left = left");
}

function objectInfoSetTop(top)
{
	if (this.fullName.length > 0)
		eval(this.fullName + this.styleKey + ".top = top");
}

function objectInfoGetPosition()
{
	ret = null;
	if (this.fullName.length > 0)
	{
		if ("undefined" != typeof(eval(this.fullName + ".offsetLeft")))
		{
			ret = new Object;
			ret.left   = eval(this.fullName + ".offsetLeft");
			ret.top    = eval(this.fullName + ".offsetTop");
		}
		else if ("undefined" != typeof(eval(this.fullName + ".pageX")))
		{
			ret = new Object;
			ret.left = eval(this.fullName + ".pageX");
			ret.top  = eval(this.fullName + ".pageY");
		}
	}
	return ret;
}

function objectInfoIsValid()
{
	return (this.fullName.length > 0 && this.object);
}

function objectInfoIsValidIE()
{
	return (this.fullName.length > 0 && this.object && document.all);
}


function objectInfoGetZindex()
{
	  if (this.fullName.length > 0)
  	{
	   ret = eval(this.fullName + this.styleKey + ".zIndex");
	   return (ret);
  	}
}

function objectInfoSetZindex(ind)
{
  if (this.fullName.length > 0 )
  {
    eval(this.fullName + this.styleKey + ".zIndex = ind");
  }
}

function objectInfoGetDimension()
{

   ret = null;
   ret = new Object;
   if (document.all) {  // IE
      ret.width = eval(this.fullName + ".offsetWidth");
      ret.height = eval(this.fullName + ".offsetHeight");
   }
   else {  // NC
      if (eval(this.fullName + ".dbWidth")) {
         ret.width  = eval(this.fullName + ".dbWidth");
         ret.height = eval(this.fullName + ".dbHeight");
      }
      else {
         ret.width = eval(this.fullName + ".clip.width");
         ret.height = eval(this.fullName + ".clip.height");
      }
   }
    
   return (ret);
}       

function objectInfoSetDimension(w, h)
{
   if (document.all) { // IE
     eval(this.fullName + this.styleKey + ".width = w");
     eval(this.fullName + this.styleKey + ".height = h");
   }
   else { // NC
     if (eval(this.fullName + ".clip.width")) {
        eval(this.fullName + ".clip.width = w");
        eval(this.fullName + ".clip.height = h");
     }
     eval(this.fullName + ".dbWidth = w");
     eval(this.fullName + ".dbHeight = h");
   }
   this.width = w;
   this.height = h;
}

function objectInfoShiftTo(x, y)
{
   if (document.all) { // IE
      eval(this.fullName + this.styleKey + ".left = x");
      eval(this.fullName + this.styleKey + ".top  = y");
   }
   else { // NC
      eval(this.fullName + ".moveTo(x,y)");
   }
}
function document_onLoad() {
var objInfo = new objectInfo("txtGeo");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtGaia");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtSound");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtRitual");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtWorkshop");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtBio");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtSale");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtMisc");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtLinks");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtArticles");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtHome");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("txtImages");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
 }
function btnInitiation_onMouseOver() {
var objInfo = new objectInfo("txtGaia");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnInitiation_onMouseOver() { if (btnInitiation) return btnInitiation.onMouseOver(); }
function btnInitiation_onMouseOut() {
var objInfo = new objectInfo("txtGaia");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnInitiation_onMouseOut() { if (btnInitiation) return btnInitiation.onMouseOut(); }
function btnLink_onMouseOver() {
var objInfo = new objectInfo("txtLinks");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnLink_onMouseOver() { if (btnLink) return btnLink.onMouseOver(); }
function btnLink_onMouseOut() {
var objInfo = new objectInfo("txtLinks");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnLink_onMouseOut() { if (btnLink) return btnLink.onMouseOut(); }
function btsSale_onMouseOver() {
var objInfo = new objectInfo("txtSale");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btsSale_onMouseOver() { if (btsSale) return btsSale.onMouseOver(); }
function btsSale_onMouseOut() {
var objInfo = new objectInfo("txtSale");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btsSale_onMouseOut() { if (btsSale) return btsSale.onMouseOut(); }
function btnMisc_onMouseOver() {
var objInfo = new objectInfo("txtMisc");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnMisc_onMouseOver() { if (btnMisc) return btnMisc.onMouseOver(); }
function btnMisc_onMouseOut() {
var objInfo = new objectInfo("txtMisc");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnMisc_onMouseOut() { if (btnMisc) return btnMisc.onMouseOut(); }
function btnJim_onMouseOver() {
var objInfo = new objectInfo("txtBio");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnJim_onMouseOver() { if (btnJim) return btnJim.onMouseOver(); }
function btnJim_onMouseOut() {
var objInfo = new objectInfo("txtBio");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnJim_onMouseOut() { if (btnJim) return btnJim.onMouseOut(); }
function btnWork_onMouseOver() {
var objInfo = new objectInfo("txtWorkshop");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnWork_onMouseOver() { if (btnWork) return btnWork.onMouseOver(); }
function btnWork_onMouseOut() {
var objInfo = new objectInfo("txtWorkshop");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnWork_onMouseOut() { if (btnWork) return btnWork.onMouseOut(); }
function btnRitual_onMouseOver() {
var objInfo = new objectInfo("txtRitual");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnRitual_onMouseOver() { if (btnRitual) return btnRitual.onMouseOver(); }
function btnRitual_onMouseOut() {
var objInfo = new objectInfo("txtRitual");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnRitual_onMouseOut() { if (btnRitual) return btnRitual.onMouseOut(); }
function btnSound_onMouseOver() {
var objInfo = new objectInfo("txtSound");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnSound_onMouseOver() { if (btnSound) return btnSound.onMouseOver(); }
function btnSound_onMouseOut() {
var objInfo = new objectInfo("txtSound");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnSound_onMouseOut() { if (btnSound) return btnSound.onMouseOut(); }
function btnSacGeo_onMouseOver() {
var objInfo = new objectInfo("txtGeo");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnSacGeo_onMouseOver() { if (btnSacGeo) return btnSacGeo.onMouseOver(); }
function btnSacGeo_onMouseOut() {
var objInfo = new objectInfo("txtGeo");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnSacGeo_onMouseOut() { if (btnSacGeo) return btnSacGeo.onMouseOut(); }
function btnHome_onMouseOver() {
var objInfo = new objectInfo("banner");
objInfo.hide();
var objInfo = new objectInfo("txtHome");
objInfo.show();
 }
function _btnHome_onMouseOver() { if (btnHome) return btnHome.onMouseOver(); }
function btnHome_onMouseOut() {
var objInfo = new objectInfo("banner");
objInfo.show();
var objInfo = new objectInfo("txtHome");
objInfo.hide();
 }
function _btnHome_onMouseOut() { if (btnHome) return btnHome.onMouseOut(); }
function btnArticles_onMouseOver() {
var objInfo = new objectInfo("txtArticles");
objInfo.show();
var objInfo = new objectInfo("banner");
objInfo.hide();
 }
function _btnArticles_onMouseOver() { if (btnArticles) return btnArticles.onMouseOver(); }
function btnArticles_onMouseOut() {
var objInfo = new objectInfo("txtArticles");
objInfo.hide();
var objInfo = new objectInfo("banner");
objInfo.show();
 }
function _btnArticles_onMouseOut() { if (btnArticles) return btnArticles.onMouseOut(); }
function btnImages_onMouseOver() {
var objInfo = new objectInfo("banner");
objInfo.hide();
var objInfo = new objectInfo("txtImages");
objInfo.show();
 }
function _btnImages_onMouseOver() { if (btnImages) return btnImages.onMouseOver(); }
function btnImages_onMouseOut() {
var objInfo = new objectInfo("banner");
objInfo.show();
var objInfo = new objectInfo("txtImages");
objInfo.hide();
 }
function _btnImages_onMouseOut() { if (btnImages) return btnImages.onMouseOut(); }

