function displaySWF(E,D,A,B){var C='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="'+D+'" HEIGHT="'+A+'" id="flashEmbed"> <PARAM NAME="movie" VALUE="'+E+'"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="'+B+'"> <EMBED src="'+E+'" quality="high" bgcolor="'+B+'" WIDTH="'+D+'" HEIGHT="'+A+'" NAME="flashEmbed" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';$("#mediadisp").html(C)}function voteMedia(B,A){$("#vote-msg").show();$("#vote-msg").html("Voting...");$.getJSON(masterSiteUrl+"ajaxService?callback=?",{cmd:"voteMedia",id:B,vote:A,rnd:Math.random()},function(C){if(C.results[0].success){$("#rating").html(C.results[0].rating_new);$("#stars").css("width",""+(C.results[0].rating_new*30)+"px");$("#vote-msg").html("Thank you for rating this game!").animate({opacity:1},3000).fadeOut("slow")}else{if(C.results[0].error!=""){$("#vote-msg").html(C.results[0].error)}else{$("#vote-msg").html("Error occurred. Please try again.")}}})}function hideCurrentStars(){$("#stars").hide()}function displayCurrentStars(){$("#stars").show()};