
<!--

var m_names = new Array("January", "February", "March", 
"April", "May", "June", "July", "August", "September", 
"October", "November", "December");

var d = new Date();
var curr_date = d.getDate();
var curr_month = d.getMonth();
var curr_year = d.getFullYear();
//document.write(curr_date + "-" + m_names[curr_month] + "-" + curr_year);

/* The last two lines above have 
to placed on a single line */

//-->


// This function replaces characters to be displayed back to the browser with xss safe characters
function removeSpecialChars(input) {
var output = "";
var char="";
for (count = 0 ; count < input.length ; count ++) {
	switch (input.charAt(count)) {
		case "<":
			output = output + "&#60";
			break;
		case ">":
			output = output + "&#62";
			break;
		case '"':
			output = output + "&#34";
			break;
		case "'":
			output = output + "&#39";
			break;
		case ")":
			output = output + "&#41";
			break;
		case "(":
			output = output + "&#40";
			break;
		case "+":
			output = output + "&#43";
			break;
		case "&":
			output = output + "&#38";
			break;
		case ";":
			output = output + "&#59";
			break;
		default:
			output = output + input.charAt(count);
			break;
	}
}
return output;
} // End removeSpecialChars(input)


var aRVP  = new Array();
var sRVPBoxTitle =  '<h3>Last viewed pages</h3>';
var sRVPBoxTitleHistory = '';
var sRVPCookieText = '<div class="RVPOffMessage">Please enable cookies on your browser to activate this functionality.</div>';
var cookieDomain = "";
if( window.location.host.indexOf("activate.adobe.com") == -1 ){
	cookieDomain = "";
} else {
	cookieDomain = "; domain=tboi.php.com";
		
}
document.cookie = "PwC=PwC; path=/";
//alert(document.cookie);
var cookieenabled = (document.cookie.indexOf("PwC=") != -1) ? true : false

//checks if current page needs to be recorded in the cookie
function processRVP()
{
     var pos;
  
  // checks if cookies are enabled
  if (!(cookieenabled)) {return;}
 
 //read cookie and load global array
  readRVPCookie();
   
   //check for the indicator to record this url
   // 0 = not to record; any value = record
   if (readMetaTag("RVPFlag") == "0")  return; 
  
   // check for # sign followed by any
       var tUrl = document.location.href;
       if (tUrl.indexOf('#') != -1) {tUrl = tUrl.substring(0,tUrl.indexOf('#')); }
        
   if (!(recentRVP(tUrl)))
   {
     
       // get link description
      var sRVPTitle = readMetaTag("RVPTitle");
      if (sRVPTitle == "") 
      {  
          //get title from <title> tag
         sRVPTitle = document.title;
          if (typeof sRVPTitle != "undefined")
          {
	             // searches for something like "..& Skye Bank Plc:!## Test "
	             var mt = new RegExp(/^([^a-zA-Z0-9]*)Skye Bank Plc([^a-zA-Z0-9]*)\s/i);
	             sRVPTitle = sRVPTitle.replace(mt,"");
           }
          else {sRVPTitle = "";}
      }
         
      //record values in the cookie 
     if ((sRVPTitle != "") && (typeof sRVPTitle != "undefined") && (sRVPTitle != "undefined"))
     { 
       var pageInfo = escape(tUrl) + "~~" + escape(sRVPTitle) + "~~_self~~0~~" + curr_date + "-" + m_names[curr_month] + "-" + curr_year + "~~~" ;
        recordRVP(pageInfo);
       //repoopulate global array
       readRVPCookie();
     }
  
    }
 
}
  
// record in the cookie as requested
function processbyreqRVP(title,url,target)
{  
   // checks if cookies are enabled
   if (!(cookieenabled)) {return;}
  
   // checks if title and url are provided
   if ((title == "") || (url == "")) {return;}
  
   // check for # sign followed by any
       var tUrl = url;
       if (tUrl.indexOf('#') != -1) {tUrl = tUrl.substring(0,tUrl.indexOf('#')); }
        
   if (!(recentRVP(tUrl)))
   { 
     //record values in the cookie 
      if  ( (!(target)) || (target == '')) var pageInfo = escape(tUrl) + "~~" + escape(title) + "~~_blank~~1~~~" ;
      else var pageInfo = escape(tUrl) + "~~" + escape(title) + "~~" + target + "~~1~~~" ;
      recordRVP(pageInfo);
    
    //repoopulate global array
    readRVPCookie();
   }
   
 }
