dropHTML = "";
dropHTML += "<div id='dropParentContainer' style='position:relative;'>\n";
dropHTML += "	<div id='dropChildA' style='position:relative; top:0; left:0;'>\n";
dropHTML += flashWrapper(topSWF, bannerWidth, topHeight);
dropHTML += "	</div>\n";
dropHTML += "	<div id='dropChildB' style='position:absolute; top:"+topHeight+"; left:0;'>\n";
dropHTML += flashWrapper(botSWF, bannerWidth, botHeight);
dropHTML += "	</div>\n";
dropHTML += "</div>\n";

document.write(dropHTML);

var hideTimeout;

function dropHide(){
	//document.getElementById("dropChildA").style.visibility = "visible";
	document.getElementById("dropChildB").style.visibility = "hidden";
}

function dropShow(){
	//document.getElementById("dropChildA").style.visibility = "hidden";
	document.getElementById("dropChildB").style.visibility = "visible";
}

function timedHide(delay){
	delay *= 1000;
	hideTimeout = setTimeout(dropHide,delay);
}

function clearDelay(){
	clearTimeout(hideTimeout);
}

function flashWrapper(swf, width, height){
	tempHtml = "";
	tempHtml += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+width+"' height='"+height+"' id='top' align='middle'>\n";
	tempHtml += "<param name='allowScriptAccess' value='sameDomain' />\n";
	tempHtml += "<param name='movie' value='"+swf+"?AceClick="+AceClick+"' />\n";
	tempHtml += "<param name='quality' value='high' />\n";
	tempHtml += "<param name='bgcolor' value='#ffffff' />\n";
	tempHtml += "<param name='wmode' value='transparent' />\n";
	tempHtml += "<embed src='"+swf+"?AceClick="+AceClick+"' quality='high' wmode='transparent' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='top' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\n";
	//tempHtml += "<embed src='"+swf+"?AceClick="+AceClick+"' quality='high' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='top' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\n";
	tempHtml += "</object>\n";
	return tempHtml;
}


