// Support Script (840)
function OpenCustomWindow(strPage,strName,iWidth,iHeight,bLocation,bMenuBar,bResizable,bScrollBars,bStatus,bToolBar,bDirectories,iTop,iLeft,strPosition,bAdjust,strOpenerName,bDefualt,strSize) {
    var strTemp = ''
    var strOptions = ''
    var _winPopUp
    var strOpenerName = (String(strOpenerName)!='undefined' && String(strOpenerName)!='') ? strOpenerName : 'mainWindow'
    strOptions += 'status='+((bStatus=='1')?'yes':'no')
    strOptions += ',directories='+((bDirectories=='1')?'yes':'no')
    strOptions += ',location='+((bLocation=='1')?'yes':'no')
    strOptions += ',toolbar='+((bToolBar=='1')?'yes':'no')
    strOptions += ',menubar='+((bMenuBar=='1')?'yes':'no')
    strOptions += ',scrollbars='+((bScrollBars=='1')?'yes':'no')
    strOptions += ',resizable='+((bResizable=='1')?'yes':'no')
    strOptions += ',fullscreen='+((strSize=='Full Screen')?'yes':'no')

    if (strSize!='undefined' && strSize!='' && strSize!='Specified' && strSize!='Default' && strSize!='Full Screen') {
        strTemp = dbiSetWindowSize(strSize,bAdjust)
        strTemp = String(strTemp).split('-')
        iWidth = strTemp[0]
        iHeight = strTemp[1]
    }

    if (strPosition!='undefined' && strPosition!='' && strPosition!='Specified' && strPosition!='Default') {
        if (parseInt(iWidth) > 0 && parseInt(iHeight) > 0) {
            var iTopTemp = parseFloat(iTop)
            var iLeftTemp = parseFloat(iLeft)
            strTemp = dbiGetWindowPosition(iWidth,iHeight,strPosition,bAdjust)
            strTemp = String(strTemp).split('-')
            iTop = parseFloat(strTemp[0]) + iTopTemp
            iLeft = parseFloat(strTemp[1]) + iLeftTemp
        }
    }

    if (strSize=='Default') {
        iWidth = -1
        iHeight = -1
    }

    if (strPosition=='Default') {
        iTop = -1
        iLeft = -1
    }

    if (parseInt(iWidth)  > 0) strOptions += ',width='+iWidth
    if (parseInt(iHeight) > 0) strOptions += ',height='+iHeight
    if (parseInt(iTop) >= 0)  strOptions += ',top='+iTop +',screenY='+iTop
    if (parseInt(iLeft) >= 0) strOptions += ',left='+iLeft + ',screenX='+iLeft

    strOptions = (bDefualt==1) ? '' : strOptions

    strPage = (String(strPage)!='undefined') ? strPage : ''

    window.name = strOpenerName
    _winPopUp = window.open(strPage,strName,strOptions)
    _winPopUp.opener = window
    _winPopUp.opener.name = window.name
    _winPopUp.focus()
}

function dbiGetWindowPosition(iWidth,iHeight,strPosition,bAdjust) {

    var strOut = ''
    var iScreenHeight = parseInt(screen.height)
    var iScreenWidth= parseInt(screen.width)
    var iTop = 0
    var iLeft = 0
    var iOffsetTop = 0
    var iOffsetLeft = 0
    if (bAdjust==1) {
         iOffsetTop = -59
         iOffsetLeft = -10
    }
    strPosition = String(strPosition).toLowerCase()

    switch(strPosition) {

        case 'bottom center':
            iTop = parseInt(iScreenHeight - iHeight) + iOffsetTop
            iLeft = parseInt((iScreenWidth - iWidth + iOffsetLeft)/2)
            break
        case 'bottom left':
            iTop = parseInt(iScreenHeight - iHeight) + iOffsetTop
            iLeft = 0
            break
        case 'bottom right':
            iTop = parseInt(iScreenHeight - iHeight) + iOffsetTop
            iLeft = parseInt(iScreenWidth - iWidth) + iOffsetLeft
            break
        case 'center':
            iTop = parseInt((iScreenHeight - iHeight + iOffsetTop)/2)
            iLeft = parseInt((iScreenWidth - iWidth + iOffsetLeft)/2)
            break
        case 'middle left':
            iTop = parseInt((iScreenHeight - iHeight + iOffsetTop)/2)
            iLeft = 0
            break
        case 'middle right':
            iTop = parseInt((iScreenHeight - iHeight + iOffsetTop)/2)
            iLeft = parseInt(iScreenWidth - iWidth) + iOffsetLeft
            break
        case 'top center':
            iTop = 0
            iLeft = parseInt((iScreenWidth - iWidth + iOffsetLeft)/2)
            break
        case 'top left':
            iTop = 0
            iLeft = 0
            break
        case 'top right':
            iTop = 0
            iLeft = parseInt(iScreenWidth - iWidth) + iOffsetLeft
            break
    }
    strOut = '' + iTop + '-' + iLeft
    return strOut
}