// record URL as most RVP in the cookie
function recordRVP(pageInfo)
{
   // checks if cookies are enabled
   if (!(cookieenabled)) {return;}
 
   var cookieSTR =  "RVPLinks=" + pageInfo;
   for (var i=0; i < aRVP.length; i++)
    { 
        if ((aRVP[i]) && (aRVP[i]  != "")) cookieSTR =  cookieSTR + aRVP[i] + "~~~";
        //if (i >= 4) break; 
     }
   document.cookie = cookieSTR + ";path=/" + cookieDomain;
 }
// checks if URL is recorded as the most recent RVP
function recentRVP(url)
{
if ( (!(aRVP[0])) || (aRVP[0] == "") ) {return false;}
//checks first entry
var tRVP = aRVP[0].split("~~");
if (tRVP[0] == escape(url)) {return true;}
           
return false;
 }
 
 
 function unique(a)
{
   var r = new Array();
   o:for(var i = 0, n = a.length; i < n; i++) {
      for(var x = i + 1 ; x < n; x++)
      {
         if(a[x]==a[i]) continue o;
      }
      r[r.length] = a[i];
   }
   return r;
}
 
// populate links for RVP box using cookie
function displayRVP()
{
   
 // checks if cookies are enabled and display appropriate message if cookies are disabled
 if (!(cookieenabled)) 
  {
document.write('<div class="RVPBox">' + sRVPBoxTitle + '<br/>' + sRVPCookieText + '</div>');
return;
   }
   
 //display  links
    var parmArray = new Array();
    var hdr = 0;
    var j = 0;
    var urlStr;
    var tUrl;
   	
   	aRVP = unique(aRVP);
   	//alert(aRVP.length);
    //display cookie contents
    if ((aRVP[0]) && (aRVP[0] != "") )
    {
       for (var i=0; i < aRVP.length; i++)
      {  
         if (aRVP[i])
        { 
            parmArray = aRVP[i].split("~~");
            if (i == 0) {
		           // check for # sign followed by any
		           tUrl = document.location.href;
		           if (tUrl.indexOf('#') != -1) {tUrl = tUrl.substring(0,tUrl.indexOf('#')); }
            }
            if ( (parmArray[1]) && (parmArray[0]) && ( (i > 0) || ( (i == 0)  && (!recentRVP(tUrl))) ))
            {
                // write header
                if (hdr == 0) {hdr = 1; document.write('<div class="RVPBox">' + sRVPBoxTitle + '<ul>');}
        
//	         urlStr = '<li><a href="' + unescape(parmArray[0]) + '"';
	         urlStr = '<li><a href="' + removeSpecialChars(unescape(parmArray[0])) + '"';
	                
		         // window target
		         if ((parmArray[2]) && (parmArray[2] != 0))   {urlStr = urlStr + ' target="' + parmArray[2]  + '"';}
		          
		        //check to see if this needs to be tagged to record in RVP
		        if ((parmArray[3]) && (parmArray[3] == 1))  
		              {urlStr = urlStr + ' onClick="processbyreqRVP(\'' + unescape(parmArray[1]) + '\',\'' + unescape(parmArray[0]) + '\',\'' + parmArray[2] + '\');"';}
		        tUrl = unescape(parmArray[1]).replace("<","&lt;");
                      tUrl = tUrl.replace(">","&gt;");
               	
             	urlStr = urlStr + ' title="' + unescape(parmArray[1]) + '">' + tUrl +  '</a></li>';
		        document.write(urlStr);
		        j = j + 1;		              
                 
             }
             if (j >= 5) break;
          }
        }  //  end of for loop
if (hdr == 1) {document.write('</ul></div>');}
     }  
 
 }
 
 // populate links for RVP box using cookie
