var USER_FIRST_NAME="FNAME";var USER_LAST_NAME="LNAME";var USER_EMAIL="EMAIL";var USER_REMEMBER_ME="REMEMBER";var SUBSCRIPTION_RETURN_VALUE="http://www.ft.com/";var SUBSCRIPTION_NAME_INPUT_ID="username";var SUBSCRIPTION_PASSWORD_INPUT_ID="password";var SUBSCRIPTION_REMEMBER_ME_INPUT_ID="rememberme";var SUBSCRIPTION_LOCATION_INPUT_ID="location";var SUBSCRIPTION_SIGN_UP_NOW_URL="https://registration.ft.com/registration/subscription-service/signup?segid=01289&segsrc=fthome";var SUBSCRIPTION_MANAGE_ACCOUNT_URL="http://registration.ft.com/registration/selfcare/";var SUBSCRIPTION_REMEMBER_ME_HELP_URL="http://www.ft.com/servicestools/rememberme";var SUBSCRIPTION_ABOUT_SUBSCRIPTION_URL="http://www.ftlatest.com/subs-guide/";var TAKE_A_TOUR_URL="http://media.ft.com/subs-guide";var OVERSIZED="oversized";var CONTENT="content";var CONT="cont";var PAGE_HEADER="page-header";var PAGE_CONTENT="page-content";var PAGE_FOOTER="page-footer";var AD_PLACEHOLDER="ad-placeholder";var AD_CONTAINER="ad-container";var TRUNC="trunc";var STRING_USERNAME="Username";var STRING_ENTER_USERNAME="";var STRING_PASSWORD="Password";var STRING_ENTER_PASSWORD="";var STRING_REMEMBER_ME="Remember me";var STRING_LOG_IN="Log in";var STRING_LOG_OUT="Log out";var STRING_YOUR_ACCOUNT="Your account";var STRING_YOUR_ACCOUNT_TITLE="Click to change your details";var STRING_ABOUT_SUBSCRIPTION="About subscription";var STRING_YOUR_DETAILS="Your details";var STRING_SUBSCRIBE="Subscribe";var DIV="div";var SPAN="span";var UL="ul";var IMG="img";var ANC="a";var H3="h3";var TR="tr";var CLASS=is.ie?"className":"class";var INPUT="input";var SELECT="select";var TEXTAREA="textarea";var OBJECT="object";var TYPE="type";var TEXT="text";var PASSWORD="password";var IFRAME="iframe";var UNDEFINED="undefined";var VISIBLE="visible";var HIDDEN="hidden";var ABSOLUTE="absolute";var BLOCK="block";var INLINE="inline";var NONE="none";var MOUSEOVER="mouseover";var MOUSEOUT="mouseout";var CLICK="click";var FOCUS="focus";var BLUR="blur";var FULL_SUPPORT=0;var PARTIAL_SUPPORT=1;var UNKNOWN_SUPPORT=2;var browserSupportLevel;var osSupportLevel;if(is.ie5_5up||is.fx||is.nav7up||is.opera7up){browserSupportLevel=FULL_SUPPORT;}else if(is.ie5||is.opera6){browserSupportLevel=PARTIAL_SUPPORT;}else{browserSupportLevel=UNKNOWN_SUPPORT;} if(is.win){osSupportLevel=FULL_SUPPORT;}else if(is.mac||is.unix){osSupportLevel=PARTIAL_SUPPORT;}else{osSupportLevel=UNKNOWN_SUPPORT;} function initPage(){if(document.getElementsByTagName){var divArr=document.getElementsByTagName(DIV);for(var i=0;i=0||div.getAttribute(CLASS).indexOf(AD_CONTAINER)>=0)){if(typeof adsMouseoverHandler!="undefined"&&typeof adsMouseoutHandler!="undefined"){elListener(div,MOUSEOVER,adsMouseoverHandler);elListener(div,MOUSEOUT,adsMouseoutHandler);}}}} if(is.opera6||is.ie5&&!is.ie5_5){var contEl=document.getElementById(CONTENT);if(contEl){addElementsToHideToCache(contEl);}} adjustPageWidth();} function adjustPageWidth(){var bdyEl=document.getElementsByTagName("body")[0];if(bdyEl.getAttribute(CLASS)&&bdyEl.getAttribute(CLASS).indexOf(OVERSIZED)>=0){var content=document.getElementById(CONTENT);var cont=document.getElementById(CONT);var pageHeader=document.getElementById(PAGE_HEADER);var pageContent=document.getElementById(PAGE_CONTENT);var pageFooter=document.getElementById(PAGE_FOOTER);content.style.width="auto";var realContentWidth=content.offsetWidth+150;if(realContentWidth<783){realContentWidth=783;} pageHeader.style.width=realContentWidth+"px";pageContent.style.width=realContentWidth+"px";pageFooter.style.width=realContentWidth+"px";content.style.width="100%";}} var refreshTimer=null;var refreshDelay=240000;var doRefreshTimer=false;function startRefreshTimer(delay,masterStart){if(masterStart){doRefreshTimer=true;} if(delay){refreshDelay=delay;} if(doRefreshTimer&&!refreshTimer){refreshTimer=setTimeout("window.location.reload(false)",refreshDelay);}} function stopRefreshTimer(){clearTimeout(refreshTimer);refreshTimer=null;} var currentTime;function setCurrentTime(millis){currentTime=millis;} function writeDate(publishDate,dateStyle,dateFormat,expireTime){if(parseInt(currentTime)&&(currentTime-publishDate) - '+dateFormat+'');}} function writeHeaderDate(){var d=new Date();var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var htmlStr=weekday[d.getDay()]+" "+monthname[d.getMonth()]+" "+d.getDate()+" "+d.getFullYear();document.write(htmlStr);} function isLoggedIn(){var lName=getCookieValueSubs(USER_LAST_NAME,null);var ckExists=getCookieValueSubs(USER_REMEMBER_ME,null);if(lName==null){ckExists=null;} return(ckExists)?true:false;} function writeSubscriberInfo(){var FTHDR_SUBSCRIBE_DIV="fthdr_subscribe";var FTHDR_SIGNEDIN_DIV="fthdr_signedin";var fName=getCookieValueSubs(USER_FIRST_NAME,null);var lName=getCookieValueSubs(USER_LAST_NAME,null);var eMail=getCookieValueSubs(USER_EMAIL,null);var fmRetval=SUBSCRIPTION_RETURN_VALUE;var USERNAME_PARAGRAPH_ID="int_subsname";var EMAIL_PARAGRAPH_ID="int_subsemail";var theSubscriber=false;var ckExists=null;var fmAction='barrier';if(fName==''){fName=null;} if(lName==''){lName=null;fmRetval=thisPage.thisLoc;} else if(lName!=null){var idx=lName.indexOf(";")>0?lName.indexOf(";"):lName.length;lName=lName.substring(0,idx);} if((fName!=null)&&(lName!=null)){theSubscriber=true;ckExists=true;fmAction='login/logout';} if(lName==null){fmRetval=thisPage.thisLoc;} var htmlStr;if(ckExists==null){htmlStr='
'+'
'+'

'+STRING_SUBSCRIBE+'

'+' '+'
'+' '+'
'+'
'+' '+'
'+' '+' '+'
'+'
';}else{fName=unescape(fName).replace(/\+/g," ");lName=unescape(lName).replace(/\+/g," ");var name=fName.substring(0,1)+". "+lName;eMail=unescape(eMail);var dodgyBrowser=(is.mac&&is.ie)||(is.ie5&&!is.ie5_5);displayName=dodgyBrowser?name.substr(0,14)+"...":" ";displayEmail=dodgyBrowser?eMail.substr(0,16)+"...":" ";htmlStr=' ';} document.write(htmlStr);var subsName=document.getElementById(USERNAME_PARAGRAPH_ID);var subsEmail=document.getElementById(EMAIL_PARAGRAPH_ID);if(subsName&&subsEmail&&!dodgyBrowser){truncateStrToOneLine(name,subsName);truncateStrToOneLine(eMail,subsEmail);if(subsEmail){subsEmail.innerHTML=''+subsEmail.innerHTML+'';}}} var TRIPLET="triplet";var FIRST_THIRD="first-third";var SECOND_THIRD="second-third";var THIRD_THIRD="third-third";function setTripletHeights(){var divArr=document.getElementsByTagName(DIV);for(var d=0;d=0){var thirdDivs=theDiv.getElementsByTagName(DIV);for(var t=0;t=0){firstDivContent=tDiv;}else if(tClassName.indexOf(SECOND_THIRD)>=0){secondDivContent=tDiv;}else if(tClassName.indexOf(THIRD_THIRD)>=0){thirdDivContent=tDiv;}}} var height1=firstDivContent.clientHeight>0?firstDivContent.clientHeight:firstDivContent.scrollHeight;var height2=secondDivContent.clientHeight>0?secondDivContent.clientHeight:secondDivContent.scrollHeight;var height3=thirdDivContent.clientHeight>0?thirdDivContent.clientHeight:thirdDivContent.scrollHeight;var max1=Math.max(height1,height2);var max2=Math.max(height1,height3);var max3=Math.max(height2,height3);if(height1!=height2||height1!=height3||height2!=height3){var finalMax=Math.max(max1,max2);if(is.ie5||is.ie5_5){finalMax+=3;} finalMax-=3;finalMax+="px";firstDivContent.style.height=finalMax;secondDivContent.style.height=finalMax;thirdDivContent.style.height=finalMax;if(!is.ie){firstDivContent.style.height="auto";secondDivContent.style.height="auto";thirdDivContent.style.height="auto";firstDivContent.style.minHeight=finalMax;secondDivContent.style.minHeight=finalMax;thirdDivContent.style.minHeight=finalMax;}} var h3s=theDiv.getElementsByTagName(H3);var h3MaxHeight=0;for(var h=0;hheight){el.innerHTML=str.substring(0,strLen--).wrap()+"...";newHeight=el.offsetHeight;} el.style.visibility="visible";}} String.prototype.wrap=function(){return this.split("").join("");} function getValue(key,defaultVal){var value=defaultVal;var ck=typeof location.search!='undefined'?location.search.toString():'';var begin;var str;if(key&&key.length>0&&ck&&ck.length>0){key+='=';begin=ck.indexOf(key)>-1?ck.indexOf(key)+key.length:-1;if(begin>-1){str=ck.substr(begin,ck.length);value=str.substr(0,str.indexOf('&')>0?str.indexOf('&'):str.length);}} return(value);} function getValueFromStr(key,defaultVal,inStr,sep,keySep){var value=defaultVal;var begin;var str;if(key&&key.length>0){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 getCookieValueSubs(key,defaultVal){return(getValueFromStr(key,defaultVal,document.cookie,':'));} function elListener(obj,eventName,handlerFunc){var targetObj=(obj&&(typeof obj=="string"))?document.getElementById(obj):obj;if(targetObj){if(document.addEventListener){targetObj.addEventListener(eventName,handlerFunc,false);}else if(document.attachEvent){targetObj.attachEvent("on"+eventName,handlerFunc);}else{eval("targetObj.on"+eventName+" = handlerFunc");}}} function elUnListener(obj,eventName,handlerFunc){var targetObj=(obj&&(typeof obj=="string"))?document.getElementById(obj):obj;if(targetObj){if(document.removeEventListener){targetObj.removeEventListener(eventName,handlerFunc,false);}else if(document.removeEvent){targetObj.removeEvent("on"+eventName,handlerFunc);}else{}}} function showElement(){var el;for(var i=0;i/ig,"").replace(/&/,"&");if(is.nav6){setTimeout(function(){window.status=msg;},1);}else{window.status=msg;} if(e&&e.preventDefault){e.preventDefault();}}} function getBrowserWidth(){return getBrowserHeightOrWidth(true);} function getBrowserHeight(){return getBrowserHeightOrWidth();} function getBrowserHeightOrWidth(returnWidth){var myWidth=0;var myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;} return returnWidth?myWidth:myHeight;} function attachOnload(codeToAttach){var currOnload=window.onload?window.onload:function(){void(0);};window.onload=function(){currOnload();eval(codeToAttach)};} function ifrmParams(id,isOnload){if(id=='ftsubscribe'){} else{if(is.mac&&is.ie&&!isOnload){attachOnload("ifrmParams('"+id+"',true)");}else{var ifrm=document.getElementById(id);var newParams=location.search;if(newParams.match(/ifrmLoc=([^&]*)/)||document.cookie.match(/ifrmLoc=([^;]*)/)){var newSrc=unescape(RegExp.$1);newSrc+=((newSrc.indexOf("?")>-1)?"&":"?")+(ifrm.src.match(/\?(.*)/)?RegExp.$1:"");ifrm.src=newSrc;}else{if(typeof(ifrm.src.split("?")[1])!="undefined"){newParams+=(newParams.length>0?"&":"?")+ifrm.src.split("?")[1];} ifrm.src=ifrm.src.split("?")[0]+newParams;}} document.cookie="ifrmLoc=; expires="+new Date().toGMTString()+"; path=/; domain=ft.com";}} var defaultIframeHeightSet=false;function ifrmSize(id){var ifrm=document.getElementById(id);var realIfrmHeight;if(top.document.body.ifrmHeight){realIfrmHeight=top.document.body.ifrmHeight;if(!defaultIframeHeightSet){ifrm.style.height="2000px";defaultIframeHeightSet=true;} if(realIfrmHeight){ifrm.style.height=realIfrmHeight+50+"px";var contHeight=document.getElementById("content-top").offsetHeight-document.getElementById("content-top").offsetTop;ifrm.style.height=Math.max(realIfrmHeight,contHeight)+50+"px";}}else if(ifrm&&ifrm.src.match(/ftH=([^&]*)/)){realIfrmHeight=RegExp.$1;ifrm.style.height=realIfrmHeight+"em";}else{ifrm.style.height="2000px";}} function goToAnchor(anchorname) {var pathinfo=location.pathname;var pos=pathinfo.indexOf("#");if(pos>=0){pathinfo=pathinfo.substring(0,pos-1);} window.location=pathinfo+"#"+anchorname;} isShowEllipsis=false;function showEllipsis(numLines){doShowEllipsis(numLines);} function doShowEllipsis(numLines){var contentWell=document.getElementById(CONTENT);var elArr=(document.all)?document.all:contentWell.getElementsByTagName("*");var elHeight;var truncArr=new Array();for(var ix=0;ix-1){truncArr[truncArr.length]=el;el.setAttribute(CLASS,el.getAttribute(CLASS).replace(/trunc/,""));}} for(var i=0;i ";}} el.innerHTML=blanks;elHeight=el.offsetHeight;el.innerHTML=htmlStr;if(el.offsetHeight>elHeight){var tit=el.getAttribute("title");el.setAttribute("title",unescape(el.innerHTML).replace(/&/,"&")+((tit&&tit.length>0)?" - "+tit:""));el.innerHTML=wordArr.pop();while(el.offsetHeight<=elHeight){el.innerHTML+=" "+wordArr.pop();} el.innerHTML=el.innerHTML.replace(/(\W[^\s]*)$/,"");while(el.offsetHeight<=elHeight){el.innerHTML+=".";} el.innerHTML=el.innerHTML.replace(/\..$/,"");if(!el.innerHTML.match(/\.{3}$/)){var loopCount=0;el.innerHTML=el.innerHTML.replace(/(\W[^\s]*)$/,"");while(el.offsetHeight<=elHeight){el.innerHTML+=".";++loopCount;if(loopCount>40){break;}} el.innerHTML=el.innerHTML.replace(/\.$/,"");}}}} function tabShowHide(tabToShow,tabToHide,tabToHideTwo){if(document.getElementById){document.getElementById(tabToHide).style.visibility='hidden';document.getElementById(tabToHide).style.display='none';document.getElementById(tabToShow).style.display='block';document.getElementById(tabToShow).style.visibility='visible';} if(!tabToHideTwo==0){document.getElementById(tabToHideTwo).style.visibility='hidden';document.getElementById(tabToHideTwo).style.display='none';}} function selectAll(func){try{doSaFunction(func);} catch(errorObject) {msg="An error has occured.\n\n";msg+="Please manually enter your alert preferences\n";msg+="Click OK to continue.\n\n";msg+="Error number: "+ (errorObject.number&0xffff)+"\n";msg+="Description: "+ errorObject.description+"\n\n";alert(msg);}} function doSaFunction(func){var radCount=document.editAlerts.getElementsByTagName("input").length;radCount-=2;radCount/=3;for(var i=0;i20){var nidWinger=null;if(document.getElementById("nid-menu")){nidWinger=document.getElementById("nid-menu");}else if(document.getElementById("nid-briefing")){nidWinger=document.getElementById("nid-briefing");} if(nidWinger){if(is.ie){if(!is.ie6up)imageHeight+=2;nidWinger.style.height=imageHeight+"px";}else{nidWinger.style.minHeight=imageHeight+"px";}}} var wdeskyContainer=document.getElementById("ad-container-wdesky");var wdeskPlaceholder=document.getElementById("ad-placeholder-wdesky");if(wdeskyContainer&&wdeskPlaceholder){var divvy=wdeskPlaceholder.getElementsByTagName("div")[0];if(divvy){wdeskyContainer.style.top=getElementTop(divvy)+"px";}}}} function setFeaturedJobHeight(){for(var loop=0,maxcount=(divCollection=document.getElementsByTagName('div')).length;loop-1){var leftHeight=rightHeight=-1;var leftDiv=rightDiv=null;for(var loop2=0,maxcount2=(divRow=divCollection[loop].getElementsByTagName('div')).length;loop2-1)leftHeight=(leftDiv=divRow[loop2+1]).offsetHeight;if(divRow[loop2].className.indexOf('jbox-right')>-1)rightHeight=(rightDiv=divRow[loop2+1]).offsetHeight;} if(leftHeight!=rightHeight){var variance=27;if(is.ie&&!is.ie6up)variance=0;if(leftHeight>rightHeight)rightDiv.style.height=leftHeight-variance+'px';if(leftHeight1){hasOnlyOne=false;}} return hasOnlyOne;}} function DirMCategory(nameM){var strName=nameM;var regionArr=new Array();this.addRegion=function(region){regionArr[regionArr.length]=region;} this.getName=function(){return strName;} this.getRegion=function(val){return regionArr[val];} this.getRegions=function(){return regionArr;}} function DirMRegion(nameD,uri){var strNameD=nameD;var uri=uri;this.setName=function(val){name=val;} this.getName=function(){return strNameD;} this.setUri=function(val){uri=val;} this.getUri=function(){return uri;}} function processDirMClick(countryM,categoryIdx){var strCountry=eval(countryM);var categories=strCountry.getCategories();var sel=document.getElementById("dirMSelect");var lbl=document.getElementById("dirMRegionCategoryLabel");if(sel){sel.options.length=null;var onlyOneRegion=strCountry.hasOnlyOneRegionPerCategory();if(categoryIdx&&categoryIdx!=-1){var regions=strCountry.getCategory(categoryIdx).getRegions();sel.options[sel.options.length]=new Option("[back to categories]",-1);for(r in regions){sel.options[sel.options.length]=new Option(regions[r].getName(),regions[r].getUri());} if(lbl){lbl.innerHTML="Select region";}}else{for(c in categories){sel.options[sel.options.length]=new Option(categories[c].getName(),onlyOneRegion?categories[c].getRegion(0).getUri():c);} var wholething=document.getElementById("regionmultiselector").innerHTML;if(wholething){wholething=wholething.replace(/>Private Client/," class='hilight' >Private Client");wholething=wholething.replace(/>Trading: Financial/," class='hilight' >Trading: Financial");wholething=wholething.replace(/>Trading: Futures/," class='hilight' >Trading: Futures");wholething=wholething.replace(/>CFD Trading/," class='hilight' >CFD Trading");document.getElementById("regionmultiselector").innerHTML=wholething;} if(lbl){lbl.innerHTML="Select category";}}}} function dirMProcessForm(){var sel=document.getElementById("dirMSelect");if(sel&&sel.selectedIndex>-1){var optValue=sel[sel.selectedIndex].value;if(!isNaN(optValue)){var countryRadio=document.getElementById("dirMCountryUK");var country=countryRadio.checked?"uk":"us";processDirMClick(country,optValue);}else{document.location.href=optValue;}} return false;} function dirMInit(){document.getElementById("frm_directoryM").style.display='block';document.getElementById("frm_directoryM").style.visibility='visible';processDirMClick(document.getElementById("dirMCountryUK").checked?"uk":"us");} var uk=new DirMCountry();var us=new DirMCountry();function divShow(divID){if(document.getElementById){document.getElementById(divID).style.visibility='visible';document.getElementById(divID).style.display='block';}} function divHide(divID){if(document.getElementById){document.getElementById(divID).style.visibility='hidden';document.getElementById(divID).style.display='none';}} function hiLight(elem){document.getElementById(elem).style.backgroundColor="#990000";document.getElementById(elem).style.color="#FFFFFF";} function loLight(elem){document.getElementById(elem).style.backgroundColor="#FFFFFF";document.getElementById(elem).style.color="#999999";} function showHideSection(_data){loLight(visible_section);hiLight(_data.id);_data=_data.href;if(visible_section!='')divHide('g-section-'+visible_section);visible_section=_data.substring(_data.lastIndexOf('#')+1,_data.length);if(visible_section!='')divShow('g-section-'+visible_section);}