function openads_bgbanner_show(containerid, wrapperids) {
	var tempdiv=document.getElementById(containerid);
	if(!tempdiv)
		return;
	var imgs=tempdiv.getElementsByTagName('IMG');
	var found=-1;
	for(var i=0; i<imgs.length; i++) {
		if(imgs[i].src.indexOf('/www/delivery/lg.php')!=-1)
			continue; // Skip beacon
		found=i;
		break;
	}
	if(found!=-1) {
		// handle image
		document.body.style.backgroundImage='url('+imgs[found].src+')';
		document.body.style.backgroundAttachment='fixed';
		document.body.style.backgroundRepeat='repeat';
		document.body.style.backgroundPosition='top center';

		// handle link
		var linkelem=imgs[found].parentNode;
		if(linkelem.tagName=='A' && linkelem.href!='' && linkelem.href!='http://') {
			var link=linkelem.href;
			var popup=(linkelem.target=='_blank');
			if(!link.match(/^https?:\/\//))
				popup=false;
			var oldonclick=document.body.onclick;
			document.body.onclick=function(e) {
				while(1) {
					var E=e?e:window.event;
					if(!E)
						break;
					var T=E.target?E.target:E.srcElement;
					if(!T||T.tagName!='BODY')
						break;

					// good to go
					if(popup)
						window.open(link);
					else
						location.href=link;

					return;
				}
				if(oldonclick)
					oldonclick(e);
			}

			for(var i=0; i<wrapperids.length; i++)
				document.getElementById(wrapperids[i]).style.cursor='default';
			document.body.style.cursor='pointer';
		}
	}
	tempdiv.parentNode.removeChild(tempdiv);
}
