document.open();
document.writeln('');
document.writeln('');
document.writeln('var campimg = new Object();');
document.writeln('campimg.protocol = document.location.protocol;');
document.writeln('campimg.url = campimg.protocol + "//p.ca-mpr.jp/s";');
document.writeln('campimg.option = new Object();');
document.writeln('');
document.writeln('campimg.createParameter = function() {');
document.writeln(' campimg.param = "";');
document.writeln(' campimg.param += campimg.getQuery();');
document.writeln(' campimg.param += "&rf=" + campimg.getUrlEncode(campimg.getReferrer());');
document.writeln(' campimg.param += "&lc=" + campimg.getUrlEncode(campimg.getUrl());');
document.writeln(' for ( var val in campimg.option ) {');
document.writeln(' if ( campimg.option[val] != "" ) {');
document.writeln(' campimg.param += "&" + val + "=" + campimg.getUrlEncode(campimg.option[val]);');
document.writeln(' }');
document.writeln(' }');
document.writeln(' campimg.param += "&ttl=" + campimg.getUrlEncode(campimg.getTitle());');
document.writeln(' campimg.param += "&fl=" + campimg.getUrlEncode(campimg.getFlashVersion());');
document.writeln(' campimg.param += "&jav=" + campimg.getJavaEnabled();');
document.writeln(' campimg.param += "&cke=" + campimg.getCookieEnabled();');
document.writeln(' campimg.param += "&col=" + campimg.getColorDepth();');
document.writeln(' campimg.param += "&os=" + campimg.getOsName();');
document.writeln(' campimg.param += "&brt=" + campimg.getBrowserType();');
document.writeln(' campimg.param += "&brv=" + campimg.getBrowserVersion();');
document.writeln(' campimg.param += "&scw=" + campimg.getScreenHeight();');
document.writeln(' campimg.param += "&sch=" + campimg.getScreenHeight();');
document.writeln(' campimg.param += "&wiw=" + campimg.getWindowWidth();');
document.writeln(' campimg.param += "&wih=" + campimg.getWindowHeight();');
document.writeln('}');
document.writeln('');
document.writeln('campimg.createImgTag = function() {');
document.writeln(' if ( document.body ) {');
document.writeln(' document.write(\'
\');');
document.writeln(' } else {');
document.writeln(' imgtag = new Image(1,1);');
document.writeln(' imgtag.src = campimg.url + "/" + campimg.i4c + "/" + "?" + campimg.param;');
document.writeln(' }');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getUrlEncode = function(str) {');
document.writeln(' if ( typeof(encodeURIComponent) == \'function\' ) {');
document.writeln(' return encodeURIComponent(str);');
document.writeln(' } else {');
document.writeln(' return escape(str);');
document.writeln(' }');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getQuery = function() {');
document.writeln(' var url;');
document.writeln(' if ( document.referrer == parent.location ) {');
document.writeln(' url = top.document.location.search;');
document.writeln(' } else {');
document.writeln(' url = document.location.search;');
document.writeln(' }');
document.writeln('');
document.writeln(' var query = "";');
document.writeln(' var urlPram = url.replace("?","");');
document.writeln(' var params = urlPram.split("&");');
document.writeln(' if (params[0].indexOf("=")>-1) {');
document.writeln(' for ( i = 0; i < params.length; i++ ) {');
document.writeln(' var key = params[i].split("=")[0];');
document.writeln(' var value = params[i].split("=")[1];');
document.writeln(' if( key == "i4a" || key == "i4t" || key == "i4v" ) {');
document.writeln(' query += "&" + campimg.getUrlEncode(key) + "=" + campimg.getUrlEncode(value);');
document.writeln(' }');
document.writeln(' }');
document.writeln(' }');
document.writeln(' return query;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getReferrer = function() {');
document.writeln(' if ( document.referrer ) {');
document.writeln(' if (document.referrer == parent.location) {');
document.writeln(' return top.document.referrer;');
document.writeln(' } else {');
document.writeln(' return document.referrer;');
document.writeln(' }');
document.writeln(' } else {');
document.writeln(' return "none";');
document.writeln(' }');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getUrl = function() {');
document.writeln(' var url;');
document.writeln(' if ( document.referrer == parent.location ) {');
document.writeln(' return top.document.location.href;');
document.writeln(' } else {');
document.writeln(' return document.location.href;');
document.writeln(' }');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getTitle = function() {');
document.writeln(' return document.title;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getFlashVersion = function() {');
document.writeln(' var ver = "";');
document.writeln(' if ( navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {');
document.writeln(' var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;');
document.writeln(' if (plugin) {');
document.writeln(' ver = parseInt(plugin.desc' + 'ription.match(/\\d+\\.\\d+/));');
document.writeln(' }');
document.writeln(' } else if ( window.ActiveXObject ) {');
document.writeln(' try {');
document.writeln(' var axoFlash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").match(/([0-9]+)/);');
document.writeln(' if (axoFlash) {');
document.writeln(' ver = parseInt(axoFlash[0]);');
document.writeln(' }');
document.writeln(' } catch(e) {');
document.writeln(' }');
document.writeln(' }');
document.writeln(' if ( ver == "" ) {');
document.writeln(' ver = 0;');
document.writeln(' }');
document.writeln(' return ver;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getJavaEnabled = function() {');
document.writeln(' return navigator.javaEnabled() ? 1 : 0;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getCookieEnabled = function() {');
document.writeln(' return navigator.cookieEnabled ? 1 : 0;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getColorDepth = function() {');
document.writeln(' return window.screen.colorDepth;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getOsName = function() {');
document.writeln(' var ua = navigator.userAgent.toLowerCase();');
document.writeln(' var is = function(t){return ua.indexOf(t)>-1;};');
document.writeln(' var osName =');
document.writeln(' is(\'psp\')?\'PlayStation Portable\':');
document.writeln(' is(\'playstation\')?\'PlayStation\':');
document.writeln(' is(\'nintendo wii\')?\'NintendoWii\':');
document.writeln(' is(\'j2me\')?\'mobile\':');
document.writeln(' is(\'iphone;\')?\'iPhone\':');
document.writeln(' is(\'ipod;\')?\'ipod\':');
document.writeln(' is(\'mac\')?\'Macintosh \':');
document.writeln(' is(\'darwin\')?\'Macintosh \':');
document.writeln(' is(\'webtv\')?\'webtv\':');
document.writeln(' is(\'win\')?\'Windows\':');
document.writeln(' is(\'freebsd\')?\'freebsd\':');
document.writeln(' (is(\'x11\')||is(\'linux\'))?\'linux\':');
document.writeln(' \'undefined\';');
document.writeln(' if (navigator.platform.indexOf("Win") != -1) {');
document.writeln(' if (ua.match(/win(dows )?nt 6\\.1/)) {');
document.writeln(' osName += "7";');
document.writeln(' }');
document.writeln(' else if (ua.match(/win(dows )?nt 6\\.0/)) {');
document.writeln(' osName += "Vista";');
document.writeln(' }');
document.writeln(' else if (ua.match(/win(dows )?nt 5\\.2/)) {');
document.writeln(' osName += "Server 2003";');
document.writeln(' }');
document.writeln(' else if (ua.match(/win(dows )?(nt 5\\.1|xp)/)) {');
document.writeln(' osName += "XP";');
document.writeln(' }');
document.writeln(' else if (ua.match(/win(dows)? (9x 4\\.90|me)/)) {');
document.writeln(' osName += "ME";');
document.writeln(' }');
document.writeln(' else if (ua.match(/win(dows )?(nt 5\\.0|2000)/)) {');
document.writeln(' osName += "2000";');
document.writeln(' }');
document.writeln(' else if (ua.match(/win(dows )?98/)) {');
document.writeln(' osName += "98";');
document.writeln(' }');
document.writeln(' else if (ua.match(/win(dows )?nt( 4\\.0)?/)) {');
document.writeln(' osName += "NT";');
document.writeln(' }');
document.writeln(' else if (ua.match(/win(dows )?95/)) {');
document.writeln(' osName += "95";');
document.writeln(' }else{');
document.writeln(' osName += "undefined";');
document.writeln(' }');
document.writeln(' return osName;');
document.writeln(' }');
document.writeln(' else {');
document.writeln(' return osName;');
document.writeln(' }');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getBrowserType = function() {');
document.writeln(' var ua = navigator.userAgent.toLowerCase();');
document.writeln(' var is = function(t){return ua.indexOf(t)>-1;};');
document.writeln('');
document.writeln(' var browserType =');
document.writeln(' ( !(/opera|webtv/i.test(ua) ) && /msie\\s(\\d+).(\\d+)/.test(ua) ) ? ( \'InternetExplorer\' ):');
document.writeln(' is(\'firefox/\')?"Firefox":');
document.writeln(' /opera(\\s|\\/)(\\d+).(\\d+)(\\d+)/.test(ua)?\'Opera\':');
document.writeln(' is(\'chrome\')?"google chrome":');
document.writeln(' is(\'applewebkit/\')?"safari":');
document.writeln(' \'none\';');
document.writeln(' return browserType;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getBrowserVersion = function() {');
document.writeln(' var ua = navigator.userAgent.toLowerCase();');
document.writeln(' var is = function(t){return ua.indexOf(t)>-1;};');
document.writeln(' var version=');
document.writeln(' ( ! (/opera|webtv/i.test(ua)) && /msie\\s(\\d+).(\\d+)/.test(ua) ) ? ( RegExp.$1+"."+RegExp.$2 ):');
document.writeln(' is(\'firefox/\')?ua.split("firefox/")[1]:');
document.writeln(' /opera(\\s|\\/)(\\d+).(\\d+)(\\d+)/.test(ua)?RegExp.$2+"."+RegExp.$3+RegExp.$4:');
document.writeln(' is(\'chrome\')?ua.split("chrome/")[1].split("safari/")[0]:');
document.writeln(' is(\'applewebkit/\')?ua.split("version/")[1].split("safari/")[0]:');
document.writeln(' \'none\';');
document.writeln(' return version;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getScreenWidth = function() {');
document.writeln(' return window.screen.width;');
document.writeln('} ');
document.writeln('');
document.writeln('campimg.getScreenHeight = function() {');
document.writeln(' return window.screen.height;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getWindowWidth = function() {');
document.writeln(' if ( window.innerWidth ) {');
document.writeln(' return window.innerWidth;');
document.writeln(' }');
document.writeln(' if ( document.documentElement.clientWidth ) {');
document.writeln(' return document.documentElement.clientWidth;');
document.writeln(' }');
document.writeln(' return 0;');
document.writeln('}');
document.writeln('');
document.writeln('campimg.getWindowHeight = function() {');
document.writeln(' if ( window.innerHeight ) {');
document.writeln(' return window.innerHeight;');
document.writeln(' }');
document.writeln(' if ( document.documentElement.clientHeight ) {');
document.writeln(' return document.documentElement.clientHeight;');
document.writeln(' }');
document.writeln(' return 0;');
document.writeln('}');
document.writeln('');
document.writeln('function createTag(i4c) {');
document.writeln(' campimg.i4c = i4c;');
document.writeln(' campimg.createParameter();');
document.writeln(' campimg.createImgTag();');
document.writeln('}');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln(' createTag("20");');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.close();