
var DaosBlock = document.getElementById('daos')

if (!DaosBlock)
{
	DaosBlock = document.createElement('div')
	DaosBlock.setAttribute('id', 'daos')

	var scripts = document.getElementsByTagName('script')
	for(var n=0; n < scripts.length; n++) 
	{
		if (scripts[n].getAttribute('src').indexOf('JSblock.php') + 1)
		{
			scripts[n].parentNode.insertBefore(DaosBlock, scripts[n])
		}
	}
}

DaosBlock.setAttribute('style', 'background:#FFE4B5; padding:.6em 1.8em;')

var DaoString= document.createElement('a')
	DaoString.innerHTML = 'Бесплатная рассылка \"Как увеличить продажи\"'
	DaoString.setAttribute('id', 'daostring')
	DaoString.setAttribute('style', 'font-size:x-large; color:#1E90FF;')
	
			DaoString.setAttribute('title', 'http://activesales.info/subscribe/sales_up.html')
			DaoString.setAttribute('href', 'http://activesales.info/daos/?click=5498e97890d655455bc79a6b8cbecdb1')
			

var DaosInvite = document.createElement('a')
	DaosInvite.innerHTML = 'Моментальное размещение вашей ссылки здесь'
	DaosInvite.setAttribute('id', 'daosinvite')
	DaosInvite.setAttribute('style', 'display:block; font-size:small; text-align:right; color:red; margin-top:.4em;')
	DaosInvite.setAttribute('href', 'http://activesales.info/daos/')
	DaosInvite.setAttribute('title', 'Разместите свою рекламу прямо сейчас — это очень просто и удобно. Вам понравится!')

DaosBlock.appendChild(DaosInvite)
DaosBlock.insertBefore(DaoString, DaosInvite)


function pingview()
{
	var ping = document.createElement('script')
	ping.setAttribute('type', 'text/javascript')
	ping.setAttribute('id', '62aea26f59b266d938f9bc612d494897')
	ping.setAttribute('src', 'http://activesales.info/daos/counter.php?id=5498e97890d655455bc79a6b8cbecdb1&time=1329962169&hashtime=62aea26f59b266d938f9bc612d494897&letter=A&hundred=1&rand=33109')
	DaosBlock.parentNode.appendChild(ping)
}

var PingDaosAllow = true

if (window.top !== window.window) // http://javascript.ru/window.top
	{
	  PingDaosAllow = false
	}


if (PingDaosAllow)
{
	setTimeout(pingview, 3300)
}
		
