bbc.fmtj.utils.createObject("bbc.fmtj.common");bbc.fmtj.common.isReady=false;bbc.fmtj.common.version="v2_8";gloader.load(["glow","1","glow.dom","glow.events"],{async:true,onLoad:function(A){bbc.fmtj.common.alerts=(function(){return{}})();bbc.fmtj.common.bookmarks=(function(){var E="bbc.fmtj.common.bookmarks.display.DISPLAY_POPUP";var J="bbc.fmtj.common.bookmarks.display.DISPLAY_IFRAME";return{createBookmarks:C,display:{DISPLAY_POPUP:E,DISPLAY_IFRAME:J}};function C(L){if(L.container===undefined){L.container=".bookmark-list"}if(L.headline===undefined){L.headline=bbc.fmtj.page.headline}if(L.site===undefined){L.site=bbc.fmtj.page.site}if(L.storyId===undefined){L.storyId=bbc.fmtj.page.storyId}if(L.sectionId===undefined){L.sectionId=bbc.fmtj.page.sectionId}if(L.url===undefined){L.url=bbc.fmtj.page.url}if(L.edition===undefined){L.edition=bbc.fmtj.page.edition}if(L.display===undefined){L.display=E}I(L)}function I(M){this.o=M;var L=A.dom.get(M.container+" li a");A.events.addListener(L,"click",K,this)}function K(L){o.service=A.dom.get(L.attachedTo).text();G(o);D(o);return false}function G(L){bbc.fmtj.common.liveStats.createWebBug({referrer:document.location,pageType:"soc_"+L.service.toLowerCase(),sectionId:L.sectionId});return false}function D(L){switch(L.display){case E:F(L);break;case J:B(L);break;default:break}return false}function F(M){var L=H(M.service,M.url,M.headline);bbc.fmtj.common.window.createPopup({url:L,resizable:1,scrollbars:1,width:750});return false}function B(N){var M=H(N.service,N.url,N.headline);var L='
';gloader.load(["glow","1","glow.widgets.Panel"],{async:true,onLoad:function(P){var O=new P.widgets.Panel(P.dom.create(L),{width:750,theme:"dark",modal:true,anim:"fade"});O.show()}})}function H(L,M,O){var N="";switch(L.toLowerCase()){case"delicious":N="http://del.icio.us/post?v=4&noui&jump=close&url="+M+"&title="+O;break;case"digg":N="http://digg.com/remote-submit?phase=2&url="+M+"&title="+O;break;case"reddit":N="http://reddit.com/submit?url="+M+"&title="+O;break;case"facebook":N="http://www.facebook.com/sharer.php?u="+M+"&t="+O;break;case"stumbleupon":N="http://www.stumbleupon.com/submit?url="+M+"&title="+O;break;default:break}return N}})();bbc.fmtj.common.cookies=(function(){var D={};return{cookie:F,load:C,store:E,remove:B};function F(G){this._content=G.content;this._document=document;this._name=G.name;this._expiration=null;this._hours;this._path=null;this._domain=null;this._secure=false;if(G.hours!==undefined){this._expiration=new Date(new Date()).getTime()+G.hours*3600000}if(G.path!==undefined){this._path=G.path}if(G.domain!==undefined){this._domain=G.domain}if(G.secure!==undefined){this._secure=G.secure}return{hours:this._hours,path:this._path,name:this._name,domain:this._domain,secure:this._secure,content:this._content}}function C(G){}function E(I){var J=new String();var H=J.stringify(this._content);var G=this._name+"="+H;if(this._expiration!==undefined){this._expiration=new Date(this._expiration);G+="; expires="+this._expiration.toUTCString()}if(this._path!==undefined){G+="; path="+this._path}if(this._domain!==undefined){G+="; domain="+this._domain}if(this._secure!==undefined){G+="; secure"}this._document.cookie=G}function B(G){}D.Cookie.prototype.store=function(){var I=new String();var H=I.stringify(this._content);var G=this._name+"="+H;if(this._expiration!==undefined){this._expiration=new Date(this._expiration);G+="; expires="+this._expiration.toUTCString()}if(this._path!==undefined){G+="; path="+this._path}if(this._domain!==undefined){G+="; domain="+this._domain}if(this._secure!==undefined){G+="; secure"}this._document.cookie=G};D.Cookie.prototype.load=function(M){if(M!==undefined){this._name=M}var I=this._document.cookie;if(I==""){return false}var H=I.indexOf(this._name+"=");if(H==-1){return false}H+=this._name.length+1;var J=I.indexOf(";",H);if(J==-1){J=I.length}var N=unescape(I.substring(H,J));var O=N.split("&");var L=false;for(var K=0;K=6){if(window.event.srcElement){var W=window.event.srcElement;var J=W;var U=new Date();if(!J.isTextEdit&&J.getAttribute("href")!=null){J=W.parentTextEdit}if((J!=null&&W.getAttribute("href")!=null)){if((W.nodeName=="A")||(W.nodeName=="IMG")||(W.nodeName=="a")){var N=J.createTextRange();var Q=W.getClientRects();var V=document.documentElement;var G=0;if(document.body.clientWidth>994){G=Math.floor((document.body.clientWidth-994)/2)}var K=Q[0].top+V.scrollTop;var P=Q[0].left+V.scrollLeft;var H=Q[0].bottom+V.scrollTop;var R=Q[0].right+V.scrollLeft;var M=W.getBoundingClientRect().top+V.scrollTop;var O=W.getBoundingClientRect().left+V.scrollLeft;var L=W.getBoundingClientRect().right-W.getBoundingClientRect().left;var S=W.getBoundingClientRect().bottom-W.getBoundingClientRect().top;if(document.all.customise&&M>document.all.customise.getBoundingClientRect().bottom){M=M-document.all.customise.offsetHeight-10;K=K-document.all.customise.offsetHeight-10;H=H-document.all.customise.offsetHeight-10}document.cookie="BBCLiveStatsClick="+(P-G)+","+H+","+K+","+(R-G)+","+(O-G)+","+L+","+M+","+S+";domain=bbc.co.uk;path=/;expires="+new Date(U.getTime()+8000).toGMTString()+";"}}}}var I="";var Y="";var X=bbc.fmtj.page.storyId;var F=bbc.fmtj.page.editionToServe;if(T){I=T.target+""}else{if(window.event.srcElement){I=window.event.srcElement.getAttribute("href")+""}}if((I!=null)&&(I.match(/\.pdf/))){D({siteNameId:"News",pageType:"Downl_pdf",cmdId:"0",parentSection:"0",edition:"Domestic",documentNameUrl:I,referrer:document.location,queryString:"-"})}if((I!=null)&&(I.match(/pagetools/))){if(I.match(/email/)){Y="Email"}else{if(I.match(/print/)){Y="Print"}}I=I.replace("http://newsvote.bbc.co.uk","");if(X.length==7){var Z=document.location+"";if(Z.match(/http:\/\/news/)){D({siteNameId:"News",pageType:Y,cmdId:X,parentSection:"0",edition:F,documentNameUrl:document.location,referrer:document.location,queryString:"-"})}}}}function D(F){if(F.baseUrl===undefined){(F.baseUrl="http://stats.bbc.co.uk/o.gif?")}if(F.siteName===undefined){F.siteName=bbc.fmtj.page.siteToServe}if(F.pageType===undefined){(F.pageType="-")}if(F.storyId===undefined){F.storyId=bbc.fmtj.page.storyId}if(F.sectionId===undefined){F.sectionId=bbc.fmtj.page.sectionId}if(F.edition===undefined){F.edition=bbc.fmtj.page.edition}if(F.url===undefined){F.url=bbc.fmtj.page.url}if(F.referrer===undefined){F.referrer=bbc.fmtj.page.referrer}if(F.queryString===undefined){F.queryString="-"}if(F.randomNumber===undefined){F.randomNumber=B()}var G=[F.baseUrl,"s",F.siteName,"t",F.pageType,"i",F.storyId,"p",F.sectionId,"a",F.edition,"u",F.url,"r",F.referrer,"q",F.queryString,"Z",F.randomNumber,""];A.onDomReady(function(){var H=new Image(1,1);H.src=G.join("~RS~")});return true}function C(){document.onclick=E}function B(){var F=parseInt((Math.random()*10000)/100);if(F==100||F<10){F=99}return F}})();bbc.fmtj.common.removeNoScript=function(){A.dom.get(".noscript").remove()};bbc.fmtj.common.tabs=(function(){var G=[];var F=0;return{createTabs:E};function E(J){var I=A.dom.get(".tabbed");I.each(function(K){D(A.dom.get(I[K]))})}function D(M){var I="bbc_fmtj_common_tabs_unique_index_"+C();M.addClass(I);var L=M.get(".tab");var J=M.get(".panel");var K=new A.dom.NodeList();var N=new A.dom.NodeList();L.each(function(Q){var P=A.dom.get(L.item(Q));var R=true;var O=false;do{if(P.hasClass("tabbed")&&!P.hasClass(I)&&!R){O=true}P=A.dom.get(P.parent());R=false}while(!P.hasClass(I)&&!O);if(!O){K.push(A.dom.get(L.item(Q)))}});J.each(function(Q){var P=A.dom.get(J.item(Q));var R=true;var O=false;do{if(P.hasClass("tabbed")&&!P.hasClass(I)&&!R){O=true}P=A.dom.get(P.parent());R=false}while(!P.hasClass(I)&&!O);if(!O){N.push(A.dom.get(J.item(Q)))}});M.removeClass(I);if(K.length!=N.length){return false}K.each(function(O){H(K,N,O,M)});return true}function H(K,J,I,L){A.events.addListener(K[I],"click",function(M){B(K,J,I);M.preventDefault();M.stopPropagation()},this);A.events.addListener(A.dom.get(K[I]).get("a"),"focus",function(M){B(K,J,I);M.preventDefault();M.stopPropagation()},this)}function B(K,J,I){A.dom.get(K,J).removeClass("open");A.dom.get(K[I],J[I]).addClass("open")}function C(){return F++}})();bbc.fmtj.common.window=(function(){var E=[];var D=-1;return{createPopup:G,href:B,opener:H,resizeTo:C};function C(I){if(I.height===undefined){I.height=window.height}if(I.width===undefined){I.width=window.width}window.resizeTo(I.width,I.height)}function B(I){if(I.url!==undefined){window.location.href=I.url}return }function H(I){if(I.url!==undefined){window.open(I.url)}return }function G(K){if(K.url===undefined){K.url=""}if(K.toolbar===undefined){K.toolbar=0}if(K.scrollbars===undefined){K.scrollbars=0}if(K.location===undefined){K.location=0}if(K.status===undefined){K.status=0}if(K.menubar===undefined){K.menubar=0}if(K.resizable===undefined){K.resizable=0}if(K.top===undefined){K.top=100}if(K.left===undefined){K.left=100}if(K.width===undefined){K.width=671}if(K.height===undefined){K.height=373}if(K.name===undefined){K.name="win"+new Date().getTime()}if(K.parameters===undefined){K.parameters=A.lang.interpolate("toolbar={toolbar},scrollbars={scrollbars},location={location},status={status},menubar={menubar},resizable={resizable},width={width},height={height},top={top},left={left};",K)}var I=window.open(K.url,K.name,K.parameters);var J={id:++D,window:I,config:K};E.push(J);return J}function F(I){}})();bbc.fmtj.common.isReady=true}});