try
   {
	window.onerror = null 
   	var temp = parent.document.location.href;	  
   }
   catch(errorObject)
   {
   	var csspath = "<link rel=\"stylesheet\" type=\"text/css\"  href=\"includes/eyonlineintegration.css\" />";
	document.write (csspath);
	var eyonlinesource = "yes";
   }
 

/**
 *      This is the Javascript function from ey.js is 
 *	now integrated with eyonlineintegration.js to reduce the    
 *	javascript handling burden.
 *	and ey.js no longer exist
 */

function showDiv(carry)
	{ document.getElementById(carry).style.display = "block"; }
function hideDiv(carry)
	{ document.getElementById(carry).style.display = "block"; }
function showMore(carry)
	{
		if (document.getElementById) {
			var visId = document.getElementById(carry);
			var vis = visId.style;
			if (vis.display == "block"){
				vis.display = "none";
			} else {
				vis.display = "block";
			}
			return false;
		} else {
			return true;
		} 
	}

function hideIndustryDiv() { 
		document.getElementById('Industry1').style.display = "none";             
}

var theWidth = getBrowserWidth();

function getBrowserWidth()
{
	if (window.innerWidth)
	{
		return window.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth != 0)
	{
		return document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		return document.body.clientWidth;
	}
	
	return 0;
};

	function write800CSS()
	{
		cssPath = "includes/eyMain800.css"
		if (theWidth <= 796)
		{
			document.write("<link rel='stylesheet' type='text/css' href="+ cssPath+" />");
		}
		else
		{
		 
		}
	} 

//This function added on 20080220 - for Slant Callout images...
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"><img title='"+ img.alt+"' alt='"+ img.alt+"' src=\"/global/content.nsf/resources/Global_New_Images/$file/Slant-Triangle-Mask216x180.gif\"/></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
}
if (window.attachEvent) window.attachEvent("onload", correctPNG);
