var Client={viewportWidth:function(){return self.innerWidth||(document.documentElement.clientWidth||document.body.clientWidth)},viewportHeight:function(){return self.innerHeight||(document.documentElement.clientHeight||document.body.clientHeight)},viewportSize:function(){return{width:this.viewportWidth(),height:this.viewportHeight()}}};document.write("<script src='/tj/fps_data.js'><\/script>");var mFPS=new function(){var a=0;this.moWin=null;var b=function(c){if(!c||!fps_games[c]){return}$("strong[id^='fps_']").each(function(){var d=$(this);var e=d.attr("id").replace("fps_","");if(fps_data[e]&&fps_data[e][c][2]){d.html(fps_data[e][c][2]).next().html("Tested @ "+fps_data[e][c][0]+" x "+fps_data[e][c][1])}else{d.html("<span style='position:relative;top:4px;font-size:14px;line-height:100%'>Coming Soon</span>").next().html("")}})};this.openfps=function(){if(a==0){this.moWin=open("/LandingPages/megaspecial/fpspop/","FPSpop","toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no,width=716,height=800");if(window.focus){this.moWin.focus()}}else{var c=620;tb_showLoadingImg();tb_show(null,"/LandingPages/megaspecial/fpspopc/?TB_iframe=true&height="+c.toString()+"&width=702&modal=true",null)}};this.init=function(e,d){var c=$("select[type='game']").empty().change(function(i){var h=$(i.currentTarget).val();$("select[type='game']").val(h);b(h)});for(var g in fps_games){c.append('<option value="'+g+'">'+fps_games[g]+"</option>")}for(var g in fps_games){b(g);break}if(e){a=d?d:0;var f=$(".fpsnum").css("cursor","pointer").click(this.openfps);c.after(" <a onclick='mFPS.openfps(); return false;' href='#' title='more info for FPS'><img src='/template/default/images/HelpIcon.png'> </a>")}}};

