(function(){ var randomNs = (function() { var min = 'a'.charCodeAt(0); var max = 'z'.charCodeAt(0); var randomNs = []; for (var i = 0; i < 20; i++ ) { randomNs.push(String.fromCharCode( Math.floor(Math.random() * (max - min + 1)) + min )); } return randomNs.join(''); })(); var source_key = 'ebe74e68bed0c31f2b39692d2d3952aa'; var iframe_uri_scheme = 'http://'; var iframe_uri_domain = 'axad.mad.team.shinobi.jp'; var iframe_uri_path = '/ad/frame/index/'; var iframe_uri = iframe_uri_scheme + iframe_uri_domain + iframe_uri_path; function getparentobj(){ var cfn=1; var cf_crdc=window.parent; while(cfn){ if(cf_crdc.parent.document.URL==cf_crdc.document.URL){ cfn=0; }else{ cf_crdc=cf_crdc.parent; } } return cf_crdc; } var parentobj = getparentobj(); var uri = parentobj.document.URL; var ref = parentobj.document.referrer; var reg_obj_1 = new RegExp("^http:\/\/img\.shinobi\.jp\/test\/axad2.html\\?(.*)$", "g"); if(window.location.href.match(reg_obj_1)){ ref = RegExp.$1+"__" + source_key + "__" + urlencode(ref); }else{ ref = encodeURIComponent(ref); uri = encodeURIComponent(uri); } try{ if(window.ad_count == undefined){ window.ad_count = 0; } }catch(e){ window.ad_count = 0; } window.ad_count++; function urlencode(str){ return str; } if(window.ad_count <= 3){ document.write( (function(){ var param = '?'; param = (ref) ? param.concat('ref='+ref+'&') : param.concat('') ; param = (source_key) ? param.concat('source-key='+source_key+'&') : param.concat('') ; param = (uri) ? param.concat('uri='+uri+'&') : param.concat('') ; var frame_html = '
'; return frame_html; })() ); } else { document.write(''); } })();