// mx-spa.js // These are the page configuration parameters var configRemovePwCLogo = 0 var configRemoveLPN = 0 var configRemoveCountryLogo = 0 var configRemoveLangSelector = 0 var configRemoveGreyBar = 0 var configRemoveSiteNav = 0 var configRemoveQuickSearch = 0 var configRemoveTopNav = 0 // This file is generated automatically by a database in the PwC website. // Begin arrays var domain='' var domain_imagessl='' var tranImgPath='/images/ui/tran.gif' var sections=['home','svcs'] var clickPathItems=['Inicio', '-', 'Servicios', 'Industrias', 'Temas de Actualidad', 'Publicaciones', 'Oportunidades de Carrera', 'Eventos', 'Acerca de Nosotros', 'Oficinas', 'PwC en los Medios', ''] var clickPathURLs=['/mx/spa/main/home/index.html', '-', '/mx/spa/about/svcs/index.html', '/mx/spa/about/ind/index.html', '/mx/spa/ins-sol/issues/index.html', '/mx/spa/ins-sol/publications/index.html', '/mx/spa/careers/main/index.html', '/mx/spa/about/events/index.html', '/mx/spa/about/main/index.html', '/mx/spa/about/locations/index.html', '/mx/spa/about/press-rm/index.html', ''] var clickPathPaths=['home', '-', 'svcs', 'ind', 'current', 'publ', 'careers', 'events', 'about', 'locations', 'press-rm', ''] var languageIdentifiers=['eng', 'spa'] var languageNames=['English', 'Espa�ol'] var languageURLs=['/mx/eng/main/home/index.html', '/mx/spa/main/home/index.html'] var pulldownItemNames=['Seleccionar de...', 'Inicio', '-----------------------------------', 'Servicios', 'Industrias', 'Temas de Actualidad', 'Publicaciones', 'Oportunidades de Carrera', 'Eventos', 'Acerca de Nosotros', '-Oficinas', 'PwC en los Medios', '  ___________________________  '] var pulldownIndentLevels=[0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0] var pulldownURLs=['', '/mx/spa/main/home/index.html', '-', '/mx/spa/about/svcs/index.html', '/mx/spa/about/ind/index.html', '/mx/spa/ins-sol/issues/index.html', '/mx/spa/ins-sol/publications/index.html', '/mx/spa/careers/main/index.html', '/mx/spa/about/events/index.html', '/mx/spa/about/main/index.html', '/mx/spa/about/locations/index.html', '/mx/spa/about/press-rm/index.html', ''] var footerLinks=['Privacy Statement ', 'Limitaci�n de Responsabilidad', 'Email Webmaster'] var footerURLs=['/extweb/aboutus.nsf/docid/0B7D5841DBFA29F28525701300728571', '/mx/spa/main/legal/index.html', 'mailto:[email protected]'] var LPNLineAmt="1" // Begin Portal Footer Section.... This section sets up Footer Variables to support the Portal Footer Links. // If a page on our site is called from the portal it can pass a parameter in the query string ['pf=ext' or 'pf=int'] // if this parameter is set then the page is displayed with the appropriate Portal Footer links.... // If the TopNav document does not contain Portal Footer links then the normal links are displayed. var footerLinksPortalExt=[] var footerURLsPortalExt=[] var footerLinksPortalInt=[] var footerURLsPortalInt=[] if(location.search.search("pf=ext")!=-1 && footerLinksPortalExt.length>0){ footerLinks=footerLinksPortalExt footerURLs=footerURLsPortalExt }else if(location.search.search("pf=int")!=-1 && footerLinksPortalInt.length>0){ footerLinks=footerLinksPortalInt footerURLs=footerURLsPortalInt } var clickpath='' // --- BEGIN FUNCTIONS --- // Loop through all the entries in the sections array and add its proper text and URL to the clickpath t=0 for(j=0; j' i=clickPathPaths.length } } } } // This function generates the language list in the topNav section of the document. // If there is only 1 language it is not displayed. If there are 3 or less languages for the current document the links are displayed as text. // If there are more than three languages, they are displayed in a dropdown list. function generateLanguageList(){ if (languageIdentifiers.length>3){ document.write('
') document.write('
'); }else if(languageIdentifiers.length>1){ for(i=0; i'+languageNames[i]+'') } } } // This function changes navigates the browser to the selected language. function langSelected(i){ window.top.location.href=languageURLs[i] } // This function calls langSelected to navigate the browser to the selected language page based on the selected index. function pageSelected() { selectedIndex=document.langSelectorForm.langSelector.selectedIndex langSelected(selectedIndex) } // This function is used to generate the Site Navigation dropdown menu. When a user changes the dropdown it jumps to the new page. // Also, it indents links based on the LinkLevel indicated. (If this value is set to greater than 3 the link does not show up in the dropdown) function generateSectionPulldown(){ document.write('') } // This function is used to write the footer links. If an @ symbol is found we do not prepend the domain to this URL if one is passed in the domain variable--This is because we assume the link to be a mailto if an @ symbol is found. function writeFooterLinks(){ var out = "" out += "
.  PricewaterhouseCoopers refers to the network of
" out+="" out+="" out+="
member firms of PricewaterhouseCoopers International Limited, each of which is
a separate and independent legal entity. All rights reserved.
" out+="" for (i=0; i\n' } } out += "" document.write(out) } /* BEGIN NEW COPYRIGHT FUNCTIONS */ function writeDisclaimer(year){ if(!year){ year="2005" } document.write("© "+year+" PricewaterhouseCoopers. All rights reserved. PricewaterhouseCoopers refers to the network of member firms of PricewaterhouseCoopers International Limited, each of which is a separate and independent legal entity.") } function writeFooterLinksNew(){ for (i=0; i'+footerLinks[i]+'') } } } function writeFooter(year){ document.write("
") document.write("
") writeDisclaimer(year) document.write("
") writeFooterLinksNew() document.write("
") } /* END NEW COPYRIGHT FUNCTIONS */ // This function is used to jump to the URL of the entry selected in a dropdown menu. function go(){ formOb=document.selecter selectOb=formOb.sectionPullDown selectedIndex=selectOb.selectedIndex destinationURL = pulldownURLs[selectedIndex] if ((destinationURL!=null) && (destinationURL!='') && (destinationURL!='-')){ window.top.location.href = destinationURL } } // This function opens the print window function openPrintWin() { PopUp=window.open("http://" +location.hostname+"/servlet/printFormat?url=" + location,"","menubar=yes,menubars=yes,toolbars=yes,toolbar=yes,scrollbars=yes,resizable=yes"); } function printWin(){ window.openPrintWin(0); } // The next two functions open popup windows function PwC_popup(strURL, strHeight, strWidth, strTop, strLeft, strLabel ) { document.write(""+strLabel+""); } function PwC_popupOpen(strURL, strHeight, strWidth, strTop, strLeft, strCookieDuration ) { var host = window.location.hostname; // strCookieCuration is an optional parameter if ( strCookieDuration && (host=="www.pwc.com" || host=="pwc.com" || host=="www.pwcglobal.com" || host=="pwcglobal.com") ) { // If this is being called from a page on the live site, we check to see if a cookie exists var allcookies = window.document.cookie; // alert(allcookies); var cookieName = "PwCPopupLaunch&" + strURL + "&" + window.location.pathname; var pos = allcookies.indexOf(cookieName + "="); var value; if (pos != -1) { var start = pos + cookieName.length + 1; var end = allcookies.indexOf(";", start); if (end == -1) end = allcookies.length; value = allcookies.substring(start, end); } else {value="0"}; if (value != "0") {return false}; // now we know the cookie either does not exist or is '0' (which means ignore), so we will set the cookie var cookieDuration = parseFloat(strCookieDuration); if (isNaN(cookieDuration)) {return false}; var expDate = new Date(); expDate.setTime(expDate.getTime() + (cookieDuration * 86400000)) window.document.cookie = cookieName + "=" + cookieDuration + ";expires=" + expDate.toGMTString(); }; if (isNaN(strTop)) { strTop=0 }; if (isNaN(strLeft)) { strLeft=0 }; window.open(strURL, "", "left=" + strLeft + ", top=" + strTop + ", height=" + strHeight + ", width=" + strWidth + ", toolbar=no, location=no, status=no, scrollbars=yes, resizable=yes"); } function rotatingImage(colourScheme, size){ var whichImage = Math.round((Math.random()*100)/(100/brandImages.length-1)); while(whichImage > brandImages.length-1){ whichImage = Math.round((Math.random()*100)/(100/brandImages.length)); } if(rotatingImage.arguments.length > 1 && size.toLowerCase() == "tall"){ sizePath = "tall";} else{ sizePath = "reg";} document.write("
"); } // These functions swaps the images in the Persistent Nav.. function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i"); document.write ("\"Global"); document.write ("\"Country"); document.write ("\"Offices\""); if (LPNLineAmt == "2") { document.write("") }; document.write ("\"Site"); document.write ("\"Search\""); document.write ("\"Contact"); document.write(""); } // This function generates the PwC Logo function PwCLogo() { document.write ("PwClogo"); } // This function generates the Country Logo function CountryLogo() { document.write ("home"); } // This function generates the Language Selector function LangSelector() { generateLanguageList() } // This function generates the Site Navigatior function SiteNavigator() { document.write (""); document.write (""); document.write (""); document.write (""); document.write ("
Site Navigation"); generateSectionPulldown() document.write ("GO
"); } // This function generates the Quick Search function QuickSearch() { document.write (""); document.write (""); document.write (""); document.write (""); document.write (""); document.write ("
Site Search"); document.write (""); document.write (""); document.write (""); document.write ("
"); } // This function generates the Grey Bar function GreyBar() { document.write (""); document.write (""); } // This function computes the quickSearchURL and jumps to it when search is submitted. (Collection Based Search version) function submitQuickSearchToURL(htmlformname,toURL) { //alert("to URL" + toURL) var currform = window.document.forms[htmlformname]; var action =toURL; if (currform.ss.value != "") action += "&ss="+currform.ss.value; if (currform.ln.value !="") action +="&ln="+currform.ln.value; if (currform.rn.value !="") action +="&rn="+currform.rn.value; //if they were specified, add stylesheet and nav's action += "&searchLoc=http://search1.pwc.com/search/" //+searchDomain; action +="?sp-a=00063301-sp00000000" //+searchAccount; action +="&sp-t=js" action += "&sp-x-1=pwcGeo"; action += "&sp-q-1="+ currform.sp_q_1.value; action += "&sp-x-2=pwcLang"; action += "&sp-q-2=" + currform.sp_q_2.value; if (currform.sp_c.value !="") action +="&sp-c="+currform.sp_c.value; if (currform.sp_p.value !="") action +="&sp-p="+currform.sp_p.value; //action += "&sp-f=ISO-8859-1"; action += "&sp-x-9=pwcHideLevel"; action += "&sp-q-9=0"; action += "&sp-q="+ escape(currform.sp_q.value.replace("&"," ")); if(top.frames.length>=1){ top.location.href=action; }else{ window.location.href=action; } } // This function generates the Quick Search for country language specific (Collection Based Search) function countrySpecificQuickSearch() { //alert("countrySpecificQuickSearch") document.write(""); if(top.frames.length>=1){ document.write(""); }else{ document.write(""); } document.write (""); document.write (""); document.write (""); document.write(""); document.write(""); document.write("
Site Search"); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write ("
"); } // This function generates the Header function Header(){ DoOnLoadTasks() if (configRemoveTopNav==0) { document.write (""); if (configRemoveGreyBar==0) { GreyBar();} } document.write ("
"); document.write ("
"); if (configRemovePwCLogo==0) { PwCLogo();} document.write ("
"); if (configRemoveCountryLogo==0) { CountryLogo();} document.write ("
"); document.write (""); document.write (""); document.write(""); document.write (""); if (configRemoveLPN==0) { LPN();} document.write ("
"); if (configRemoveLangSelector==0) { LangSelector();} document.write ("
"); } 1
Hosted by www.Geocities.ws