try
   {
	window.onerror = null 
   	var temp = parent.document.location.href;	  
   }
   catch(errorObject)
   {
   	var csspath = "<link rel=\"stylesheet\" type=\"text/css\"  href=\"/global/content.nsf/resources/Global_New_CSS/$file/eyonlineintegration.css\" />";
	document.write (csspath);
	var eyonlinesource = "yes";
   }
 
  
  


// Browser Redirect Code
var browserName = navigator.appName;
  if (browserName == 'Microsoft Internet Explorer'){
     var offset = navigator.userAgent.indexOf('MSIE');
     var token  = navigator.userAgent.substr(offset, 8);
     var ver    = parseFloat(token.substr(5, token.length));
     if (ver < 4.0){
document.location.replace('/Global/content.nsf/International/Redirect');
     }else{
     }
  }else{
     if (browserName == 'Netscape'){
         var offset = navigator.userAgent.indexOf('Mozilla');
        var token  = navigator.userAgent.substring(offset, 11);
        var ver    = parseFloat(token.substring(8, token.length));
if (ver < 5.0){
            document.location.replace('/Global/content.nsf/International/Redirect');
        }else{
        }
     }else{  //any other server
        if (!document.getElementById){
          document.location.replace('/Global/content.nsf/International/Redirect');
        }else{
       }
     }
  }

// Domain Redirect Code
var Loc = document.location.href;
var hos = document.location.host;
var hosindex = hos.indexOf("www");
if (hos.indexOf("ey.com.au")==-1)
{
if ((GCRDom != hos) && (hosindex != -1))
     {
var nLoc = Loc.replace(hos,GCRDom);
document.location.href = nLoc; 
      }
}
function NewWindow(mypage, myname, w, h, scroll)   
{  var winl = (screen.width - w) / 2;  
var wint = (screen.height - h) / 2;  
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,location=yes,toolbar=yes'  
win = window.open(mypage, myname, winprops)      
if (parseInt(navigator.appVersion) >= 4)      
{        
win.window.focus();        
}  

}

function pageLauncher(launchUrl, launchTarget) 
{
	
	if (launchTarget == "_Top")
	{
               window.open(launchUrl,"mywindow","location=0,status=0,scrollbars=1,width=1030px,height=740px,left=10px,top=10px");
        }
	else
	window.location.href=launchUrl;
}



function contactUs(Sender)
{
temp=Sender.split("_");
Indx="";
if (temp[2])
	{	
		if (temp[1].length ==1 && temp[2].length ==3 ) 
		{	
			Sender = temp[0];
		
			Indx = "_" + temp[1] + "_" + temp[2];
		}
		
	}

//window.open('http://199.52.216.119/global/content.nsf/DContactus_New?Openform&EmailId='+Sender+'&Indx='+Indx+'&Site='+Site+'&URL='+location.href,"sWin",'width=770,height=700,screenX=0,screenY=0,alwaysRaised=yes,toolbar=no,scrollbars=yes,status=no');
window.open('https://forms.ey.com/global/content.nsf/DContactus_New?Openform&EmailId='+Sender+'&Indx='+Indx+'&Site='+Site+'&URL='+location.href,"sWin",'width=770,height=700,screenX=0,screenY=0,alwaysRaised=yes,toolbar=no,scrollbars=yes,status=no');
}

function contactUs_Int(Sender,country)
{

if (country.indexOf("Japan")!=-1)
country="Japan";

if (country.indexOf("Switzerland")!=-1)
country="Switzerland";

temp=Sender.split("_");
Indx="";
if (temp[2])
	{	
		if (temp[1].length ==1 && temp[2].length ==3 ) 
		{	
			Sender = temp[0];
		
			Indx = "_" + temp[1] + "_" + temp[2];
		}
		
	}

//window.open('http://199.52.216.119/global/content.nsf/DContactus_New?Openform&EmailId='+Sender+'&Indx='+Indx+'&Site='+Site+'&Country='+country+'&URL='+location.href,"sWin",'width=770,height=700,screenX=0,screenY=0,alwaysRaised=yes,toolbar=no,scrollbars=yes,status=no');
window.open('https://forms.ey.com/global/content.nsf/DContactus_New?Openform&EmailId='+Sender+'&Indx='+Indx+'&Site='+Site+'&Country='+country+'&URL='+location.href,"sWin",'width=770,height=700,screenX=0,screenY=0,alwaysRaised=yes,toolbar=no,scrollbars=yes,status=no');
}