function displayRVPHome()
{
   
 // checks if cookies are enabled and display appropriate message if cookies are disabled
 if (!(cookieenabled)) 
  {
document.write('<div class="RVPBox">' + sRVPBoxTitle + '<br/>' + sRVPCookieText + '</div>');
return;
   }
   
 //display  links
    var parmArray = new Array();
    var hdr = 0;
    var j = 0;
    var urlStr;
    var tUrl;
   
    //display cookie contents
    if ((aRVP[0]) && (aRVP[0] != "") )
    {
       for (var i=0; i < aRVP.length; i++)
      {  
         if (aRVP[i])
        { 
            parmArray = aRVP[i].split("~~");
            if (i == 0) {
		           // check for # sign followed by any
		           tUrl = document.location.href;
		           if (tUrl.indexOf('#') != -1) {tUrl = tUrl.substring(0,tUrl.indexOf('#')); }
            }
            if ( (parmArray[1]) && (parmArray[0]) && ( (i > 0) || ( (i == 0)  && (!recentRVP(tUrl))) ))
            {
                // write header
                if (hdr == 0) {hdr = 1; document.write('<div class="RVPBox">' + sRVPBoxTitle + '<ul>');}
        
//	         urlStr = '<li><a href="' + unescape(parmArray[0]) + '"';
	         urlStr = '<li><a href="' + removeSpecialChars(unescape(parmArray[0])) + '"';
	                
		         // window target
		         if ((parmArray[2]) && (parmArray[2] != 0))   {urlStr = urlStr + ' target="' + parmArray[2]  + '"';}
		          
		        //check to see if this needs to be tagged to record in RVP
		        if ((parmArray[3]) && (parmArray[3] == 1))  
		              {urlStr = urlStr + ' onClick="processbyreqRVP(\'' + unescape(parmArray[1]) + '\',\'' + unescape(parmArray[0]) + '\',\'' + parmArray[2] + '\');"';}
		        tUrl = unescape(parmArray[1]).replace("<","&lt;");
                      tUrl = tUrl.replace(">","&gt;");
					  if(tUrl.length > 30){
						  tUrl = tUrl.substring(0,30) + "...";
					  }
		        urlStr = urlStr + ' title="' + unescape(parmArray[1]) + '">' + tUrl +  '</a></li>';
		        document.write(urlStr);
		              
                 j = j + 1;
             }
             if (j >= 4) break;
          }
        }  //  end of for loop
if (hdr == 1) {document.write('</ul></div>');}
     }  
 
 }
// read cookie contents
function readRVPCookie()
{
var lnkStr = document.cookie;
var pos = lnkStr.indexOf("RVPLinks=");
if (pos == -1) return; 
// eliminate the text "PwC=PwC;RVPLinks=" from the string
lnkStr = lnkStr.substring(pos+9);
if (lnkStr.indexOf(";") > -1) {lnkStr = lnkStr.substring(0,lnkStr.indexOf(";"));}
//load  links in global array
aRVP = lnkStr.split("~~~");
}
// read meta tag for value
function readMetaTag(tagName)
{
  
  var content = "";
   
  // check for various browsers and versions  
 
  if (document.getElementById)   {  
        if (document.getElementById(tagName))  content = document.getElementById(tagName).content; 
     }
 else if (document.all) { 
        if (document.all[tagName])  content = document.all[tagName].content; 
     }  
 else if (document.layers) { 
        if (document.layers[tagName])  content = document.layers[tagName].content; 
     }
  
  return content;
  
}
processRVP();

// populate links for RVP box using cookie
function displayRVPHistory()
{
   
 // checks if cookies are enabled and display appropriate message if cookies are disabled
 if (!(cookieenabled)) 
  {
document.write('<div class="RVPBoxHistory">' + sRVPBoxTitleHistory1 + '<br/>' + sRVPCookieText + '</div>');
return;
   }
   
 //display  links
    var parmArray = new Array();
    var hdr = 0;
    var j = 0;
    var urlStr;
    var tUrl;
	//var count = 1;
   //alert(parmArray.length);
    //display cookie contents
    if ((aRVP[0]) && (aRVP[0] != "") )
    {
       for (var i=0; i < aRVP.length; i++)
      {  
         if (aRVP[i])
        { 
            parmArray = aRVP[i].split("~~");
            if (i == 0) {
		           // check for # sign followed by any
		           tUrl = document.location.href;
		           if (tUrl.indexOf('#') != -1) {tUrl = tUrl.substring(0,tUrl.indexOf('#')); }
            }
            if ( (parmArray[1]) && (parmArray[0]) && ( (i > 0) || ( (i == 0)  && (!recentRVP(tUrl))) ))
            {
                // write header
                if (hdr == 0) {hdr = 1; document.write('<div class="RVPBoxHistory">' + sRVPBoxTitleHistory + '<ul>');}
        
//	         urlStr = '<li><a href="' + unescape(parmArray[0]) + '"';
	         urlStr = '<li><a href="' + removeSpecialChars(unescape(parmArray[0])) + '"';
	                
		         // window target
		         if ((parmArray[2]) && (parmArray[2] != 0))   {urlStr = urlStr + ' target="' + parmArray[2]  + '"';}
		          
		        //check to see if this needs to be tagged to record in RVP
		        if ((parmArray[3]) && (parmArray[3] == 1))  
		              {urlStr = urlStr + ' onClick="processbyreqRVP(\'' + unescape(parmArray[1]) + '\',\'' + unescape(parmArray[0]) + '\',\'' + parmArray[2] + '\');"';}
		        tUrl = unescape(parmArray[1]).replace("<","&lt;");
                      tUrl = tUrl.replace(">","&gt;");
		        urlStr = urlStr + ' title="' + unescape(parmArray[1]) + '">' + tUrl +  '</a>';
				if(parmArray[4]){
				urlStr = urlStr + '<span>(Date Visited: ' + parmArray[4] + ')</span>';
				}
				urlStr = urlStr + '</li>';
		        document.write(urlStr);
		              
                 j = j + 1;
             }
             if (j >= 30) break;
          }
        }  //  end of for loop
if (hdr == 1) {document.write('</ul></div>');}
     }  
 
 }
 
 
