cookieVal   = "ads_new_or"; 

  layerName   = "ban18"; 
  leftRef     = "null"; 
  topRef      = "null"; 
  layerRef    = "null"; 
  styleSwitch = "null"; 
  brs         = navigator.appName;
 

  click_url  = "http://boxplay.ru";
  ban_url    = "http://www.lohushka.com/boxplay.swf"; 
  ban_width  = 300; 
  ban_height = 300; 

  speed      = 50; 
  step       = 20; 
 
  function getCookieVal( offset ){
    var endstr = document.cookie.indexOf( ";", offset );
    if( endstr == -1 ){
      endstr = document.cookie.length;
    }
    return unescape( document.cookie.substring( offset, endstr ) );
  }

  function GetCookie( name ){
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg)
        return getCookieVal (j);
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0) 
        break; 
    }
    return null;
  }

  function SetCookie( name, value ){
    var argv = SetCookie.arguments;
    var argc = SetCookie.arguments.length;
    var expires = (2 < argc) ? argv[2] : null;
    var path = (3 < argc) ? argv[3] : null;
    var domain = (4 < argc) ? argv[4] : null;
    var secure = (5 < argc) ? argv[5] : false;
    document.cookie = name + "=" + escape (value) +
      ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
      ((path == null) ? "" : ("; path=" + path)) +
      ((domain == null) ? "" : ("; domain=" + domain)) +
      ((secure == true) ? "; secure" : "");
  }

  document.write( '<div id=\'ban18\' style=\'position:absolute; top:0; left:0; display:none;\' zIndex=0>' );
  document.write( '<OBJECT id="flashban" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width='+ban_width+' height='+ban_height+' ALIGN="">' );
  document.write( '<PARAM NAME=movie VALUE="'+ban_url+'?click_url='+click_url+'">' );
  document.write( '<PARAM NAME=quality VALUE=high>' );
  document.write( '<PARAM NAME=wmode VALUE=transparent>' );
  document.write( '<PARAM NAME=bgcolor VALUE=#FFFFFF>' );
  document.write( '<PARAM NAME="allowScriptAccess" value="."/>' );
  document.write( '<EMBED swLiveConnect=true allowScriptAccess="." src="'+ban_url+'?click_url='+click_url+'" width='+ban_width+' height='+ban_height+' quality=high wmode=transparent bgcolor=#FFFFFF id="flashban" name="flashban" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' );
  document.write( '</OBJECT>' );
  document.write( '</div>' );
 
  if( brs == "Netscape" ){
    layerRef    = "document.getElementById"; 
    styleSwitch = ".style"; 
    leftRef     = ".left"; 
    topRef      = ".top";
    screenWidth = window.innerWidth - 20;
  }else{
    layerRef    = "document.all"; 
    styleSwitch = ".style"; 
    leftRef     = ".pixelLeft"; 
    topRef      = ".pixelTop";
    screenWidth = document.body.clientWidth;
  }
 
  function hideRM(){
    //alert(1);
    eval( layerRef + '("' + layerName + '")' + styleSwitch + '.visibility = "hidden"' );
    eval( layerRef + '("' + layerName + '")' + styleSwitch + '.display    = "none"' );
    clearInterval( watermark1 );

  }

   function rich_close()
   {
      document.getElementById('ban18').style.display='none';
   }

  var wm;
  function watermark(){
    JH = document.body.clientHeight;
    JW = document.body.clientWidth;
    JX = document.body.scrollLeft;
    JY = document.body.scrollTop;
    eval( layerRef + '("' + layerName + '")' + styleSwitch + '.top  = JY + ( JH / 2 ) - ( ban_height / 2 )' );
    eval( layerRef + '("' + layerName + '")' + styleSwitch + '.left = JX + ( JW / 2 ) - ( ban_width / 2 )' );
    eval( layerRef + '("' + layerName + '")' + styleSwitch + '.visibility = "visible"' );
    eval( layerRef + '("' + layerName + '")' + styleSwitch + '.display    = "block"' );
  }

  if( GetCookie( cookieVal ) > 2 ){
  }else{
    var expdate = new Date();
    expdate.setTime( expdate.getTime() +  ( 6 * 60 * 60 * 400 ) );
    SetCookie( cookieVal, 2, expdate, "/", null, false );
  }
  if( GetCookie( cookieVal ) < 1 ){
    var expdate = new Date();
    expdate.setTime( expdate.getTime() +  ( 6 * 60 * 60 * 400 ) );
    SetCookie( cookieVal, 2, expdate, "/", null, false );
  }
  if( GetCookie( cookieVal ) == 2 ){
    watermark1 = setInterval( 'watermark()', 1000 );
    var expdate = new Date();
    expdate.setTime( expdate.getTime() +  ( 6 * 60 * 60 * 400 ) );
    SetCookie( cookieVal, 3, expdate, "/", null, false );
  }