function OnlineResume(Sender)
{
temp=Sender.split("_");
Indx="";

	if (temp[2])
	{	
		if (temp[1].length ==1 && temp[2].length ==3 ) 
		{	
			Sender = temp[0];
		
			Indx = "_" + temp[1] + "_" + temp[2];
		}
		
	}

	
window.open('http://199.49.75.38/global/content.nsf/DOnlineResume?Openform&EmailId='+Sender+'&Indx='+Indx+'&Site='+Site+'&URL='+location.href,"sWin",'width=770,height=700,screenX=0,screenY=0,alwaysRaised=yes,toolbar=no,scrollbars=yes,status=no');
}
//------------------------Smart Messaging Start--------------------------------------------------------
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this header

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  browserT=isIE ? document.all.theLayer : document.getElementById("theLayer"); 
 
  hotDog=isIE ? event.srcElement : e.target;  
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }  
  if (hotDog.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(browserT.style.left);
    nowY=parseInt(browserT.style.top);
    ddEnabled=true;
    //document.onmousemove=dd;
  }
}


function dd(e){
  if (!ddEnabled) return;
  browserT.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
  browserT.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;  
}

function ddN4(whatDog){
  if (!isN4) return;
  N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}


function hideMe(){
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
browserT=isIE ? document.all.theLayer : document.getElementById("theLayer"); 
 
if (browserT.style==null)
 {
	 browserT.style="document.all.theLayer.style";	
	 browserT.style.visibility="hidden";
	 location.reload();
 }
if (isIE||isNN) browserT.style.visibility="hidden";
else if (isN4) document.theLayer.visibility="hide";

}
function showMe(){
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
browserT=isIE ? document.all.theLayer : document.getElementById("theLayer");  

if (isIE||isNN) browserT.style.visibility="hidden";
else if (isN4) document.theLayer.visibility="hide";
  if (isIE||isNN) browserT.style.visibility="visible";
  else if (isN4) document.theLayer.visibility="show";
}

//document.onmousedown=ddInit;
//document.onmouseup=Function("ddEnabled=false");

//----------------------------------------------------------------------------------

function getCookieSM(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=")
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1 
    c_end=document.cookie.indexOf(";",c_start)
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end))
    } 
  }
return ""
}

function setCookieSM(name, value, expiredays, path, domain)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);

var curCookie  = name + "=" + (value) +
      ((expiredays) ? "; expires=" + exdate.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "");
            
      document.cookie = curCookie;
      
}

