
function setFlashWidth(divid, newW){
document.getElementById(divid).style.width = newW+"px";
}

function setFlashHeight(divid, newH){
document.getElementById(divid).style.height = newH+"px";
}

function setFlashSize(divid, newW, newH){
setFlashWidth(divid, newW);
setFlashHeight(divid, newH);
}

document.write('<div id="videobanner" style="display:none;position:absolute;width:510px;height:60px;z-index:100;overflow:hidden;">');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="510" height="286" id="videobanner" align="middle">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<PARAM NAME="movie" VALUE="http://www.espanacash.com/videobanner/promofilm.swf?promoid=sexclub">'); 
document.write('<param name="Autostart" value="true">');
document.write('<param name="quality" value="high">');
document.write('<param name="salign" value=T>');
document.write('<param name="wmode" value="transparent">');
document.write('<embed src="http://www.espanacash.com/videobanner/promofilm.swf?promoid=sexclub" quality="high" bgcolor="#ffffff" wmode="transparent" width="510" height="286" name="videobanner" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</OBJECT>');
document.write('</div>');
document.write('<div style="visibility:hidden;width:510px;height:60px;">&nbsp;</div>');

window.onload = function() {
	// This function is executed right after all the content on the page has been loaded. This avoids an Internet Explorer
	// bug which causes a page to stop loading when the mouse is hovered over the flash movie and the effect is triggered.
	var el = document.getElementById('videobanner');
	if (el) {
		el.style.display = 'block';
	}
}
