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(''); document.writeln('campimg.clear = function() {'); document.writeln(' campimg.option = new Object();'); document.writeln(' campimg.i4a = "";'); document.writeln('}'); document.writeln(''); document.writeln('campimg.createParameter = function() {'); document.writeln(' campimg.param = "";'); document.writeln(' if ( campimg.i4a ) {'); document.writeln(' campimg.param += "i4a=" + campimg.getUrlEncode(campimg.i4a);'); document.writeln(' } else if ( campimg.option["cv"]) {'); document.writeln(' campimg.param += "";'); document.writeln(' } else {'); document.writeln(' campimg.param += campimg.getQuery();'); document.writeln(' }'); document.writeln(' if ( campimg.param == "" ) {'); document.writeln(' campimg.param += "rf=" + campimg.getUrlEncode(campimg.getReferrer());'); document.writeln(' } else {'); document.writeln(' campimg.param += "&rf=" + campimg.getUrlEncode(campimg.getReferrer());'); document.writeln(' }'); 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.getScreenWidth();'); document.writeln(' campimg.param += "&sch=" + campimg.getScreenHeight();'); document.writeln(' campimg.param += "&wiw=" + campimg.getWindowWidth();'); document.writeln(' campimg.param += "&wih=" + campimg.getWindowHeight();'); document.writeln(' campimg.param += "&ms=" + campimg.getMilliseconds();'); document.writeln('}'); document.writeln(''); document.writeln('campimg.getMilliseconds = function(){'); document.writeln(' return new Date().getMilliseconds();'); document.writeln('}'); document.writeln(''); document.writeln('campimg.createImgTag = function() {'); document.writeln(' imgtag = new Image(1,1);'); document.writeln(' imgtag.src = campimg.url + "/" + campimg.i4c + "/" + "?" + campimg.param;'); document.writeln(' imgtag.onload = function() { return; }'); document.writeln('}'); document.writeln(''); document.writeln('campimg.createImgTagOld = 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(''); document.writeln(' try {'); 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(' } catch (e) {'); 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(' if ( query == "" ) {'); document.writeln(' query = campimg.getUrlEncode(key) + "=" + campimg.getUrlEncode(value);'); document.writeln(' } else {'); document.writeln(' query += "&" + campimg.getUrlEncode(key) + "=" + campimg.getUrlEncode(value);'); document.writeln(' }'); document.writeln(' }'); document.writeln(' }'); document.writeln(' }'); document.writeln(' return query;'); document.writeln('}'); document.writeln(''); document.writeln('campimg.getReferrer = function() {'); document.writeln(' return document.referrer;'); document.writeln('}'); document.writeln(''); document.writeln('campimg.getUrl = function() {'); document.writeln(' return document.location.href;'); 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 ua_includes = function(t){return ua.indexOf(t)>-1;};'); document.writeln(''); document.writeln(' if ( ua_includes(\'opera\') ) {'); document.writeln(' if ( /opera[\\s\\/]\\d+\\.\\d+/.test(ua) ) return \'Opera\';'); document.writeln(' } else if ( ua_includes(\'msie\') ) {'); document.writeln(' if ( /msie\\s\\d+\\.\\d+/.test(ua) ) return \'InternetExplorer\';'); document.writeln(' } else if ( ua_includes(\'firefox/\') ) {'); document.writeln(' if ( /firefox\\/[\\d\\.]+/.test(ua) ) return \'Firefox\';'); document.writeln(' } else if ( ua_includes(\'applewebkit/\') && ua_includes(\'safari/\') ) {'); document.writeln(' if ( /chrome\\/[\\d\\.]+/.test(ua) ) return \'google chrome\';'); document.writeln(' if ( /version\\/[\\d\\.]+/.test(ua) ) return \'safari\';'); document.writeln(' }'); document.writeln(' return \'none\';'); document.writeln('}'); document.writeln(''); document.writeln('campimg.getBrowserVersion = function() {'); document.writeln(' var ua = navigator.userAgent.toLowerCase();'); document.writeln(' var ua_includes = function(t){return ua.indexOf(t)>-1;};'); document.writeln(' '); document.writeln(' if ( ua_includes(\'opera\') ) {'); document.writeln(' if ( /opera[\\s\\/](\\d+\\.\\d+)/.test(ua) ) return RegExp.$1;'); document.writeln(' } else if ( ua_includes(\'msie\') ) {'); document.writeln(' if ( /msie\\s(\\d+\\.\\d+)/.test(ua) ) return RegExp.$1;'); document.writeln(' } else if ( ua_includes(\'firefox/\') ) {'); document.writeln(' if ( /firefox\\/([\\d\\.]+)/.test(ua) ) return RegExp.$1;'); document.writeln(' } else if ( ua_includes(\'applewebkit/\') && ua_includes(\'safari/\') ) {'); document.writeln(' if ( /chrome\\/([\\d\\.]+)/.test(ua) ) return RegExp.$1;'); document.writeln(' if ( /version\\/([\\d\\.]+)/.test(ua) ) return RegExp.$1;'); document.writeln(' }'); document.writeln(' return \'none\';'); 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('campimg.createTag = function() {'); document.writeln(' campimg.createParameter();'); document.writeln(' campimg.createImgTag();'); document.writeln(' campimg.clear();'); document.writeln('}'); document.writeln(''); document.writeln('campimg.createTagOld = function() {'); document.writeln(' campimg.createParameter();'); document.writeln(' campimg.createImgTagOld();'); document.writeln(' campimg.clear();'); document.writeln('}'); document.writeln(''); document.writeln('campimg.parseOption = function(option) {'); document.writeln(' for (var key in option) {'); document.writeln(' campimg.option[key] = option[key];'); document.writeln(' }'); document.writeln('}'); document.writeln(''); document.writeln('campimg.clear();'); document.writeln(''); document.writeln('function createTag(i4c) {'); document.writeln(' campimg.i4c = i4c;'); document.writeln(' campimg.createTagOld();'); document.writeln('}'); document.writeln(''); document.writeln('function createLpTag(i4c){'); document.writeln(' campimg.i4c = i4c;'); document.writeln(' campimg.createTag();'); document.writeln('}'); document.writeln('function createCvTag(i4c,cv){'); document.writeln(' campimg.i4c = i4c;'); document.writeln(' campimg.option["cv"] = cv;'); document.writeln(' campimg.createTag();'); document.writeln('}'); document.writeln('function createFlashLpTag(i4c){'); document.writeln(' campimg.i4c = i4c;'); document.writeln(' campimg.createTag();'); document.writeln('}'); document.writeln('function createFixedIdLpTag(i4c,i4a){'); document.writeln(' campimg.i4c = i4c;'); document.writeln(' campimg.i4a = i4a;'); document.writeln(' campimg.createTag();'); document.writeln('}'); document.writeln('function createFlashCvTag(i4c,cv){'); document.writeln(' campimg.i4c = i4c;'); document.writeln(' campimg.option["cv"] = cv;'); document.writeln(' campimg.createTag();'); document.writeln('}'); document.writeln('function createFlashCvTagOption(i4c,cv,option){'); document.writeln(' campimg.i4c = i4c;'); document.writeln(' campimg.parseOption(option);'); document.writeln(' campimg.option["cv"] = cv;'); document.writeln(' campimg.createTag(); '); document.writeln('}'); document.writeln(''); document.writeln(''); document.writeln(' createLpTag("20");'); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.close();