var phpadsbanner = '';

phpadsbanner += '<'+'div id="phpads_be1acc8b" style="position:absolute; width:300px; height:250px; z-index:99; left: 0px; top: 0px; visibility: hidden; overflow: hidden"><'+'a href=\'http://www.letsshopcanada.ca/adserver/adclick.php?bannerid=15&amp;zoneid=4&amp;source=&amp;dest=http%3A%2F%2Fwww.contesthound.ca%2Fsignupandwin.php3%3FsiteID%3DFloat\' target=\'_blank\'><'+'img src=\'http://www.letsshopcanada.ca/adserver/adimage.php?filename=gift-card-300x250.gif&amp;contenttype=gif\' width=\'300\' height=\'250\' alt=\'Win a $500 chapters.indigo.ca Gift Card\' title=\'Win a $500 chapters.indigo.ca Gift Card\' border=\'0\'><'+'/a><'+'div id="beacon_15" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><'+'img src=\'http://www.letsshopcanada.ca/adserver/adlog.php?bannerid=15&amp;clientid=7&amp;zoneid=4&amp;source=&amp;block=0&amp;capping=2&amp;cb=7271b2df4ad45c9aabe83575a5c76f77\' width=\'0\' height=\'0\' alt=\'\' style=\'width: 0px; height: 0px;\'><'+'/div><'+'/td><'+'/tr><'+'/table><'+'/div>';

document.write(phpadsbanner);

function phpAds_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=phpAds_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}



function phpAds_floater_setclip_be1acc8b(o, top, right, bottom, left) 
{
	if (o.style)
	{
		o.style.clip = "rect(" + top + " " + right + " " + bottom + " " + left + ")";
	}
	else 
	{
		o.clip.top = top; o.clip.right = right; o.clip.bottom = bottom; o.clip.left = left;
	}
}

function phpAds_floater_setpos_be1acc8b(c, left, width)
{
	if (document.all && !window.innerWidth)	
	{
		c.pixelLeft = left; c.pixelWidth = width;
	}
	else
	{
		c.left = left; c.width = width;
	}
}

function phpAds_floater_grow_be1acc8b()
{
	var o = phpAds_findObj('phpads_be1acc8b');

	if (!o)
		return false;
	
	if (o.style)
		c = o.style;
	else
		c = o;

	if (window.innerWidth)
		ww = window.innerWidth - 16;
	else
		ww = document.body.clientWidth;

	var w = 300;
	var h = 250;
	
	var mr = ww;
	var ml = 0;
	if (mr > ml)
	{
		var shift = 7;
		var iw = mr - ml + w; var is = ml - w;
		var cr = w; var cl = 0;
		
		if (document.all && !window.innerWidth)
			ll = c.pixelLeft;
		else
			ll = parseInt(c.left);
		
		if (c.visibility == 'hidden' || c.visibility == 'hide')
		{
			phpAds_floater_setclip_be1acc8b(o, 0, w, h, w);
			phpAds_floater_setpos_be1acc8b(c, is, w);
			c.visibility = 'visible';
		}
		else
		{
			if (ll < mr - shift)
			{
				ll += shift;
				if (ml > ll) cl = ml - ll;
				if (ll > mr - w) cr = mr - ll;
				
				phpAds_floater_setpos_be1acc8b(c, ll, cr);
				phpAds_floater_setclip_be1acc8b(o, 0, cr, h, cl);
			}
			else
			{
				c.visibility = 'hidden';
				window.clearInterval(phpAds_adlayers_timerid_be1acc8b);
	
				if (true)
					window.setTimeout('phpAds_floater_be1acc8b()', 10000);
			}
		}
	}
}


function phpAds_floater_be1acc8b()
{
	phpAds_adlayers_timerid_be1acc8b = window.setInterval('phpAds_floater_grow_be1acc8b()', 50);
	phpAds_adlayers_counter_be1acc8b++;
}

var phpAds_adlayers_counter_be1acc8b = 0;
var phpAds_adlayers_timerid_be1acc8b = null;

phpAds_floater_be1acc8b();

