var phpadsbanner = '';

phpadsbanner += '<'+'div id="phpads_40849d24" style="position:absolute; width:280px; height:175px; z-index:99; left: 0px; top: 450px; visibility: hidden; overflow: hidden"><'+'a href=\'http://www.yourpattaya.com/ads/adclick.php?bannerid=383&amp;zoneid=228&amp;source=VigRx280x175-floater&amp;dest=http%3A%2F%2Fwww.pattaya-bar-girls.com%2Farep%2F\' target=\'_blank\' onMouseOver="self.status=\'sexholiday\'; return true;" onMouseOut="self.status=\'\';return true;"><'+'img src=\'http://www.yourpattaya.com/ads/adimage.php?filename=banner-pbgr-nnp-lek-280x175.jpg&amp;contenttype=jpeg\' width=\'280\' height=\'175\' alt=\'Amazing sex holiday for peanuts\' title=\'Amazing sex holiday for peanuts\' border=\'0\'><'+'/a><'+'div id="beacon_383" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><'+'img src=\'http://www.yourpattaya.com/ads/adlog.php?bannerid=383&amp;clientid=122&amp;zoneid=228&amp;source=VigRx280x175-floater&amp;block=0&amp;capping=0&amp;cb=cf9498cddaf98c3079c7d5f214ccecc3\' 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_40849d24(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_40849d24(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_40849d24()
{
	var o = phpAds_findObj('phpads_40849d24');

	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 = 280;
	var h = 175;
	
	var mr = ww;
	var ml = 0;
	if (mr > ml)
	{
		var shift = 4;
		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_40849d24(o, 0, w, h, w);
			phpAds_floater_setpos_40849d24(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_40849d24(c, ll, cr);
				phpAds_floater_setclip_40849d24(o, 0, cr, h, cl);
			}
			else
			{
				c.visibility = 'hidden';
				window.clearInterval(phpAds_adlayers_timerid_40849d24);
	
				if (true)
					window.setTimeout('phpAds_floater_40849d24()', 0);
			}
		}
	}
}


function phpAds_floater_40849d24()
{
	phpAds_adlayers_timerid_40849d24 = window.setInterval('phpAds_floater_grow_40849d24()', 50);
	phpAds_adlayers_counter_40849d24++;
}

var phpAds_adlayers_counter_40849d24 = 0;
var phpAds_adlayers_timerid_40849d24 = null;

phpAds_floater_40849d24();

