function swfCode(f, w, h) {
	return '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+w+'" height="'+h+'"> <param name="movie" value="'+f+'"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <param name="menu" value="false"> <embed src="'+f+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed></object>';
}
function writeswf(filename, width, height) {
  document.write(swfCode(filename, width, height));
}
function addListener(element, event, listener, bubble) {
	if(element.addEventListener) {
		if(typeof(bubble) == "undefined") bubble = false;
		element.addEventListener(event, listener, bubble);
	} else if(this.attachEvent) {
		element.attachEvent("on" + event, listener);
	}
}
function voltar() {
	history.go(-1);
	return false;
}
function closeBanner(id) {
	$('#banner'+id).hide();
}

