(function(){ var $cookie = document.cookie; var $params = {}; $cookie.split( '; ' ).forEach( function( $item ){ var $set = $item.split( '=' ); var $key = decodeURIComponent( $set[ 0 ] ); if( 'afl_tracking_aid' == $key ) { var $value = decodeURIComponent( $set[ 1 ] ); $params[ $key ] = $value; } } ); var $image = new Image(); if( $params[ 'afl_tracking_aid' ] ) { $image.src = 'http://lwing.xsrv.jp/add.php?aid=' + $params[ 'afl_tracking_aid' ] + '&check=FeKKYnLn&adwares=A0000004'; } else { $image.src = 'http://lwing.xsrv.jp/add.php?check=FeKKYnLn&adwares=A0000004'; } })();