~function(w,h){ qz_instance.SendGameCommand("r_customwidth "+ w +"\n"); qz_instance.SendGameCommand("r_customheight "+ h +"\n"); qz_instance.SendGameCommand("r_inBrowserMode -1\n"); qz_instance.SendGameCommand("vid_restart\n"); $('#qlv_game_mode_viewport').css({'width': w+'px', 'height': h+'px'}); $('div.game_wrapper').css({'width': (w+334)+'px', 'height': (h+334)+'px'}); }(1680,1050);