(function(){ var url = ''; var links = document.getElementsByTagName('link'); try { for(var i = 0;i < links.length; i++) { if (typeof links[i].hasAttribute != 'undefined' && links[i].hasAttribute('rel') && links[i].getAttribute('rel').toLowerCase() == 'canonical') { url = links[i].href; break; } } } catch(e) { } if (typeof jwdcm_cm == 'undefined' || jwdcm_cm.toLowerCase() != 'false') { jwdcm_cm = 'true'; } if (typeof jwdcm_adr == 'undefined' || jwdcm_adr.toLowerCase() != 'true') { jwdcm_adr = 'false'; } if (typeof jwdcm_im == 'undefined' || jwdcm_im.toLowerCase() != 'true') { jwdcm_im = 'false'; } if (!url) { var uri = location.href; var r = new RegExp('[\?\&]utm_.*=.*', 'ig'); var rp = uri.replace(r, ''); url = rp; r = new RegExp('#.*', 'ig'); url = url.replace(r, ''); } //document.write(''); setTimeout(function() { var tagjs = document.createElement("script"); tagjs.async = true; tagjs.type = 'text/javascript'; tagjs.charset = 'UTF-8'; tagjs.src = '//web.archive.org./web/20160415160203/http://cma.jword.jp/disp.php?partner=' + encodeURIComponent(jwdcm_partner) + '&adr=' + encodeURIComponent(jwdcm_adr.toLowerCase()) + '&kind=' + encodeURIComponent(jwdcm_kind) + '&type=' + encodeURIComponent(jwdcm_type) + '&cm=' + encodeURIComponent(jwdcm_cm.toLowerCase()) + '&im=' + encodeURIComponent(jwdcm_im.toLowerCase()) + '&url=' + encodeURIComponent(url); document.getElementById(jwdcm_target_id).appendChild(tagjs); }, 0); })();