function displayWrapper (adObj) {

	if ($("synchWrapper")) {
		//	console.log('removing old synchWrapper');
		$("ad-banner").removeChild($("synchWrapper"));
	}

	var divObj = document.createElement("div");
	divObj.id = "synchWrapper";

	// console.log('iframe: ' + typeof adObj.iframe);
	// console.log('width: ' + typeof adObj.assetWidth);
	// console.log('height: ' + typeof adObj.assetHeight);
	// console.log('assetURL: ' + typeof adObj.assetURL);

	width	= adObj.assetWidth;
	height	= adObj.assetHeight;

	if (typeof(adObj.assetWidth) != 'undefined') {
		width	= adObj.assetWidth;
	} else {
		width	= '';
	}

	if (typeof(adObj.assetHeight) != 'undefined') {
		height	= adObj.assetHeight;
	} else {
		height	= '';
	}

	if (typeof(adObj.iframe) != 'undefined') {
		// console.log('setting innerHTML of divObj('+divObj.id+')');
		divObj.innerHTML= '<iframe src="'+adObj.iframe+'" width="'+width+'" height="'+height+'" frameborder="0" border="0" marginwidth="0" marginheight="0"  scrolling="no"></iframe>';
	}else if (typeof(adObj.assetURL) != 'undefined') {
		divObj.innerHTML= '<a href="'+adObj.clickURL+'" target="_blank"><img border=0 src="'+adObj.assetURL+'" width="'+width+'" height="'+height+'" /></a>';
	}
	if ($("ad-banner")) {
		// console.log('"ad-banner" div exists; attempting to appendChild div...');
		$("ad-banner").appendChild(divObj);
	} else {
		// console.log('"ad-banner" div was not found');
	}
	return;	
}

function closeWrapper() {
	// console.log('closeWrapper called');
	return;
}
// Event.observe(window,'load',displayWrapper);