function dbiSetWindowSize(strSize,bAdjust) {

    var strOut = ''
    var iScreenWidth = parseInt(screen.width)
    var iScreenHeight = parseInt(screen.height)
    var iWidth = 0
    var iHeight = 0

    strSize = String(strSize).toLowerCase()

    if (bAdjust==1) {
        iScreenHeight = (strSize=='1/4') ? iScreenHeight - 144 : iScreenHeight
        iScreenWidth = (strSize=='1/4') ? iScreenWidth - 40 : iScreenWidth
        iScreenHeight = (strSize=='1/2') ? iScreenHeight - 88 : iScreenHeight
        iScreenWidth = (strSize=='1/2') ? iScreenWidth - 20 : iScreenWidth
        iScreenHeight = (strSize=='3/4') ? iScreenHeight - 69 : iScreenHeight
        iScreenWidth = (strSize=='3/4') ? iScreenWidth - 12 : iScreenWidth
        iScreenHeight = (strSize=='maximized') ? iScreenHeight - 59 : iScreenHeight
        iScreenWidth = (strSize=='maximized') ? iScreenWidth - 10 : iScreenWidth
    }

    switch(strSize) {

        case '1/4':
            iHeight = parseInt((iScreenHeight)/4)
            iWidth = parseInt((iScreenWidth)/4)
            break
        case '1/2':
            iHeight = parseInt((iScreenHeight)/2)
            iWidth = parseInt((iScreenWidth)/2)
            break
        case '3/4':
            iHeight = parseInt((iScreenHeight)*.75)
            iWidth = parseInt((iScreenWidth)*.75)
            break
        case 'maximized':
            iHeight = parseInt(iScreenHeight)
            iWidth = parseInt(iScreenWidth)
            break
    }
    strOut = '' + iWidth + '-' + iHeight
    return strOut
}
// Support Script (779)
// 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("Image5");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("Image5");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
var objInfo = new objectInfo("Image2");
if (objInfo.fullName.length > 0)
  eval(objInfo.fullName + objInfo.styleKey + ".visibility='hidden'");
if (String(typeof(Section1))!="undefined") centerPage("780")
if (String(typeof(eval("document.LyrSection1")))!="undefined") centerPage("780")
 }
function Image4_onClick() {
var strPage = (""!="") ? "" : "Home1.html"
var strName = "popup"
OpenCustomWindow(strPage,strName,"780","520","0","0","0","0","0","0","0","0","0","Top Center","0","mainWindow","0","Specified")
 }
function _Image4_onClick() { if (Image4) return Image4.onClick(); }
function Image4_onMouseOver() {
var objInfo = new objectInfo("Image5");
objInfo.show();
 }
function _Image4_onMouseOver() { if (Image4) return Image4.onMouseOver(); }
function Image4_onMouseOut() {
var objInfo = new objectInfo("Image5");
objInfo.hide();
 }
function _Image4_onMouseOut() { if (Image4) return Image4.onMouseOut(); }
function Image1_onMouseOver() {
var objInfo = new objectInfo("Image5");
objInfo.show();
var objInfo = new objectInfo("Image2");
objInfo.show();
 }
function _Image1_onMouseOver() { if (Image1) return Image1.onMouseOver(); }
function Image1_onMouseOut() {
var objInfo = new objectInfo("Image5");
objInfo.hide();
var objInfo = new objectInfo("Image2");
objInfo.hide();
 }
function _Image1_onMouseOut() { if (Image1) return Image1.onMouseOut(); }

