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

	function GetCookiePOPTrafMoreVal (offset)
	{
		var endstr = document.cookie.indexOf (";", offset);

		if (endstr == -1)
		endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}

	function GetCookiePOPTrafMore (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 GetCookiePOPTrafMoreVal (j);
			i = document.cookie.indexOf(" ", i) + 1;
			if (i == 0)
			break;
		}
		return null;
	}
	    NoTrafClose = GetCookiePOPTrafMore('NoTrafClose');

    if (NoTrafClose == null)
    {
		document.write('<div id="popup"><div style="position: absolute; top:70px; width:100%; margin-top:70px" id="popup_divMenuPOP">'+
		'<table align="center" border=0 width="300" cellpadding="0" cellspacing="2" bgcolor="#a3bacc">'+
		'<tr><th style="background:#809db4">&nbsp;</th><th width=5% align=right style="background:#809db4"><a onclick="document.getElementById(\'popup\').style.display=\'none\';popup_close();" href="javascript://">Закрыть</a></th></tr>'+
		'<tr><td colspan="2" style="background: #FBF1B7; padding:0px; margin: 0px;text-align:center">'+
			'<a href="http://www.realty.od.ua/?db=4&id=3602"><img class="galery_photo" src="img/seaside.jpg" height="230"><br><b>Продажа земельных участков</b><br/>1-я линия от моря</a> '+
		'</tr></table></div></div>');

		document.getElementById('popup_divMenuPOP').style.visibility='visible';

		if (document.getElementById('popup_divMenuPOP').style)
		window.setInterval("MovePopupWinPOP()", 10);
		window.onerror=null;
		document.body.scrollTop=10;
    }

	function MovePopupWinPOP()
	{
		if (document.body.scrollTop==0)
		document.getElementById('popup_divMenuPOP').style.top=document.documentElement.scrollTop+250; else
		document.getElementById('popup_divMenuPOP').style.top=document.body.scrollTop+250;
    }
	function popup_text()
	{
	    day = new Date();
	    URL = "http://ehoclick.com/main/register/30";
	    id = day.getTime();
	    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1024,height=800,left = 276,top = 132');");
        window.focus();
	}

	function popup_baner()
	{
	    day = new Date();

	    URL = "http://www.swi.com.ua/index.php?action=103";
	    id = day.getTime();
	    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1024,height=800,left = 276,top = 132');");
        window.focus();
		document.getElementById('popup_divMenuPOP').style.display = 'block';
		pathname = "/";
		myDomain = "/";

	    var largeExpDate = new Date ();
	    largeExpDate.setTime(largeExpDate.getTime() + (24 * 60 * 60 * 1000));
	    SetCookiePOPTrafMore('NoTrafBaner','1',largeExpDate, "/");
	}

	function popup_close()
	{
	    document.getElementById('popup_divMenuPOP').style.display = 'none';
	    pathname = "/";
	    myDomain = "/";
        var largeExpDate = new Date ();
	    largeExpDate.setTime(largeExpDate.getTime() + (24 * 60 * 60 * 1000));
//	    largeExpDate.setTime(largeExpDate.getTime() + (1 * 1 * 3 * 1000));
	    SetCookiePOPTrafMore('NoTrafClose','1',largeExpDate, "/");
	}

	  window.setInterval("zadergka()", 5000);

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

	function GetCookiePOPTrafMoreVal (offset)
	{
		var endstr = document.cookie.indexOf (";", offset);

		if (endstr == -1)
		endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}

	function GetCookiePOPTrafMore (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 GetCookiePOPTrafMoreVal (j);
			i = document.cookie.indexOf(" ", i) + 1;
			if (i == 0)
			break;
		}
		return null;
	}
	
	document.onmouseup=popup_div;

	function popup_div()
	{
		NoTrafDiv = GetCookiePOPTrafMore('NoTrafDiv');
		if (NoTrafDiv == null)
		{
		    var largeExpDate = new Date ();
		    largeExpDate.setTime(largeExpDate.getTime() + (24 * 60 * 60 * 1000));
		    SetCookiePOPTrafMore('NoTrafDiv','1',largeExpDate, "/");
	        window.focus();
        }
	}
  }
    