function activeads_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=activeads_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function activeads_adlayers_place_a1acaaf4()
{
	var c = activeads_findObj('activeads_ca1acaaf4');
	var o = activeads_findObj('activeads_oa1acaaf4');

	if (!c || !o)
		return false;

	c = c.style;
	o = o.style;

	if (document.all && !window.innerWidth) { 
		c.pixelLeft = document.body.clientWidth - 250;
		o.pixelLeft = document.body.clientWidth - 250;
		c.pixelTop = document.body.clientHeight + document.body.scrollTop - 100;
		o.pixelTop = document.body.clientHeight + document.body.scrollTop - 100;
	} else {
		c.left = window.innerWidth + window.pageXOffset - 250;
		o.left = window.innerWidth + window.pageXOffset - 250;
		c.top = window.innerHeight + window.pageYOffset - 100;
		o.top = window.innerHeight + window.pageYOffset - 100;
	}
}
function activeads_geopop(what, ad)
{
	var c = activeads_findObj('activeads_c' + ad);
	var o = activeads_findObj('activeads_o' + ad);

	if (!c || !o)
		return false;

	c = c.style;
	o = o.style;

	switch(what)
	{
		case 'collapse':
			c.visibility = 'visible'; 
			o.visibility = 'hidden';

			if (activeads_timerid[ad])
			{
				window.clearTimeout(activeads_timerid[ad]);
				activeads_timerid[ad] = false;
			}

			break;

		case 'expand':
			o.visibility = 'visible';
			c.visibility = 'hidden'; 

		break;

		case 'close':
			c.visibility = 'hidden'; 
			o.visibility = 'hidden';

		break;

		case 'open':
		
			activeads_adlayers_place_a1acaaf4();

			c.visibility = 'hidden';
			o.visibility = 'visible';

			break;
	}

	return false;
}


if (typeof activeads_timerid == 'undefined')
	activeads_timerid = new Array();

activeads_timerid['a1acaaf4'] = activeads_geopop('open', 'a1acaaf4');

setInterval('activeads_adlayers_place_a1acaaf4()',200);