var wrap=null;var layerRef=(document.layers)?"document":"document.all";var styleRef=(document.layers)?"":".style";var isSub=typeof isSub=='undefined'?0:isSub;function pageOffset(){} function checkVisible(){} function init(){} function initPage(Site,Section,Page){} var flashPop=null;function winpop(url,width,height){outerWidth=width+12;outerHeight=height+24;if(flashPop){flashPop.close();flashPop=null;} if(!flashPop){flashPop=window.open(url,"FLASH_GALLERY","height="+outerHeight+", width="+outerWidth+", toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");}else{flashPop.location=url;} flashPop.focus();return false;} function PageAttributes(FTSite,FTSection,FTPage,FTFund){this.defsite='ftcom';this.wrap='';this.ftsec="&sec="+FTSection;this.ftpage="&artid="+FTPage;this.ftindcs="&sei="+FTIndices;this.ftsectr="§r="+FTSectors;this.ftsbjcts="&subj="+FTSubjects;this.ftfnd="&ftfund="+FTFund;this.ind="&ind="+FTIndustry;this.asset=typeof AssetType!='undefined'?AssetType.toLowerCase():'';this.getTransId=function(){var cDate=new Date();var uSec=cDate.getTime();return(uSec);} this.getRealLoc=function(){var realLoc='';if(self==top){realLoc=window.location.toString();} else if(window.ourLoc){realLoc=window.ourLoc;} else if(document.referrer){realLoc=document.referrer;} else{realLoc=window.location.toString();} if(realLoc.match(/location=([^&]*)/)){realLoc=unescape(RegExp.$1);} return realLoc;} this.isSecure=function(loc){var secure=0;if(loc.indexOf('https')>-1){secure=1;} return secure;} this.getFTSite=function(){var code=this.defsite;var ck=getCookieValue('FTAdSiteCode','');var client=getValueFromStr('ft_ref','',this.thisLoc,'&');var page=typeof FTSite!='undefined'?FTSite.toLowerCase():'';if(client){code=client;} else if(ck){code=ck;} else if(page){code=page;} return code;} this.getAdParams=function(){var sAYSC=getCookieValue('AYSC','');var params='';params+="&13="+getValueFromStr('_13','',sAYSC,'_','');params+="&14="+getValueFromStr('_14','',sAYSC,'_','');params+="&17="+getValueFromStr('_17','',sAYSC,'_','');params+="&18="+getValueFromStr('_18','',sAYSC,'_','');params+="&transId="+this.getTransId();return params;} this.getKeyword=function(loc){var keyword='';if((loc.indexOf("search.ft.com")!=-1)&&(loc.indexOf("queryText=")!=-1)){keyword=getValueFromStr('queryText','',loc,'&');}else if((loc.indexOf("mwprices.ft.com")!=-1)&&(loc.indexOf("symb=")!=-1)){keyword=getValueFromStr('symb','',loc,'&');}else if((loc.indexOf("recruitment.ft.com")!=-1)&&(loc.indexOf("q=")!=-1)){keyword=getValueFromStr('q','',loc,'&');}else if(getCookieValue('keywordValue','').length>0){keyword=getCookieValue('keywordValue','');} var whtSpc=new RegExp("\\+","g");var ampSym=new RegExp("%26","g");var apoSym=new RegExp("%27","g");var perSym=new RegExp("\\.","g");keyword=keyword.replace(whtSpc,"_");keyword=keyword.replace(ampSym,"and");keyword=keyword.replace(apoSym,"");keyword=keyword.replace(perSym,"");var keyStr=(keyword.length>0)?"&keyword="+keyword.toLowerCase():'';return keyStr;} this.revScienceSegExtraction=function(){var segCookie,ampTokens,segs;var cookieName="DMSEG";if((segCookie=getCookieValue(cookieName,''))!=''){segCookie=unescape(segCookie);ampTokens=segCookie.split("&");if(ampTokens.length>=6){segs=','+ampTokens[5]+',';}} var revSciParams='&rsi=';revSciParams+=segs;return revSciParams;} this.thisLoc=this.getRealLoc();this.ftsite=this.getFTSite();this.adparams=this.getAdParams();this.keyword=this.getKeyword(this.thisLoc);this.issec=this.isSecure(this.thisLoc);this.alladparams=this.ftsec+this.ftpage+this.ind+this.ftindcs+this.ftsectr+this.ftsbjcts+this.ftfnd+this.adparams+this.keyword+this.ind;this.revScience=this.revScienceSegExtraction();} var extLoc=[['FTYM-21ymy-21cacrcl','credit.ftyourmoney.com'],['FTYM-21ymy-21perloa','loans.ftyourmoney.com'],['FTYM-21ymy-21motori','www.aaaffinities.co.uk/Insurance/FT/Carquote'],['FTYM-21ymy-21travel','products.xelector.com'],['FTYM-21ymy-21mortga','mortgages.charcolonline.co.uk'],['FTYM-21ymy-21gaselec','www.uswitch.com/energy'],['FTYM-21ymy-21lifein','193.130.154.202'],['FTYM-21ymy-21homins','www.aaaffinities.co.uk/Insurance/FT/Homequote'],['FTYM-21ymy-21medins','212.212.140.140'],['FTYM-21ymy-21telsup','www.uswitch.com/ht'],['FTYM-21ymy-21annfin','www.hargreaveslansdown.co.uk'],['FTYM-21ymy-21uncass','www.uar.co.uk'],['FTCOM-12cul-12trasea','www.ft.otc-uk.com'],['FTCOM-24spt-12spgolf','www.sportinglife.com/clients/ft/golf'],['FTCOM-24spt-12spform','www.sportinglife.com/clients/ft/formula1'],['FTCOM-24spt-12sprugu','www.sportinglife.com/clients/ft/rugbyunion'],['FTCOM-24spt-12spfoot','www.sportinglife.com/clients/ft/football'],['FTCOM-24spt-12spboxi','www.sportinglife.com/clients/ft/boxing'],['FTCOM-24spt-12spracg','www.sportinglife.com/clients/ft/racing'],['FTCOM-24spt-12spsnok','www.sportinglife.com/clients/ft/snooker'],['FTCOM-24spt-12spcric','www.sportinglife.com/clients/ft/cricket'],['FTCOM-24spt-12spgrey','www.sportinglife.com/clients/ft/greyhounds'],['FTCOM-24spt-12sprugb','www.sportinglife.com/clients/ft/rugbyleague'],['FTCOM-24spt-12sporar','www.sportinglife.com/clients/ft/story_get'],['FTCOM-24spt-12sptenn','www.sportinglife.com/clients/ft/tennis'],['FTCOM-24spt-12spothr','www.sportinglife.com/clients/ft/others'],['FTCOM-24spt-12spnfls','www.sportinglife.com/clients/ft/nfl'],['FTCOM-24spt-12sports','www.sportinglife.com/clients/ft/home'],['FTCOM-24spt-12spbett','www.sportinglife.com/clients/ft/betting'],['FTCOM-24bfs-24burest','www.businessesforsale.com/ft/aspx/public/quicksearch.aspx'],['FTCOM-24bfs-24burest','www.businessesforsale.com/ft/advancedSearch.aspx'],['FTCOM-24bfs-24busale','www.businessesforsale.com/ft/servicesDirectory/'],['FTCOM-24bfs-24burest','www.businessesforsale.com/ft/quickSearch.aspx'],['FTCOM-24bfs-24burest','www.businessesforsale.com/ft/advert'],['FTCOM-24bfs-24burest','www.businessesforsale.com/ft/1'],['FTCOM-20job-20notice','www.businessesforsale.com/ft/notices'],['FTCOM-24bfs-24busale','www.businessesforsale.com/ft'],['FTCOM-3won-3ukespc','www.clic2mail.com/FT']];function getSiteNav(){var realDomain;var realLoc='';if(self==top){realLoc=window.location.toString();} else if(window.ourLoc){realLoc=window.ourLoc;} else if(document.referrer){realLoc=document.referrer;} else{realLoc=window.location.toString();} var navStr='';for(var i=0;i0){key+=arguments.length>=5?keySep:'=';begin=inStr.indexOf(key)>-1?inStr.indexOf(key)+key.length:-1;if(begin>-1){str=inStr.substr(begin,inStr.length);value=str.substr(0,str.indexOf(sep)>=0?str.indexOf(sep):str.length);}} return value;} function getCookieValue(key,defaultVal){return(getValueFromStr(key,defaultVal,document.cookie,';'));} function setCookieValue(key,value,domain,expireInMinutes){var expDate=new Date();expDate.setTime(expDate.getTime()+(expireInMinutes*60000));document.cookie var cookie=key+'='+value+';domain='+domain+';path=/;';if(expireInMinutes>-1){cookie+='expires='+expDate.toGMTString();} document.cookie=cookie;return true;} function deleteCookie(key,domain){document.cookie=key+'='+((domain)?';domain='+domain:'')+';path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT';return true;} function openPopUp(location,name,width,height,relativeTo,top,left){var tly;var tlx;var winProps;switch(relativeTo){case'screenTR':tlx=screen.width-width-left;tly=top;break;case'windowTL':tlx=window.dialogLeft?window.dialogLeft+left:0;tly=window.dialogTop?window.dialogTop+top:0;break;case'screenTL':default:tlx=left;tly=top;break;} winProps='scrollbars=no,toolbar=no,location=no,nonresizable,width='+width+',height='+height+',left='+tlx+',top='+tly;var objWin=window.open(location,name,winProps);objWin.focus();return objWin;} function FTCheckGo(obj){var winRef='top.';if(is.nav4){winRef='';} var sValue=obj.options[obj.options.selectedIndex].value;if(sValue!=''){eval(winRef+'location.href="'+sValue+'"');} obj.selectedIndex=0;return true;} function getDate(inDate){if(inDate==null){var now=new Date();}else{var now=new Date(inDate);} var day=now.getDay();var dday=now.getDate();var mon=now.getMonth();var year=now.getFullYear();var gbDays=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');var gbMons=new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');var zhDays=new Array('星期日','星期一','星期二','星期三','星期四','星期五','星期六');var thisChnYear="年";var thisChnMon="月";var thisChnDay="日";var outStr;switch(FTSite){case'FTCOM':outStr=gbDays[day]+' '+gbMons[mon]+' '+dday+' '+year;break;case'FTCHINA':outStr=year+thisChnYear+(mon+1)+thisChnMon+dday+thisChnDay+' '+zhDays[day];break;} return outStr;} function commonOnLoad(){if(!is.nav4){} if(!is.nav4){init();}} function finishPage(){var pop=new Advert("pop",thisPage.ftsite,thisPage.alladparams,thisPage.issec,thisPage.wrap);document.write(pop.adHTML);} function setHomepage(obj,url){if(is.ie&&document.getElementById){obj.style.behavior='url(#default#homepage)';obj.setHomePage(url);}else if(is.nav4){var msg='- Go to Preferences in the Edit Menu.\n'+'- Choose Navigator from the list on the left.\n'+'- Click on the "Use Current Page" button.';alert(msg);}else if(is.gecko){var msg='Drag the link onto your Home button to make this your Home Page.';alert(msg);}else if(is.opera5||is.opera6){var msg='- Go to Set Home Page in the Navigation Menu.\n'+'- Click on the "Use active" button.';alert(msg);}else if(is.opera7){var msg='- Go to Set Home Page in the Navigation Menu.\n'+'- Click on the "Use current" radio button.';alert(msg);}} function writeheader(siteVal,FTSite,FTSection,FTPage,FTFund){var html='';var headerLoc='http://media.ft.com/FTCOM/Wrapper/';var secHeaderLoc='https://www.ft.com/FTCOM/Wrapper/';if(siteVal=='noLoginHead'){header=headerLoc+'noLoginHeader.html';secureHeader=secHeaderLoc+'secure_noLoginHeader.html';}else if(isSub!=0){header='http://www.ft.com/global/subpageheader';secureHeader=secHeaderLoc+'secure_header.html?isSub=Y';}else{header='http://www.ft.com/global/header';secureHeader=secHeaderLoc+'secure_header.html';} var srcFile=isSecure(document)?secureHeader:header;var protocol=isSecure(document)?'https://www.ft.com/c.gif"':'http://media.ft.com/c.gif"';if(is.nav4){html+='';html+='
';}else{html+='
';html+='
';} document.write(html);} function writefooter(siteVal,FTSite,FTSection,FTPage,FTFund){var html='';var footer='http://media.ft.com/global/footer';var secureFooter='https://www.ft.com/FTCOM/Wrapper/secure_footer.html';var srcFile=isSecure(document)?secureFooter:footer;if(is.nav4){html+='';} else{html+='';} document.write(html);} function netscapeCssFix(){if(document.FT.netscapeCssFix.initWindowWidth!=window.innerWidth||document.FT.netscapeCssFix.initWindowHeight!=window.innerHeight){document.location=document.location;}} function netscapeCssFixCheckIn(){if(is.nav4==true){if(typeof document.FT=='undefined'){document.FT=new Object;} if(typeof document.FT.FT_scaleFont=='undefined'){document.FT.netscapeCssFix=new Object;document.FT.netscapeCssFix.initWindowWidth=window.innerWidth;document.FT.netscapeCssFix.initWindowHeight=window.innerHeight;} window.onresize=netscapeCssFix;}} netscapeCssFixCheckIn();function ready(){if(window.loading||(is.ie&&(document.readyState!='complete'))){return(false);} else{return(true);}} function getAdHTML(pos,width,height,ftsite,ftsection,ftpage,ftindustry){eval("var "+pos+" = new Advert(\""+pos+"\",thisPage.ftsite,thisPage.alladparams,thisPage.issec,thisPage.wrap);");return eval(pos+".adHTML");}