// this deletes the cookie when called
function Delete_Cookie( name, path, domain )
{
if ( getCookieSM( name ) )
{
document.cookie = name + "=" +
( ( path ) ? ";path=" + path : "") +
( ( domain ) ? ";domain=" + domain : "" ) +
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

}

//var dm = "ey.com";
//var dm = "eycomdev.iweb.ey.com";


function Yes(opt,url,left,top,width,height,toolbar,location,status,menubar,resizable,scrollbars)
{
/* Commented on 31-Dec-2007 - using JS Variable on Layout directly
var dcountry = (document.getElementsByName('SmCountry')[0].value)
var dorg = (document.getElementsByName('SmOrg')[0].value)
var darea = (document.getElementsByName('SmArea')[0].value) */
//var dm = (document.getElementsByName('SERVER_NAME')[0].value)
var dm=location.hostname;
setCookieSM('a1',dcountry,365,'/',dm)
setCookieSM('b1',dorg,365,'/',dm)
setCookieSM('c1',darea,365,'/',dm)
setCookieSM('d1',opt,365,'/',dm)
window_name = 'mywin'
window_options = 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+ toolbar+',location='+location+',status='+status+',menubar='+menubar+',resizable='+resizable+',scrollbars='+scrollbars
window.open(url, window_name, window_options); 
hideMe()
}

function No(opt)
{
/* Commented on 31-Dec-2007 - using JS Variable on Layout directly
var dcountry = (document.getElementsByName('SmCountry')[0].value)
var dorg = (document.getElementsByName('SmOrg')[0].value)
var darea = (document.getElementsByName('SmArea')[0].value) */
//var dm = (document.getElementsByName('SERVER_NAME')[0].value)
var dm=location.hostname;
setCookieSM('a1',dcountry,1,'/',dm)
setCookieSM('b1',dorg,1,'/',dm)
setCookieSM('c1',darea,1,'/',dm)
setCookieSM('d1',opt,1,'/',dm)
hideMe()
}

function Never(opt)
{
/* Commented on 31-Dec-2007 - using JS Variable on Layout directly
var dcountry = (document.getElementsByName('SmCountry')[0].value)
var dorg = (document.getElementsByName('SmOrg')[0].value)
var darea = (document.getElementsByName('SmArea')[0].value)*/
//var dm = (document.getElementsByName('SERVER_NAME')[0].value)
var dm=location.hostname;
setCookieSM('a1',dcountry,365,'/',dm)
setCookieSM('b1',dorg,365,'/',dm)
setCookieSM('c1',darea,365,'/',dm)
setCookieSM('d1',opt,365,'/',dm)
hideMe()
}

function setNLCookie()
{
   var dm=location.hostname;
   setCookieSM('nl',"1",365,'/',dm);
}
function setOCAWebformOnLoadCookie()
{
var dm=location.hostname;
setCookieSM('e1',"0",1,'/',dm);
}

function setOCAWebformOnSubmitCookie()
{
var dm=location.hostname;
setCookieSM('e1',"1",365,'/',dm);
}

function OpenOCALink(opt,webform,gcr,left,top,width,height,toolbar,location,status,menubar,resizable,scrollbars)
{

var check = getCookieSM("d1");
var opt = 6;
if (check == 0 || check == 6)
{
/* Commented on 31-Dec-2007 - using JS Variable on Layout directly
var dcountry = (document.getElementsByName('SmCountry')[0].value)
var dorg = (document.getElementsByName('SmOrg')[0].value)
var darea = (document.getElementsByName('SmArea')[0].value)*/
//var dm = (document.getElementsByName('SERVER_NAME')[0].value)
var dm=location.hostname;
setCookieSM('a1',dcountry,365,'/',dm)
setCookieSM('b1',dorg,365,'/',dm)
setCookieSM('c1',darea,365,'/',dm)
setCookieSM('d1',opt,365,'/',dm)
window_name = 'mywin'
window_options = 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+ toolbar+',location='+location+',status='+status+',menubar='+menubar+',resizable='+resizable+',scrollbars='+scrollbars
window.open(webform, window_name, window_options); 
}


if (check == 9) 
{
	window.location = gcr;
}


}


function initsite(){
return false;
}

function setAABSRegFormCookie()
{	
	
	var dm="ey.com";
	setCookieSM('MemberID_',(document.getElementsByName('ValidationID_')[0].value),365000,'/',dm);
	
}




function Initial_Cookie()
{


initsite();

/* Commented on 31-Dec-2007 - using JS Variable on Layout directly
var dcountry = (document.getElementsByName('SmCountry')[0].value)
var dorg = (document.getElementsByName('SmOrg')[0].value)
var darea = (document.getElementsByName('SmArea')[0].value)
var dopt = (document.getElementsByName('SmOption')[0].value) */
//var dm = (document.getElementsByName('SERVER_NAME')[0].value)
var dm=location.hostname;

// if (document.getElementsByName('SmCookie')[0].value == "0")
if (dsmcookie == "0")
{

	if (dcountry == "NA" || dorg == "NA")
	{
		setCookieSM('a1',dcountry,15,'/',dm)
		setCookieSM('b1',dorg,15,'/',dm)
		setCookieSM('c1',darea,15,'/',dm)
		setCookieSM('d1',dopt,15,'/',dm)
	}
	else
	{
		setCookieSM('a1',dcountry,5,'/',dm)
		setCookieSM('b1',dorg,5,'/',dm)
		setCookieSM('c1',darea,5,'/',dm)
		setCookieSM('d1',dopt,5,'/',dm)
	}

}

else

{
	Delete_Cookie('a1','/',"www.ey.com")
	Delete_Cookie('b1','/',"www.ey.com")
	Delete_Cookie('c1','/',"www.ey.com")
	Delete_Cookie('d1','/',"www.ey.com")

	if (dorg != "Ernst & Young LLP")
	{
		setCookieSM('a1',dcountry,5,'/',dm)
		setCookieSM('b1',dorg,5,'/',dm)
		setCookieSM('c1',darea,5,'/',dm)
		setCookieSM('d1',dopt,5,'/',dm)
	}
	else
	{
		switch(dopt)
		{
		case 1:
		setCookieSM('a1',dcountry,365,'/',dm)
		setCookieSM('b1',dorg,365,'/',dm)
		setCookieSM('c1',darea,365,'/',dm)
		setCookieSM('d1',dopt,365,'/',dm)
		break    
		case 2:
		setCookieSM('a1',dcountry,1,'/',dm)
		setCookieSM('b1',dorg,1,'/',dm)
		setCookieSM('c1',darea,1,'/',dm)
		setCookieSM('d1',dopt,1,'/',dm)
		break    
		case 3:
		setCookieSM('a1',dcountry,365,'/',dm)
		setCookieSM('b1',dorg,365,'/',dm)
		setCookieSM('c1',darea,365,'/',dm)
		setCookieSM('d1',dopt,365,'/',dm)
		break    
		}
	}
}
}


//------------------------Smart Messaging End--------------------------------------------------------

//------ Hit Count Code-----------
/*
var top1;
var msgPrompt ;

switch (Site)
{
case "US":
msgPrompt  = "Your Opinion is Requested."  + "\n" + "Ernst & Young is developing its website to provide maximum value to visitors. Your participation in this short website evaluation survey will allow us to tailor the ey.com site to your needs. The results will be analyzed by a leading, independent market research firm and will be kept strictly confidential";
break;
case "Australia":
msgPrompt  = "Give us your opinion."  + "\n" + "Ernst &Young is developing its website to provide maximum value to visitors. Your participation in this short website evaluation survey will allow us to tailor the EY.com site to your needs. The results will be analysed by a leading, independent market research firm and will be kept strictly confidential";
break;
case "China_E":
msgPrompt  = "Give us your opinion."  + "\n" + "Ernst &Young is developing its website to provide maximum value to visitors. Your participation in this short website evaluation survey will allow us to tailor the EY.com site to your needs. The results will be analysed by a leading, independent market research firm and will be kept strictly confidential";
break;
case "UK":
msgPrompt  = "Give us your opinion."  + "\n" + "Ernst & Young is developing its website to provide maximum value to visitors. Your participation in this short website evaluation survey will allow us to tailor the ey.com to your needs. The results will be analyzed by a leading, independent market research firm and will be kept strictly confidential";
break;
case "France":
msgPrompt  = "Donnez votre avis."  + "\n" + "Nous développons notre site afin de vous apporter le maximum de valeur ajoutée. En nous donnant votre avis au travers de cette enquete rapide, nous pourrons ainsi améliorer notre service et faire évoluer notre site en fonction de vos besoins. Les résultats seront analysés par une agence indépendante et resteront strictement confidentiels.";
break;
case "Germany":
msgPrompt  = "Ihre Meinung zählt."  + "\n" + "Ernst & Young entwickelt seine Website kontinuierlich weiter. Mit Ihrer Teilnahme an unserer kurzen Online-Umfrage helfen Sie uns, unsere Website noch besser an Ihre Bedürfnisse anzupassen. Die Ergebnisse werden von einem unabhängigen  Marktforschungsinstitut analysiert und streng vertraulich behandelt..";
break;
case "International":
msgPrompt  = "Give us your opinion."  + "\n" + "Ernst & Young is developing its website to provide maximum value to visitors. Your participation in this short website evaluation survey will allow us to tailor the EY.com site to your needs. The results will be analyzed by a leading, independent market research firm and will be kept strictly confidential";
break;
default : 
msgPrompt  = "Give us your opinion."  + "\n" + "Ernst & Young is developing its website to provide maximum value to visitors. Your participation in this short website evaluation survey will allow us to tailor the EY.com site to your needs. The results will be analyzed by a leading, independent market research firm and will be kept strictly confidential";
}
function BuildXMLVariables() 
{ 
	   	var objDOM = new ActiveXObject("Microsoft.XMLDOM")   
		RootEl = objDOM.createNode(1, "RootElement", "")
		objDOM.documentElement = RootEl
		objHeaders = objDOM.createNode(1, "S", "")
		objHeaders.text = Site;
		RootEl.appendChild(objHeaders)
		objHeaders = objDOM.createNode(1, "PT", "")
		objHeaders.text = pageTitle;
		RootEl.appendChild(objHeaders)
		return objDOM;
}
function runAgent(strAgentName, strXMLvariables) 
{
    objHTTP = new ActiveXObject("Microsoft.XMLHTTP"); 
    objHTTP.open("POST", strAgentName, false, "", ""); 
	objHTTP.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
	objHTTP.send(strXMLvariables); 
	resp = objHTTP.responseText;	
	objHTTP = null; 
	return resp; 
}

function setCookie(crick, value, expdate)
 {
curCookie = crick + "=" + escape (value) +"; path=/";
document.cookie = curCookie;
}

function strTrim(FieldValue)
{
 return FieldValue.replace(/^\s+/,'').replace(/\s+$/,'');
}

function HitCount()
{
if (document.domain != "www.ey.com" || browserName != 'Microsoft Internet Explorer')
{
return false;
}

top1= self.screenTop;
returnedText = runAgent("http://" + document.domain + "/Global/content.nsf/aHitCount?OpenAgent", BuildXMLVariables());
var Arrstr = returnedText.split("~")
	if ( returnedText.length > 3)
     {	
          setCookie('htcookie_ey_online_survey_site',strTrim(Arrstr[0]));
          setCookie('htcookie_ey_online_survey_count',strTrim(Arrstr[1]));
          setCookie('htcookie_ey_online_survey_url',strTrim(Arrstr[2]));
          setCookie('htcookie_ey_online_survey_Lcount',1);
          setCookie('htcookie_ey_online_survey_pageTitle',pageTitle);
          setCookie('htcookie_ey_online_survey_window',top1);
      }
	else 
	{
		//alert ("You Are Not Lucky")	
	}
}
//---------End of Hit count Code----------------------
//---------Page Unload Code Start----------------------
function getCookie(name) 
{
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
	if (begin == -1)
	{ begin = dc.indexOf(prefix);
		if (begin != 0) return null;
	} else
	begin += 2;
	var end = document.cookie.indexOf(";", begin);
if (end == -1)
end = dc.length;
return (dc.substring(begin + prefix.length, end));
}
function BuildXMLVariables_Reverse()
{
	var objDOM = new ActiveXObject("Microsoft.XMLDOM")
	RootEl = objDOM.createNode(1, "RootElement", "")
	objDOM.documentElement = RootEl
	objHeaders = objDOM.createNode(1, "S", "")
	objHeaders.text = Site;
	RootEl.appendChild(objHeaders)
	objHeaders = objDOM.createNode(1, "PT", "")
	objHeaders.text = getCookie("htcookie_ey_online_survey_pageTitle")
	RootEl.appendChild(objHeaders)
	objHeaders = objDOM.createNode(1, "rcount", "")
	objHeaders.text = getCookie("htcookie_ey_online_survey_count")
	RootEl.appendChild(objHeaders)
	return objDOM;
}
function unloadHitCount()
{
if (document.domain != "www.ey.com" || browserName != 'Microsoft Internet Explorer')
{
return false;
}
if (getCookie("htcookie_ey_online_survey_site") == null )
	{
	//alert("No cookie - No action done")
	}
else
	{
	a = getCookie("htcookie_ey_online_survey_window")
	b = self.screenTop
	 	if ( a == b)
		{
		CurrentLcount =getCookie("htcookie_ey_online_survey_Lcount")
			if (CurrentLcount == 2)
			{
			var x=window.confirm(msgPrompt)
				if (x)
				{
				var txt = getCookie("htcookie_ey_online_survey_url")
				txt = txt.substr(3,txt.length-1)
				txt = txt.replace("%3A",":")
				setCookie('htcookie_ey_online_survey_Lcount',"");
				setCookie('htcookie_ey_online_survey_Refused',"y");
				window.open(unescape(txt))
				return (true)
				}
				else
				{
				setCookie('htcookie_ey_online_survey_Lcount',"");
				setCookie('htcookie_ey_online_survey_Refused',"y");
				var returnedText1;
				returnedText1 = runAgent("http://" + document.domain + "/Global/content.nsf/aHitCountReverse?OpenAgent", BuildXMLVariables_Reverse());
				}
			}
			else
			{
			if (getCookie('htcookie_ey_online_survey_Refused') == null || getCookie('htcookie_ey_online_survey_Refused' != "y"))
			setCookie('htcookie_ey_online_survey_Lcount',parseInt(CurrentLcount)+1);
			}
		}
	else
		{
		if (getCookie("htcookie_ey_online_survey_Lcount") != null)
		{
		var x=window.confirm(msgPrompt)
			if (x)
			{
			var txt = getCookie("htcookie_ey_online_survey_url")
			txt = txt.substr(3,txt.length-1)
			txt = txt.replace("%3A",":")
			window.open(unescape(txt))
			}
			else
			{
			var returnedText2
			returnedText2 = runAgent("http://" + document.domain + "/Global/content.nsf/aHitCountReverse?OpenAgent", BuildXMLVariables_Reverse());
			}
		}
		}
	 }
}
*/
//---to be called on all the layout forms, unload event -----------------





/**
 *      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 = "/global/content.nsf/resources/Global_New_CSS/$file/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);