var _pxmyd=document.domain;
if (_pxmyd.substring(0,4)=="www.")
{
	_pxmyd=_pxmyd.substring(4,_pxmyd.length);
}
_pxref=document.referrer;
_pxdoc=document.URL;
_pxcadpx="pagead";
_pxaction="http://";
_pxaction+= _pxcadpx + ".publinext.com/";
_pxaction+= _pxcadpx + "/";
_pxaction+= _pxcadpx + ".php";
var fecha=new Date();
var diames=fecha.getDate();
var mes=fecha.getMonth() +1 ;
var ano=fecha.getFullYear();
var hora = fecha.getHours();
var minutos = fecha.getMinutes();
var segundos = fecha.getSeconds();
if (minutos<10) minutos = "0" + minutos;
if (segundos<10) segundos = "0" + segundos;
if (hora>12){ hora=hora-12;	tempx="PM";}
else{ tempx="AM";}

fechalocal = mes + "/" + diames + "/" + ano + " " + hora + ":" + minutos + ":" + segundos + " " + tempx;
var _pxgettp=_pxaction;
_pxgettp += "?_pxs=" + _pnxts + "&_pxz=" + _pnxtz;
_pxgettp += "&_pxref=" + escape(_pxref) + "&_pxdoc=" + escape(_pxdoc);
_pxgettp += "&_pxfl=" + fechalocal + "&_pxmyd=" + _pxmyd;
document.write('<scr'+'ipt src="'+ _pxgettp +'" type="text/javascript" language="JavaScript"></scr'+'ipt>');

function cook(_pxel,_pxva,_pxdur)
{
	if (getCookie(_pxel)==null)
	{
		_pxseti= _pxdur;
		hoy=new Date();
		_pxes=new Date(hoy.getTime()+(_pxseti*1000));
		_pxes=" expires=" + _pxes.toGMTString()+ ";";
		document.cookie= _pxel + "=" + _pxva + "; path=/;" + _pxes +  "domain=" + _pxmyd + ";";
	}
}

function getCookie(pxname)
{
	var pxcname = pxname + "=";
	var pxdc = document.cookie;
	if (pxdc.length > 0)
	{
		pxbegin = pxdc.indexOf(pxcname);
		if (pxbegin != -1)
		{
			pxbegin += pxcname.length;
			pxend = pxdc.indexOf(";", pxbegin);
			if (pxend == -1) pxend = pxdc.length;
			return unescape(pxdc.substring(pxbegin, pxend));
		}
	}
	return null;
}

function impresion(_px_cn,_px_idzc)
{
	_pxcadpxx="pagead";
	_pxaction2="http://";
	_pxaction2+= _pxcadpxx + ".publinext.com/";
	_pxaction2+= _pxcadpxx + "/";
	_pxactions = _pxaction2 + _pxcadpxx + "imp-s.php";
	var _pxtpimgs=new Image(1,1);
	var _pxgettps=_pxactions + "?_px_idzc=" + _px_idzc + "&_pxref=" + escape(_pxref) + "&_pxpag=" + escape(_pxdoc);
	_pxtpimgs.src = _pxgettps;
	_pxtpimgs.onload=function()	{ return; }
	if (getCookie(_px_cn)==null)
	{
		_pxactionu = _pxaction2 + _pxcadpxx + "imp.php";
		var _pxtpimgu=new Image(1,1);
		var _pxgettpu=_pxactionu + "?_px_idzc=" + _px_idzc + "&_pxref=" + escape(_pxref) + "&_pxpag=" + escape(_pxdoc);
		_pxtpimgu.src = _pxgettpu;
		_pxtpimgu.onload=function() {return;}
	}
}

function ponflashpubli(nombre, ancho, alto, variables)
{
	document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 width='+ancho+' height='+alto+'>');
	document.write('<param name=movie value="'+nombre+'"/>');
	document.write('<param name=quality value="high"/>');
	document.write('<param name=menu value="false"/>');
	document.write('<param name="wmode" value="transparent"/>');
	document.write('<param name=FlashVars value="' + variables + '"/>');
	document.write('<embed src="'+nombre+'" FlashVars="' + variables + '" quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash  width='+ancho+' height='+alto+'></embed></object>');
}

function pongrafico(nombre,ancho,alto,url)
{
	document.write('<a h' + 'ref="' + url + '" target="_blank">');
	document.write('<img src="' + nombre + '" width="' + ancho + '" height="' + alto + '" border="0">');
	document.write('</' + 'a>');
}
