!= ad_payload.content_type) { return; } return function() { var p=$('primarywrap'); p.setStyle(ad_payload.skin_style); global_skin_lock = true; if(ad_payload.url && !active_user.isPremium()){ var click_url = ad_payload.url; $('skin_left_of_game').setStyle("cursor: pointer; cursor: hand;"); $('skin_left_of_game').observe('click', clickAdSkin.curry(click_url)); $('skin_right_of_game').setStyle("cursor: pointer; cursor: hand;"); $('skin_right_of_game').observe('click', clickAdSkin.curry(click_url)); } }; }); post_message_handler.addCallback(function(ad_payload) { if ('body_class' != ad_payload.content_type) { return; } return function() { var b = $$('body')[0]; b.addClassName(ad_payload.body_class_name); }; }); post_message_handler.addCallback(function(ad_payload) { if ('insert_node' != ad_payload.content_type) { return; } if(ad_payload.from && ad_payload.to){ if($(ad_payload.from) && $(ad_payload.to)){ $(ad_payload.to).update($(ad_payload.from)); } } }); post_message_handler.addCallback(function(ad_payload) { if ('hide_elements' != ad_payload.content_type) { return; } return function() { $$(ad_payload.selector).each(Element.hide); } }); post_message_handler.addCallback(function(ad_payload) { if ('show_elements' != ad_payload.content_type) { return; } return function() { $$(ad_payload.selector).each(Element.show); } }); var googletag = { cmd: [function(){googletag.pending=false;}], pending: true }, renderingMode = "enableAsyncRendering"; //]]>//<![CDATA[ videoegg = false; kong_url_host = "www.kongregate.com"; var ka = new KongDFPAds({ networkId: "1019038", publisherId: "ca-pub-2543721856801245", renderingMode: renderingMode }); ka.setTargeting({"norollover":"false","production":"true","gameplays":"0","videoegg":"false","game":"counter-st","game_id":"131665","category":"multiplaye","gamegroup":["unity"],"tags":["Army","Tactical","Zombie","Fighting","War","Gun","Action","Team","Shooter","Multiplaye","3D"],"shootorial":"false","top-rated":"1","wotc":"1"}); if (window.active_user !== undefined) { ka.setTargeting('registered', active_user.isAuthenticated() ? 'true' : 'false'). setTargeting('premium', active_user.isPremium() ? 'true' : 'false'). setTargeting('nhtsa_awar', active_user.getAttributes()['nhtsa_award'] ? 'true' : 'false'). setTargeting('nexon', active_user.getAttributes()['nexon_award'] ? 'true' : 'false'); active_user.addRunWhenAuthenticatedObserver(function(user) { if (user.googleGender()) { ka.setGenderTargeting(user.googleGender()); } if (user.googleAgeBracket()) { ka.setAgeTargeting(user.googleAgeBracket()); } ka.setTargeting('kred_type', active_user.kredBuyerType()); }); } if (!active_user.isPremium()) { ka.defineAd("kong_bumper_preroll_600x400", 600, 400); } if (!active_user.isPremium()) { ka.defineAd("kong_game_af_728x90", 728, 90); } if (!active_user.isPremium()) { ka.defineAd("kong_game_bf_300x250", 300, 250); } ka.defineAd("kong_game_bf_284x90_1", 281, 90); ka.defineAd("kong_game_bf_284x90_2", 281, 90); ka.defineAd("kong_game_bf_284x90_3", 281, 90); ka.defineAd("kong_game_bf_284x90_4", 281, 90); if (!active_user.isPremium()) { ka.defineAd("kong_tracking_pixel", 1, 1); } if (!active_user.isPremium()) { ka.defineAd("kong_gamepage_body_class_pixel", 1, 1); } //]]> //<![CDATA[ swfobject.switchOffAutoHideShow(); active_user.setGame(131665, "/games/IgorLevochkin/counter-strike-web-browser-based-port-v2"); var channel_id = new Date().getTime(); if (Prototype.Browser.Opera) { lightbox.prototype.hideGameInIFrame=function(){top.kongOldPageYOffset=window.pageYOffset;window.scrollTo(0,10000);} lightbox.prototype.showGameInIFrame=function(){window.scrollTo(0,top.kongOldPageYOffset);} } function konduitToHolodeck() { var arg = arguments[0]; if( 'undefined' == typeof(holodeck)) { setTimeout(function() { konduitToHolodeck(arg); }, 500); } else { setTimeout(function() { holodeck.konduitEvent(arg) }, 0); } } function konduitToCanvas() { $('chat_api_canvas').dispatchJSONEvent(Object.toJSON(arguments[0])); } function dispatchToKonduit() { holodeck.konduit().dispatchEvent(arguments[0]); } //]]> //<![CDATA[ if (active_user.isPremium()) { document.observe('dom:loaded', function() { var recently_played_games_container = new Element('div', {id: 'recently_played_games_container'}); recently_played_games_container.insert( new Element('h2').update('Recently Played Games') ); recently_played_games_container.insert( new Element('span', { id: 'recently_played_games_spinner', 'class': 'spinner spinner_big' }).update('loading…') ); $('rightcontainer').insert({top: recently_played_games_container}); new Ajax.Request('/accounts/' + active_user.username() + '/gamepage_recently_played_games', { method: 'GET', parameters: { current_game_id: active_user.gameId() }, onSuccess: function(response) { $('recently_played_games_spinner').remove(); $('recently_played_games_container').insert(response.responseText); }, onFailure: function(response) { $('recently_played_games_spinner').remove(); $('recently_played_games_container').insert(new Element('p').update('Your recently played games are unavailable at this time.')); } }); }); } ka.requestAds(); active_user.runIfAdBlockerDetected(function() { var selector = '.ad, .adspacer', insertionPoint = $('kong_game_af_728x90-ad-slot').up(selector), replacementWrapper = new Element('div', {style: 'width: 728px; margin: auto; float: right;'}), t; while(t = insertionPoint.up(selector)) { insertionPoint = t; } insertionPoint.insert({before: replacementWrapper}); replacementWrapper.insert(new Element('img', {src: 'http://cdn2.kongregate.com/images/help_devs_leaderboard.png?1328596105'})); }); active_user.runIfAdBlockerDetected(function() { var selector = '.ad, .adspacer', insertionPoint = $('kong_game_bf_300x250-ad-slot').up(selector), replacementWrapper = new Element('div', {style: 'width: 300px; margin: auto; '}), t; while(t = insertionPoint.up(selector)) { insertionPoint = t; } insertionPoint.insert({before: replacementWrapper}); replacementWrapper.insert(new Element('img', {src: 'http://cdn2.kongregate.com/images/help_devs_square.png?1328590671'})); }); //]]> //<![CDATA[ try{document.execCommand('BackgroundImageCache', false, true);}catch(e){} //]]> //<![CDATA[ var _gaq = _gaq || [], MAX_EVENT_TIME = 60000; // one minute _gaq.push(['_setAccount', 'UA-211785-2'], ['_setDomainName', 'none']); // dom:loaded added for 10/25 deploy but patching commented out to check if it affected gamereferral landings //document.observe('dom:loaded', function(){ _gaq.push(['_trackPageview']); //}); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); var pageTracker = { // we're not using _setVar at the