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 = \'WAiLcB-1\';'); document.writeln(' webantenna();'); document.writeln('}'); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.close();