function placeIframeInOpenArea(w,h, topBuffer, src) {
	var bWidth = document.body.clientWidth;
	var bHeight = document.body.clientHeight;
	var compDivs = YAHOO.util.Dom.getElementsByClassName("comp", "div");
	var foundUnused = false;
	for (var x = bWidth - w; !foundUnused && x > 0; x-=10) {
		for (var y = bHeight - h ; !foundUnused && y > topBuffer; y-=10) {
			var foundBlockerHere = false;
			for (var i = 0; i < compDivs.length; i++) {
				var comp = compDivs[i];
				if (comp.offsetLeft + comp.offsetWidth < x) {
					continue;
				}
				if (comp.offsetLeft > x + w) {
					continue;
				}
				if (comp.offsetTop + comp.offsetHeight < y) {
					continue;
				}
				if (comp.offsetTop > y + h) {
					continue;
				}
				foundBlockerHere = true;
			}
			if (! foundBlockerHere) {
				foundUnused = true;
			}

		}
	}
	if (foundUnused) {
		var floatingAdFrame = document.createElement("iframe");
		floatingAdFrame.id = "floatingAdFrame";
		floatingAdFrame.style.left = x;
		floatingAdFrame.style.top = y;
		floatingAdFrame.style.width = w;
		floatingAdFrame.style.height= h;
		floatingAdFrame.src=src;
		floatingAdFrame.scrolling="no";
		floatingAdFrame.frameborder="0";
		floatingAdFrame.allowtransparency = "true";
		document.body.appendChild(floatingAdFrame);
	}	
}