if (typeof(Jugem) == 'undefined') Jugem = {}; if (typeof(Jugem.ads) == 'undefined') Jugem.ads = {}; var google_num_ads = 0; var google_last_ad_type = ''; function google_ad_request_done(google_ads) { if (google_ads.length == 0) { return; } google_num_ads += google_ads.length; google_last_ad_type = google_ads[0].type; Jugem.ads.startRendering(google_ads); } function jg_ads_Hover(e,f){ e.style.background = f ? '#ffffcc' : ''; e.style.color = f ? '#000000' : ''; // e.style.border = f ? '1px solid #ffffbb' : '0'; // e.style.padding = f ? '5px' : '5px'; e.className = f ? 'jg_ads_hover' : 'jg_ads_box'; } Jugem.ads.inactiveRendered = false; Jugem.ads.startRendering = function(ads) { var adAreaInactive = document.getElementById('gInactiveAdContainer'); var adAreaEntry = document.getElementById('gEntryAdContainer'); if (!adAreaInactive || Jugem.ads.inactiveRendered) { Jugem.ads.renderAds(ads, adAreaEntry); } else { Jugem.ads.inactiveRendered = true; Jugem.ads.renderAds(ads, adAreaInactive); } } Jugem.ads.renderAds = function(ads, elm) { var str = ''; if (ads[0].type == "html") { str += ads[0].snippet; } else { str += '
'; for (var i=0; i