fdads_dominio = "http://www.semprenamoda.com.br/";
fdads_src     = "ad_gerenciador/getAds.php";
fdads_param   = "";

fdads_param += "pos=" + fdads_pos;
fdads_append_param ("pg", fdads_pg);
fdads_append_param ("ac", aceitaCookie());
fdads_limitHeigth = parseInt (fdads_height);

document.writeln("<ifra" + "me src=\"" + fdads_dominio + fdads_src +"?"+ fdads_param + "\" ");
document.writeln("  width=\"" + fdads_width + "\" height=\"" + fdads_limitHeigth + "\" ");
document.writeln("  marginwidth=\"0\" marginheight=\"0\" ");
document.writeln("  frameborder=\"0\" frameSpacing=\"0\" ");
document.writeln("  cellSpacing=\"0\" cellPadding=\"0\" ");
document.writeln("  scrolling=\"no\" noResize>");
document.writeln("</ifra" + "me>");

function fdads_append_param(nome, value) {
  fdads_param += (value != "") ? "&" + nome + "=" + value  : "";
}

function aceitaCookie(){
  var varcookie = document.cookie;
  document.cookie='testAccept=1';
  varcookie = document.cookie;
  var index = varcookie.indexOf('testAccept=');
  if(index == -1){
    return "0";
  }else{
    return "1";
  }
}

function removeEComercial(txt_url){ 
	var url_retorno = new String(txt_url);
	var i;
	var char_code = "&";
	var index = url_retorno.indexOf(char_code, 0);
	while( index >=0 ){
		url_retorno = url_retorno.replace(char_code, "%26" );
		index = url_retorno.indexOf(char_code, 0);
	}
	return url_retorno;
}
