(function() {
	if (!window.teasernet_padid || window.teasernet_padid != 349) {
	(function(){if(typeof window.teasernet_blockid=='undefined'||typeof window.teasernet_padid=='undefined'||!window.teasernet_blockid||!window.teasernet_padid)return;if(typeof window.tnBlInit!='function')window.tnBlInit=function(p,b){window.teasernet[b]={'i':p};var js=document.createElement('script');js.src='http://'+window.tnSHost+'/'+Math.floor(b/500)+'/'+b+'.js';window.tnForStatic.appendChild(js);document.write('<div id="teasernet_'+b+'"></div>');window.teasernet_blockid=window.teasernet_padid=0;};if(typeof window.teasernet!='undefined'){window.tnBlInit(window.teasernet_padid,window.teasernet_blockid);return;}var tns=document.getElementsByTagName('script');window.tnHost=tns[tns.length-1].src.replace(/^\s*http\:\/\/([^\/]+)\/block\.js\s*$/i,'$1')||'echo.teasernet.com';window.tnSHost=(window.tnHost!='echo.teasernet.com'?'pic.'+window.tnHost.replace(/^.*?([^\.]+\.[a-z]{2,5})$/,'$1'):'pic8.teasernet.com')+'/static';if('s.mega-porno.ru,viarga-online.ru,bannuncio.com,affarity.com,associeta.com,agitazio.com,attivertura.com,teaservizio.com,comunicazio.com'.indexOf(window.tnHost)>=0){window.tnHost='echo.teasernet.com';window.tnSHost='pic8.teasernet.com/static';}window.teasernet={};window.tnForStatic=document.getElementsByTagName('head')?document.getElementsByTagName('head')[0]:document.getElementById('teasernet_'+window.teasernet_blockid);window.tnBlInit(window.teasernet_padid,window.teasernet_blockid);if(typeof Event=='undefined'||typeof Event.domReady!='object'){var js=document.createElement('script');js.src='http://'+window.tnSHost+'/domready.js';window.tnForStatic.appendChild(js);}window.tnTeasersLoaded=0;window.tnGetIds=function(){for(var i in window.teasernet)if(!window.teasernet[i]['h']){window.setTimeout('window.tnGetIds()',100);return;}if(window.tnTeasersLoaded++)return;var d=[];var p=[];var b=[];var h=[];var v=[];var cs=document.cookie.split(';');for(var i in window.teasernet){if(!window.teasernet[i])continue;b.push(i);p.push(window.teasernet[i]['i']);h.push(window.teasernet[i]['h']);v.push(window.teasernet[i]['v']);if(document.cookie=='')continue;var dx=0;for(var k=0;k<cs.length;k++){var c=cs[k].split('=');if(c.length<2)break;if(c[0].replace(/(^\s+)|(\s+$)/g,'')=='teasernet_c'+i){dx=c[1];break;}}d.push(dx);}var js=document.createElement('script');js.src='http://'+window.tnHost+'/step17.php?p='+p+'&b='+b+'&h='+h+'&v='+v+'&ref='+escape(document.referrer)+'&i='+d.join('|')+'&'+Math.round(Math.random()*100000);window.tnForStatic.appendChild(js);};window.tnSetStyle=function(style){var css=document.createElement('style');css.setAttribute('type','text/css');if(css.styleSheet)css.styleSheet.cssText=style;else css.appendChild(document.createTextNode(style));window.tnForStatic.appendChild(css);};window.tnSetIds=function(ids,blockid){var d=new Date();d.setTime(d.getTime()+600000);document.cookie='teasernet_c'+blockid+'='+ids+'; path=/; expires='+d.toUTCString();};window.tnShowBlock=function(blockid,pack,host){if(!blockid||!document.getElementById('teasernet_'+blockid))return;document.getElementById('teasernet_'+blockid).innerHTML='<if'+'rame class="tblock_'+blockid+'" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" style="padding:0;margin:0;border:0px;" src="http://'+window.tnSHost+'/'+Math.floor(blockid/500)+'/'+blockid+'.html?c='+pack+(host!='echo.teasernet.com'?'&h='+escape(host):'')+'&'+Math.round(Math.random()*100000)+'" allowtransparency="true" vspace="0" hspace="0"></ifr'+'ame>';};window.tnGetReady=function(){if(typeof Event=='undefined'||typeof Event.domReady!='object'){window.setTimeout('window.tnGetReady()',10);return;}Event.domReady.add(function(){window.tnGetIds()});};
window.setTimeout('window.tnGetReady()',10);})()
} else {
	if (typeof window.teasernet_blockid == 'undefined' || typeof window.teasernet_padid == 'undefined' || !window.teasernet_blockid || !window.teasernet_padid)
		return;
	if (typeof window.tnBlInit != 'function')
		window.tnBlInit = function(p,b) {
			if (typeof window.teasernet[p] == 'undefined')
				window.teasernet[p] = {};
			if (typeof window.tnParams[p] == 'undefined')
				window.tnParams[p] = {};
			window.teasernet[p][b] = {};
			document.write('<div id="teasernet_'+b+'"></div>');
			if (!window.tnForStatic)
				window.tnForStatic = document.getElementById('teasernet_'+b);
			var js = document.createElement('script');
			js.src = 'http://'+window.tnSHost+'/'+Math.floor(b/500)+'/'+b+'x.js';
			window.tnForStatic.appendChild(js);
		};
	if (typeof window.teasernet != 'undefined' && typeof window.teasernet[window.teasernet_padid] != 'undefined') {
		window.tnBlInit(window.teasernet_padid,window.teasernet_blockid);
		window.teasernet_blockid = window.teasernet_padid = 0;
		return;
	} else if (typeof window.teasernet != 'undefined') {
		window.setTimeout('window.tnGetIds('+window.teasernet_padid+')', 0);
		window.teasernet_blockid = window.teasernet_padid = 0;
		return;
	}
	var tns = document.getElementsByTagName('script');
	window.tnHost = tns[tns.length-1].src.replace(/^\s*http\:\/\/([^\/]+)\/block\d?\.js\s*$/i, '$1');
	if (window.tnHost.indexOf('://'))
		window.tnHost = 'echo.teasernet.com';
	window.tnSHost = (window.tnHost != 'echo.teasernet.com' ? 'pic.'+window.tnHost.replace(/^.*?([^\.]+\.[a-z]{2,5})$/, '$1') : 'pic8.teasernet.com')+'/static';
	window.teasernet = window.tnParams = {};
	window.tnForStatic = document.getElementsByTagName('head') ? document.getElementsByTagName('head')[0] : document.body;
	window.tnBlInit(window.teasernet_padid,window.teasernet_blockid);
	window.tnGetIds = function(p) {
		var js = document.createElement('script');
		js.src = 'http://'+window.tnHost+'/step18.php?p='+p+'&'+Math.round(Math.random()*100000);
		window.tnForStatic.appendChild(js);
	};
	window.tnSetStyle = function(style) {
		var css = document.createElement('style');
		css.setAttribute('type', 'text/css');
		if(css.styleSheet)css.styleSheet.cssText=style;
		else css.appendChild(document.createTextNode(style));
		window.tnForStatic.appendChild(css);
	};
	window.tnSetParams = function(b,a) {
		for (var i in window.teasernet) {
			if (typeof window.teasernet[i][b] == 'undefined')
				continue;
			for (var k in a)
				window.teasernet[i][b][k]=a[k];
		}
	};
	window.tnGetStart = function(p) {
		if (window.tnParams[p]['f'])
			return window.tnParams[p]['f'];
		var cs = document.cookie ? document.cookie.split(';') : [];
		if (cs.length) {
			for (var k = 0; k < cs.length; k++) {
				var c = cs[k].split('=');
				if (c.length < 2)
					break;
				if (c[0].replace(/(^\s+)|(\s+$)/g, '') == 'teasernet_p'+p) {
					window.tnParams[p]['f'] = parseInt(c[1]);
					return window.tnParams[p]['f'];
				}
			}
		}
		window.tnParams[p]['f'] = 1;
		return 1;
	};
	window.tnSetStart = function(p,s) {
		var d = new Date();
		d.setTime(d.getTime() + 600000);
		document.cookie = 'teasernet_p'+p+'='+s+'; path=/; expires=' + d.toUTCString();
	};
	window.tnLoadBlocks = function() {
		for (var p in window.tnParams) {
			if (!window.tnParams[p]['t'] || !window.teasernet[p]) {
				//window.tnShowBlock(0,0);
				return;
			}
			var s = window.tnGetStart(p);
			for (var b in window.teasernet[p]) {
				var a = window.teasernet[p][b];
				if (!a['h'])
					continue;
				if (!a['s']) {
					window.teasernet[p][b]['s'] = s;
					window.tnShowBlock(p,b);
				}
				s+=a['h']*a['v'];
				while(s>window.tnParams[p]['t'])s=s-window.tnParams[p]['t'];
			}
			window.tnSetStart(p,s);
		}
	}
	window.tnShowBlock = function(p,b) {
		if (!p || !b || !document.getElementById('teasernet_'+b))
			return;
		var a = window.teasernet[p][b];
		document.getElementById('teasernet_'+b).innerHTML = '<if'+'rame class="tblock_'+b+'" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" style="padding:0;margin:0;border:0px;" src="about:blank" allowtransparency="true" vspace="0" hspace="0"></ifr'+'ame>';
		document.getElementById('teasernet_'+b).childNodes[0].src = 'http://'+window.tnSHost+'/'+Math.floor(b / 500)+'/'+b+'x.html?b='+b+'&x='+a['h']+'&y='+a['v']+'&s='+a['s']+'&c='+encodeURIComponent(window.tnParams[p]['c'])+'&ref='+escape(document.referrer)+(window.tnHost!='echo.teasernet.com'?'&h='+escape(window.tnHost):'')+'&'+Math.round(Math.random()*100000);
	};
	window.setTimeout('window.tnGetIds('+window.teasernet_padid+')', 0);
	window.teasernet_blockid = window.teasernet_padid = 0;
	}
})()