//link vars
lpn_Key = [''];
lpn_Value = [''];
ssl = '';
var domain='';
var domain_imagessl='';

// These are the page configuration parameters
var topNavVersion='htmlstd2';
var sections=['0'];
var lang = 'eng';
var languageIdentifiers=['eng'];
var languageNames=['English'];
var languageURLs=['/extweb/home.nsf/docid/5FC9D56417735E8B80256DBF00287759'];
var section='0';
var country='ng';
var configVal = 0;
var css = 'Terracotta';
var hideTopNav = 0;
if ( ( configVal - 128 ) >= 0 ){
   var hideTopNav = 1;
   configVal -= 128;
}
var hideTabMenu = 0;
if ( ( configVal - 64 ) >= 0 ){
   hideTabMenu = 1;
   configVal -= 64;
}
var hideSearchBox = 0;
if ( ( configVal - 32 ) >= 0 ){
   hideSearchBox = 1;
   configVal -= 32;
}
var hideCountryBox = 0;
if ( ( configVal - 16 ) >= 0 ){
   hideCountryBox = 1;
   configVal -= 16;
}
// Hide territory/country drop down box if site is using microsite topnav 
// and appropriate option value is selected in config document
if ("0"=="1"){
	hideCountryBox = 1;
}
var hideLPN = 0;
if ( ( configVal - 8 ) >= 0 ){
   hideLPN = 1;
   configVal -= 8;
}
var hideLang = 0;
if ( ( configVal - 4 ) >= 0 ){
   hideLang = 1;
   configVal -= 4;
}
// Hide language option 1 - Hide on all pages
if ("0"=="1"){
	hideLang = !hideLang;
}
// Hide language option 2 - Hide on all pages, except home page
if ("0"=="2"){
	if ("htmlstd2"!="ghp2" && "htmlstd2"!="htmlhp2"){
		hideLang = !hideLang;
	}
}
var hideGHPLink = 0;
if ( ( configVal - 2 ) >= 0 ){
   hideGHPLink = 1;
   configVal -= 2;
}
var hidePwCLogo = 0;
if ( configVal == 1 ){
   hidePwCLogo = 1;
}
//This processes LPN URLs
function lpnLink( url ){
	if( url == null ){
		return( "" );
	}
	if( url == "" ){
		return( "" );
	}
	urlTxt = new String( url );
	for( i = 0; i <= lpn_Key.length-1; i++ ){
		if( lpn_Key[ i ] == urlTxt ) {
			urlTxt = lpn_Value[ i ];
			break;
		}
		splitUrl = urlTxt.split( lpn_Key[ i ] );
		urlTxt = splitUrl.join( lpn_Value[ i ] );
	}
	return( urlTxt );
}
//This processes URLs
function link( url ){
	if( url == null ){
		return( "" );
	}
	if( url == "" ){
		return( "" );
	}
	if( domain =="" ){
		return( url );
	}
	if( url.charAt( 0 ) == "/" ){
		return( domain + url );
	}
	return( url );
}

// This function calls the OnLoad event.
function doOnLoadTasks(){
	//This function resides in the Standards.JS document
	startList();
}
window.focus()

