(function(){if(typeof bbcstats_config==E){bbcstats_config={}}var F=function(){var Q={};var R={"site":bbcstats_config.site};return{add:function(T){for(var S in T){R[S]=T[S]}},module:function(S,T){if(!Q[S]){Q[S]=T();this.add(Q[S])}},all:function(){return R},write:function(){var S='<img src="/cs/ifl/clientstats/bug.gif?';for(var T in R){S+=(T+"="+R[T]+";")}S+='" width="1" height="1" alt="" />';N.write(S);this.after(this)},after:bbcstats_config.after||function(){return false}}}();var C="",M=0;var A=navigator,N=document,I=window,D=navigator.userAgent,O=navigator.vendor,B=navigator.platform,E="undefined";var H=(D.indexOf("Mac")!=-1);function K(){var W=[["NetFront",D,"PSP",null,"(PlayStation Portable);"],["NetFront",D,"NetFront"],["OmniWeb",D,"OmniWeb",null,"OmniWeb/"],["Safari",O,"Apple"],["Opera",null,null,I.opera],["iCab",O,"iCab"],["Konqueror",O,"KDE"],["Firefox",D,"Firefox"],["Camino",O,"Camino"],["Netscape",D,"Netscape"],["IE",D,"MSIE",null,"MSIE"],["Mozilla",D,"Gecko",null,"rv"],["Netscape",D,"Mozilla",null,"Mozilla"],["unknown"]];var V=[["mac_osx",D,"Mac OS X"],["mac_os9",D,"Mac OS 9"],["mac_os8",D,"Mac OS 8"],["mac_unknown",D,"Mac"],["windows_ce",D,"Windows CE"],["windows_ce",D,"WinCE"],["windows_95",D,"Windows 95"],["windows_95",D,"Win95"],["windows_98",D,"Windows 98"],["windows_98",D,"Win98"],["windows_me",D,"Win 9x 4.90"],["windows_nt_4.0",D,"Windows NT 4.0"],["windows_nt_4.0",D,"WinNT4.0"],["windows_2000_sp1",D,"Windows NT 5.01"],["windows_2000",D,"Windows NT 5.0"],["windows_2000",D,"WinNT5.0"],["windows_xp",D,"Windows NT 5.1"],["windows_xp",D,"WinNT5.1"],["windows_server_2003",D,"Windows NT 5.2"],["windows_server_2003",D,"WinNT5.2"],["windows_vista",D,"Windows NT 6.0"],["windows_vista",D,"WinNT6.0"],["windows_unknown",B,"Win"],["linux_unknown",B,"Linux"],["unknown"]];var R="";function T(a){for(var Z=0;Z<a.length;Z++){var b=a[Z];var X=b[0],c=b[1],Y=b[2],d=b[3];if(c&&c.indexOf(Y)!=-1){R=b[4]||X;return X.toLowerCase()}else{if(d){R=b[4]||X;return X.toLowerCase()}}}return X}function Q(Y){var X=Y.indexOf(R);if(X==-1){return null}return parseFloat(Y.substring(X+R.length+1))}function S(){var Y=arguments[0]+"";var X=Y.indexOf(".");if(Y===""){return Y}else{if(X!=-1){return Y.substring(0,X+2)}else{return Y+".0"}}}var U={browser:T(W)||C,version:Q(D)||Q(A.appVersion)||C,os:T(V)||C};if(U.browser=="unknown"){U.version=""}else{if(U.browser=="safari"){U.version=(U.version>=522)?3:(U.version>=412)?2:(U.version>=312)?1.3:1}}U.version=S(U.version);return U}function P(T,Q){var S,U,R;if(typeof Q=="number"){R=T;T=new Array(Q)}else{if(typeof T=="string"){T=[T]}}for(S=T.length-1;S>-1;S--){U=R?R+S:T[S];if(L(U)){return S}else{if(U.indexOf("SWCtl.SWCtl.10")!=-1&&(L(U+".1")||L(U+".1.1"))){return S}}}return C}function L(Q){bbcstats_ax_ok__=false;bbcstats_ax_ob__=Q;if(typeof (execScript)!=E&&!H){execScript("On Error Resume Next: bbcstats_ax_ok__ = IsObject(CreateObject(bbcstats_ax_ob__))","VBScript")}return bbcstats_ax_ok__}function J(U,X,W){var V,S,T,R,Q=-1;for(V=0;V<A.plugins.length;V++){S=A.plugins[V][X];if(S.indexOf(U)>-1){R=S.match(W);T=(R)?R[1]:0;Q=(T>Q)?T:Q}}return(Q==-1)?C:Q}function G(R,U,T,S,Q){if(A.plugins&&A.plugins.length){return J(R,U,T)}return P(S,Q)}F.module("env",function(){var Q=K();return{"c_browser":(Q.version!=C)?Q.browser+"_"+Q.version:Q.browser,"c_os":Q.os}});F.module("javascript",function(){return{"c_javascript":M}});F.module("activex",function(){return{"c_activex":(typeof (ActiveXObject)!=E&&!H)?M:C,"c_activexgecko":(typeof (GeckoActiveXObject)!=E)?M:C}});F.module("java",function(){return{"c_java":(A.javaEnabled())?M:C}});F.module("ajax",function(){var Q=["Microsoft.XMLHTTP","MSXML2.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP.4.0"];return{"c_ajax":((typeof XMLHttpRequest!=E)||(P(Q)!==C))?M:C}});F.module("xslt",function(){var Q=["MSXML2.DOMDocument.3.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.6.0"];return{"c_xslt":((typeof XSLTProcessor!=E)||(P(Q)!==C))?M:C}});F.module("cookies",function(){return{"c_cookies":(A.cookieEnabled)?M:C,"c_cookiesjs":(N.cookie.length>0)?M:C}});F.module("dom",function(){var Q;if(N.getElementById){Q=2}else{if(N.all){Q=1}else{if(N.layers){Q=0}else{Q=C}}}return{"c_dom":Q}});F.module("screen",function(){var S=C,R=C,V=C,T=C;if(typeof screen!=E){S=screen.width;R=screen.height;V=screen.colorDepth;var Q=[[320,200,"CGA"],[320,240,"QVGA"],[640,480,"VGA"],[768,576,"PAL"],[800,600,"SVGA"],[854,480,"WVGA"],[1024,768,"XGA"],[1280,720,"WXGA"],[1280,768,"WXGA"],[1280,800,"WXGA"],[1280,960,"SXGA"],[1280,1024,"SXGA"],[1360,768,"WXGA"],[1366,768,"WXGA"],[1400,1050,"SXGAPLUS"],[1600,1200,"UXGA"],[1680,1050,"WSXGAPLUS"],[1920,1080,"HD1080"],[1920,1200,"WUXGA"],[2048,1536,"QXGA"],[2560,1600,"WQXGA"],[2560,2048,"QSXGA"]];for(var U=0;U<Q.length;U++){if(Q[U][0]==S&&Q[U][1]==R){T=Q[U][2];break}}}return{"d_screenwidth":S,"d_screenheight":R,"c_screencolordepth":V,"c_screenresolution":T}});F.module("viewport",function(){function R(W,Y){for(var X=0;X<Y.length;X++){if(W>=Y[X]){return""+Y[X]+(Y[X-1]?"-"+(Y[X-1]-1):"+")}}return C}var S=C,Q=C,V=C,T=C,U=C;if(I.innerWidth){S=I.innerWidth;Q=I.innerHeight}else{if(N.documentElement&&N.documentElement.clientWidth){S=N.documentElement.clientWidth;Q=N.documentElement.clientHeight}else{if(N.body){S=N.body.clientWidth;Q=N.body.clientHeight}}}if(S!==C){V=R(S,[1650,1570,1370,1250,994,770,610,290,0]);T=R(Q,[1400,1200,1000,800,600,400,200,0]);if(typeof screen!=E){U=(S<=screen.width&&S>(screen.width-30))?1:0}}return{"d_viewportactualwidth":S,"d_viewportactualheight":Q,"c_viewportwidth":V,"c_viewportheight":T,"c_viewportmaximised":U}});F.module("flash",function(){var Q=15;return{"c_flash":G("Flash","description",/\w+ \w+ (\d)\./,"ShockwaveFlash.ShockwaveFlash.",Q)}});F.module("realplayer",function(){return{"c_realplayer":G("Real","description",null,"rmocx.RealPlayer G2 Control")}});F.module("windowsmedia",function(){var R=15;var Q=G("Windows Media","name",/(\d)/,"WMPlayer.OCX.",R);if(Q>=7&&typeof (execScript)!=E&&!H){bbcstats_wm_vinfo__=M;execScript("On Error Resume Next: bbcstats_wm_vinfo__ = CreateObject(bbcstats_ax_ob__).versionInfo","VBScript");Q=parseInt(bbcstats_wm_vinfo__)}return{"c_windowsmedia":Q}});F.module("shockwave",function(){var Q=15;return{"c_shockwave":G("Shockwave for Director","description",/\w (\d+)\./,"SWCtl.SWCtl.",Q)}});F.module("quicktime",function(){var Q=20;return{"c_quicktime":G("QuickTime","name",/\w+ [a-zA-z\-]+ (\d)\./,"QuickTime.QuickTime.",Q)}});F.write()})()