document.open();
document.writeln('');
document.writeln('');
document.writeln('var WA_Processor;');
document.writeln('');
document.writeln('if(!WA_Processor){');
document.writeln(' ');
document.writeln(' WA_Processor = function (){');
document.writeln(' this.account="";');
document.writeln(' this.cv="";');
document.writeln(' this.parameters= new Array();');
document.writeln(' this.imageURL="";');
document.writeln(' this.imageObj=new Image(1,1);');
document.writeln(' this.imageObj.isSet = false;');
document.writeln(' this.imageObj.isComplete = false;');
document.writeln(' this.removeAd=false;');
document.writeln(' ');
document.writeln(' this.encodeURL = function(s, u)');
document.writeln(' {');
document.writeln(' if ( typeof ( encodeURIComponent ) == \'function\' ) {');
document.writeln(' if (u)');
document.writeln(' return encodeURI( s );');
document.writeln(' else');
document.writeln(' return encodeURIComponent( s );');
document.writeln(' }');
document.writeln(' else {');
document.writeln(' return escape( s );');
document.writeln(' }');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.decodeURL = function (s) {');
document.writeln(' if ( typeof ( decodeURIComponent ) == \'function\') {');
document.writeln(' return decodeURIComponent(s);');
document.writeln(' } else {');
document.writeln(' return unescape(s);');
document.writeln(' }');
document.writeln(' };');
document.writeln('');
document.writeln(' this.cookieEnabled = function ()');
document.writeln(' {');
document.writeln(' return navigator.cookieEnabled ? 1 : 0;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.referrer = function ()');
document.writeln(' {');
document.writeln(' if ( document.referrer )');
document.writeln(' if ( WA_Processor.isFrameReachable === true && document.referrer === WA_Processor.parentLocation.split(\'#\')[0] )');
document.writeln(' return WA_Processor.topReferrer;');
document.writeln(' else');
document.writeln(' return document.referrer;');
document.writeln(' else');
document.writeln(' return "";');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.urlNoWaad = function ()');
document.writeln(' {');
document.writeln(' var loc;');
document.writeln(' loc = ( WA_Processor.isFrameReachable === true && document.referrer === WA_Processor.parentLocation.split(\'#\')[0] ) ? WA_Processor.topLocation : document.location;');
document.writeln('');
document.writeln(' var search = loc.search;');
document.writeln(' if ( search.charAt( 0 ) == \'?\' )');
document.writeln(' search = search.slice( 1 );');
document.writeln(' else');
document.writeln(' return loc.href;');
document.writeln(' var splitted = search.split( \'&\' );');
document.writeln(' var newSplitted = new Array();');
document.writeln(' for ( var i = 0 ; i < splitted.length ; i++ )');
document.writeln(' if ( ! splitted[ i ].indexOf( \'waad\' ) == 0 )');
document.writeln(' newSplitted[newSplitted.length]= splitted[ i ] ;');
document.writeln(' var newSearch = newSplitted.join( \'&\' );');
document.writeln(' return loc.protocol + \'//\' + loc.host + loc.pathname + \'?\' + newSearch + loc.hash;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.url = function ( removeAd )');
document.writeln(' {');
document.writeln(' var url;');
document.writeln(' if ( removeAd )');
document.writeln(' url = this.urlNoWaad();');
document.writeln(' else');
document.writeln(' url = ( WA_Processor.isFrameReachable === true && document.referrer === WA_Processor.parentLocation.split(\'#\')[0] ) ? WA_Processor.topLocation.href : document.location.href;');
document.writeln(' ');
document.writeln(' var query = \'\';');
document.writeln(' var separator;');
document.writeln(' var before_fragment = url;');
document.writeln(' var after_fragment = "";');
document.writeln(' var fragment_position = url.indexOf( \'#\' );');
document.writeln(' if ( fragment_position > -1 ) {');
document.writeln(' before_fragment = url.substring( 0, fragment_position );');
document.writeln(' after_fragment = url.substring( fragment_position );');
document.writeln(' }');
document.writeln(' if ( before_fragment.indexOf( \'?\' ) > -1 )');
document.writeln(' separator = \'&\';');
document.writeln(' else');
document.writeln(' separator = \'?\';');
document.writeln(' for ( var key in this.parameters ) {');
document.writeln(' if ( !WA_Processor.ignoreList[key] )');
document.writeln(' {');
document.writeln(' query += separator +');
document.writeln(' this.encodeURL( key ) + \'=\' + this.encodeURL( this.parameters[ key ] );');
document.writeln(' separator = \'&\';');
document.writeln(' }');
document.writeln(' }');
document.writeln(' return before_fragment + query + after_fragment;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.pageTitle = function ()');
document.writeln(' {');
document.writeln(' if (document.title)');
document.writeln(' return document.title;');
document.writeln(' return \'\';');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.screenWidth = function ()');
document.writeln(' {');
document.writeln(' if (window.screen.width)');
document.writeln(' return window.screen.width;');
document.writeln(' return 0;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.screenHeight = function ()');
document.writeln(' {');
document.writeln(' if (window.screen.height)');
document.writeln(' return window.screen.height;');
document.writeln(' return 0;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.colorDepth = function ()');
document.writeln(' {');
document.writeln(' if (window.screen.colorDepth)');
document.writeln(' return window.screen.colorDepth;');
document.writeln(' return 0;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.windowWidth = function ()');
document.writeln(' {');
document.writeln(' if ( window.innerWidth )');
document.writeln(' return window.innerWidth;');
document.writeln(' /*@cc_on @*/');
document.writeln(' /*@if(@_jsc' + 'ript_version < 5.0)');
document.writeln(' return 0;');
document.writeln(' @end @*/');
document.writeln(' if ( document.documentElement.clientWidth )');
document.writeln(' return document.documentElement.clientWidth;');
document.writeln(' return 0;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.windowHeight = function ()');
document.writeln(' {');
document.writeln(' if ( window.innerHeight )');
document.writeln(' return window.innerHeight;');
document.writeln(' /*@cc_on @*/');
document.writeln(' /*@if(@_jsc' + 'ript_version < 5.0)');
document.writeln(' return 0;');
document.writeln(' @end @*/');
document.writeln(' if ( document.documentElement.clientHeight )');
document.writeln(' return document.documentElement.clientHeight;');
document.writeln(' return 0;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.javaEnabled = function ()');
document.writeln(' {');
document.writeln(' return navigator.javaEnabled() ? 1 : 0;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.flashVersion = function ()');
document.writeln(' {');
document.writeln(' var mVersion = "";');
document.writeln(' var mNavigator = navigator;');
document.writeln(' if ( mNavigator.plugins && mNavigator.plugins.length ) {');
document.writeln(' for ( var i = 0 ; i < mNavigator.plugins.length ; i++ ) {');
document.writeln(' if ( mNavigator.plugins[ i ].name.indexOf( \'Shockwave Flash\') != -1 ) {');
document.writeln(' mVersion = mNavigator.plugins[ i ].desc' + 'ription.split(\'Shockwave Flash \')[ 1 ];');
document.writeln(' break;');
document.writeln(' }');
document.writeln(' }');
document.writeln(' } else if ( window.ActiveXObject ) {');
document.writeln(' for (var i = 10 ; i >= 2; i-- ) {');
document.writeln(' /*@cc_on @*/');
document.writeln(' /*@if(@_jsc' + 'ript_version < 5.0)');
document.writeln(' return mVersion;');
document.writeln(' @else @*/');
document.writeln(' try {');
document.writeln(' var mFlash = eval( "new ActiveXObject(\'ShockwaveFlash.ShockwaveFlash." + i + "\');" );');
document.writeln(' if ( mFlash ) {');
document.writeln(' mVersion = i + \'.0\';');
document.writeln(' break;');
document.writeln(' }');
document.writeln(' }');
document.writeln(' catch(e) {}');
document.writeln(' /*@end @*/');
document.writeln(' }');
document.writeln(' }');
document.writeln(' return mVersion;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.makeImageURL = function( removeAd )');
document.writeln(' {');
document.writeln(' var mProtocol = document.location.protocol;');
document.writeln(' if ( ! ( mProtocol == "http:" || mProtocol == "https:" ) )');
document.writeln(' return;');
document.writeln(' ');
document.writeln(' var query =');
document.writeln(' "?ga=" + this.account +');
document.writeln(' "&r=" + this.encodeURL( this.referrer() ) +');
document.writeln(' "&u=" + this.encodeURL( this.url( removeAd ) ) +');
document.writeln(' "&pt=" + this.encodeURL( this.pageTitle() ) +');
document.writeln(' "&jse="+ "1" +');
document.writeln(' "&ce=" + this.cookieEnabled() +');
document.writeln(' "&je=" + this.javaEnabled() +');
document.writeln(' "&fv=" + this.encodeURL( this.flashVersion() ) +');
document.writeln(' "&w=" + this.screenWidth() +');
document.writeln(' "&h=" + this.screenHeight() +');
document.writeln(' "&cd=" + this.colorDepth() +');
document.writeln(' "&ww=" + this.windowWidth() +');
document.writeln(' "&wh=" + this.windowHeight();');
document.writeln(' if ( this.cv )');
document.writeln(' query += "&cv=" + this.encodeURL( this.cv );');
document.writeln(' ');
document.writeln(' return mProtocol + "//tr.webantenna.info/_webantenna.png" + query;');
document.writeln(' };');
document.writeln(' ');
document.writeln(' this.load = function ()');
document.writeln(' {');
document.writeln(' if(!this.imageObj.src)');
document.writeln(' {');
document.writeln(' this.imageObj.isComplete = true;');
document.writeln(' this.imageObj.src = this.imageURL;');
document.writeln(' }');
document.writeln(' };');
document.writeln(' };');
document.writeln(' ');
document.writeln(' WA_Processor.setParentsProperty = function()');
document.writeln(' {');
document.writeln(' /*@cc_on @*/');
document.writeln(' /*@if (@_jsc' + 'ript_version < 5)');
document.writeln(' WA_Processor.isFrameReachable = false;');
document.writeln(' return;');
document.writeln(' @else @*/');
document.writeln(' try');
document.writeln(' {');
document.writeln(' WA_Processor.parentLocation = parent.location.href;');
document.writeln(' WA_Processor.topReferrer = top.document.referrer;');
document.writeln(' WA_Processor.topLocation = top.document.location;');
document.writeln(' WA_Processor.isFrameReachable = true;');
document.writeln(' }');
document.writeln(' catch(e)');
document.writeln(' {');
document.writeln(' WA_Processor.isFrameReachable = false;');
document.writeln(' }');
document.writeln(' /*@end @*/');
document.writeln(' };');
document.writeln('');
document.writeln(' WA_Processor.register = function( processor ) ');
document.writeln(' {');
document.writeln(' WA_Processor.queue[WA_Processor.queue.length] = processor;');
document.writeln(' };');
document.writeln('');
document.writeln(' WA_Processor.send = function ()');
document.writeln(' {');
document.writeln(' var length = WA_Processor.queue.length;');
document.writeln(' var lastprocessor = WA_Processor.queue[length-1];');
document.writeln(' if(length > 1)');
document.writeln(' {');
document.writeln(' var processor = WA_Processor.queue[length-2];');
document.writeln(' if(processor.imageObj.isComplete == false && processor.imageObj.isSet == true)');
document.writeln(' {');
document.writeln(' if(!processor.removeAd)');
document.writeln(' {');
document.writeln(' lastprocessor.imageObj.isSet = true;');
document.writeln(' processor.imageObj.onload = function()');
document.writeln(' {');
document.writeln(' lastprocessor.load();');
document.writeln(' }');
document.writeln(' return;');
document.writeln(' }');
document.writeln(' }');
document.writeln(' }');
document.writeln(' lastprocessor.imageObj.src = lastprocessor.imageURL;');
document.writeln(' lastprocessor.imageObj.isSet = true;');
document.writeln(' if(!lastprocessor.removeAd)');
document.writeln(' {');
document.writeln(' lastprocessor.imageObj.onload = function(){');
document.writeln(' lastprocessor.imageObj.isComplete = true;');
document.writeln(' }');
document.writeln(' }');
document.writeln(' };');
document.writeln(' ');
document.writeln(' WA_Processor.createProcessor = function()');
document.writeln(' {');
document.writeln(' var wa = new WA_Processor();');
document.writeln(' WA_Processor.register(wa);');
document.writeln(' return wa;');
document.writeln(' };');
document.writeln('');
document.writeln(' WA_Processor.webantenna = function(removeAd)');
document.writeln(' {');
document.writeln(' var length = WA_Processor.queue.length;');
document.writeln(' var newprocessor = WA_Processor.queue[length-1]');
document.writeln(' newprocessor.removeAd = removeAd;');
document.writeln(' newprocessor.imageURL = newprocessor.makeImageURL(removeAd);');
document.writeln(' WA_Processor.send();');
document.writeln(' };');
document.writeln('');
document.writeln(' WA_Processor.queue = new Array();');
document.writeln(' WA_Processor.isFrameReachable = true;');
document.writeln(' WA_Processor.setParentsProperty();');
document.writeln(' WA_Processor.ignoreList = new Array();');
document.writeln('}');
document.writeln('');
document.writeln('var _wa = WA_Processor.createProcessor();');
document.writeln('');
document.writeln('function webantenna( removeAd )');
document.writeln('{');
document.writeln(' WA_Processor.webantenna(removeAd);');
document.writeln('}');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('if ( typeof( webantenna ) == \'function\' ) {');
document.writeln(' _wa.account = \'WAwrcC-1\';');
document.writeln(' _wa.cv = \'bcv511\';');
document.writeln(' webantenna();');
document.writeln('}');
document.writeln('');
document.writeln('');
document.writeln('
');
document.writeln('');
document.writeln('');
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(' createCvTag("153", "34");');
document.writeln('');
document.writeln('');
document.writeln('
');
document.writeln('');
document.writeln('');
document.close();