(function(A){A.flashPlayerVersion=function(){var D,B=null,I=false,H="ShockwaveFlash.ShockwaveFlash";if(!(D=navigator.plugins["Shockwave Flash"])){try{B=new ActiveXObject(H+".7")}catch(G){try{B=new ActiveXObject(H+".6");D=[6,0,21];B.AllowScriptAccess="always"}catch(F){if(D&&D[0]===6){I=true}}if(!I){try{B=new ActiveXObject(H)}catch(E){D="X 0,0,0"}}}if(!I&&B){try{D=B.GetVariable("$version")}catch(C){}}}else{D=D.description}D=D.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|\s+d|,)(\d+)/);return[D[1]*1,D[3]*1,D[5]*1]}();A.flashExpressInstaller="/img/expressInstall.swf";A.hasFlashPlayer=(A.flashPlayerVersion[0]!==0);A.hasFlashPlayerVersion=function(C){var B=A.flashPlayerVersion;C=(/string|integer/.test(typeof C))?C.toString().split("."):C;return(C)?(B[0]>=(C.major||C[0]||B[0])&&B[1]>=(C.minor||C[1]||B[1])&&B[2]>=(C.release||C[2]||B[2])):(B[0]!==0)};A.flash=function(P){var B=false;if(!A.hasFlashPlayer){B=true}var D=P.url||"",N=P.type||"swf",M=P.params||{},G=document.createElement("body"),C,O,J,E,L,K,I,H;var F=P.urlParams||false;delete P.urlParams;if(typeof (F)=="object"){str=[];for(up in F){str.push(up+"="+F[up])}F=str.join("&")}P.height=P.height||180;P.width=P.width||320;if(B||(P.hasVersion&&!A.hasFlashPlayerVersion(P.hasVersion))){A.extend(P,{id:"SWFObjectExprInst",height:Math.max(P.height,137),width:Math.max(P.width,214)});D=P.expressInstaller||A.flashExpressInstaller;M={flashvars:{MMredirectURL:window.location.href,MMplayerType:(A.browser.msie&&A.browser.win)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}if(P.flashvars&&typeof M==="object"){A.extend(M,{flashvars:P.flashvars})}for(L in (K=["url","type","expressInstall","hasVersion","params","flashvars"])){delete P[K[L]]}C=[];for(L in P){if(typeof P[L]==="object"){O=[];for(K in P[L]){O.push(K.replace(/([A-Z])/,"-$1").toLowerCase()+":"+P[L][K]+";")}P[L]=O.join("")}C.push(L+"=\""+P[L]+"\"")}P=C.join(" ");if(typeof M==="object"){C=[];for(L in M){if(typeof M[L]==="object"){O=[];for(K in M[L]){if(typeof M[L][K]==="object"){J=[];for(I in M[L][K]){if(typeof M[L][K][I]==="object"){E=[];for(H in M[L][K][I]){E.push(H.replace(/([A-Z])/,"-$1").toLowerCase()+":"+M[L][K][I][H]+";")}M[L][K][I]=E.join("")}J.push(I+"{"+M[L][K][I]+"}")}M[L][K]=J.join("")}O.push(window.escape(K)+"="+window.escape(M[L][K]))}M[L]=O.join("&amp;")}C.push("<PARAM NAME=\""+L+"\" VALUE=\""+M[L]+"\">")}M=C.join("")}if(N=="swf"){if(!(/style=/.test(P))){P+=" style=\"vertical-align:text-top;\""}if(!(/style=(.*?)vertical-align/.test(P))){P=P.replace(/style="/,"style=\"vertical-align:text-top;")}}if(A.browser.msie){if(N=="swf"){P+=" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";M="<PARAM NAME=\"movie\" VALUE=\""+D+"\">"+M}else{if(F){if(D.indexOf("?")==-1){D+="?"+F}else{D+="&"+F}}P+=" classid=\"clsid:233C1507-6A77-46A4-9443-F871F945D258\"";M="<PARAM NAME=\"src\" VALUE=\""+D+"\">"+M}}else{if(N=="swf"){P+=" type=\"application/x-shockwave-flash\" data=\""+D+"\""}else{if(F){if(D.indexOf("?")==-1){D+="?"+F}else{D+="&"+F}}P+=" type=\"application/x-director\" data=\""+D+"\""}}return B==true?false:"<OBJECT "+P+">"+M+"</OBJECT>"};A.fn.flash=function(C){if(!A.hasFlashPlayer){return this}var B=0,D;while((D=this.eq(B++))[0]){D.html(A.flash(A.extend({},C)));if(D[0].firstChild.getAttribute("id")==="SWFObjectExprInst"){B=this.length}}return this}}(jQuery));$(function(){var A=false;$(".top10bestrated_button").click(function(){if(!A){jQuery.nTooltipEnabled=false;$("#top10mostplayed_anim").animate({top:-355},1000,"swing",function(){$(this).hide()});$("#top10_bestrated_btn").animate({top:0},1000,"swing",function(){$(this).hide();$(".top10mostplayed_button").attr("id","top10mostplayed");A=true;jQuery.nTooltipEnabled=true})}return false});$(".top10mostplayed_button").click(function(){if(A){jQuery.nTooltipEnabled=false;$("#top10mostplayed_anim").show().animate({top:0},1000,"swing");$("#top10_bestrated_btn").show().animate({top:354},1000,"swing",function(){$(".top10mostplayed_button").removeAttr("id");A=false;jQuery.nTooltipEnabled=true})}return false});$(".gameitems li").hover(function(){$("a",this).css("text-decoration","underline")},function(){$("a",this).css("text-decoration","none")});if(gamelink_tracking_param){$(".content_newbox ul li").each(function(){if(!$.isFunction($(this).find("a:first").attr("onclick"))){$(this).find("a").each(function(){$(this).attr("href",$(this).attr("href")+"?home_new")})}})}})
