var gaArrayRes = [[0]];

if(lp_version == "js"){
  document.write("<scr" + "ipt src='http://afiliados.katatudo.com.br/lp/lp.php?lp_tag=" + lp_tag + "&lp_version=" + lp_version + "&lp_id=" + lp_id + "&lp_keywords=" + lp_keywords + "&lp_market=" + lp_market + "&lp_type=" + lp_type + "&lp_ie=" + lp_ie + "&lp_oe=" + lp_oe + "&lp_width=" + lp_width + "&lp_height=" + lp_height + "&ctxt_css_url=" + lp_css_url + "&lp_bc=" + lp_bc + "&lp_bg=" + lp_bg + "&lp_cc=" + lp_cc + "&lp_lc=" + lp_lc + "&lp_tc=" + lp_tc + "&lp_uc=" + lp_uc + "&lp_cw=" + lp_cw + "&lp_newwin=" + lp_newwin + "&lp_qt=" + lp_qt + "&lp_host=" + lp_host + "'></scr" + "ipt>");
}
else{
  document.write("<ifr" + "ame id=\"LP_ADS\" name=\"LP_ADS\" align=\"center\" frameborder=\"0\" height=\"" + lp_height + "\" width=\"" + lp_width + "\" scrolling=\"no\" src='http://afiliados.katatudo.com.br/lp/lp.php?lp_tag=" + lp_tag + "&lp_version=" + lp_version + "&lp_id=" + lp_id + "&lp_keywords=" + lp_keywords + "&lp_market=" + lp_market + "&lp_type=" + lp_type + "&lp_ie=" + lp_ie + "&lp_oe=" + lp_oe + "&lp_width=" + lp_width + "&lp_height=" + lp_height + "&lp_css_url=" + lp_css_url + "&lp_bc=" + lp_bc + "&lp_bg=" + lp_bg + "&lp_cc=" + lp_cc + "&lp_lc=" + lp_lc + "&lp_tc=" + lp_tc + "&lp_uc=" + lp_uc + "&lp_cw=" + lp_cw + "&lp_newwin=" + lp_newwin + "&lp_qt=" + lp_qt + "&lp_host=" + lp_host + "'></ifr" + "ame>");
}

function LP_Show(div, i, f){
  var lsParseContent = "";
  var lnI=0;
  
  lsParseContent = "<style type=\"text/css\">@import url(\"" + lp_css_url + "\");</style>\n";

  try{
    if(f>gaArrayRes.length){
      f=gaArrayRes.length;
    }
  }
  catch(e){}
  
  try{
    for(lnI=i; lnI<f; lnI++){
      lsParseContent += "<div class=\"clsCell\" style=\"color:#156e94; size:12px; padding:10px 0px 10px 10px;\">\n";
      lsParseContent += "<div class=\"clsResult\">\n";
      lsParseContent += "  <div class=\"clsResultTitle\" style=\"color:#0237BC; font-size:16px !important;\">\n";
      lsParseContent += "    <a href=\"" + gaArrayRes[lnI][0] + "\" class=\"clsResultTitle clsResultTitleNoBold\" style=\"color:#0237BC; font-size:16px !important;\" target=\"_blank\" onMouseOver='window.status=\"" + gaArrayRes[lnI][1] + "\"; return true;' onmouseout='window.status=\"" + gaArrayRes[lnI][1] + "\"; return true;'>&#8226;&nbsp;&nbsp;" + gaArrayRes[lnI][2] + "</a>\n";
      lsParseContent += "  </div>\n";
      lsParseContent += "  <div class=\"clsResultDescription\" style=\"color:#000000;\">\n";
      lsParseContent += "    " + gaArrayRes[lnI][3] + "\n";
      lsParseContent += "  </div>\n";
      lsParseContent += "  <div class=\"clsURL\" style=\"color:#008000; text-decoration:none;\">\n";
      lsParseContent += "    <a href=\"" + gaArrayRes[lnI][0] + "\" class=\"clsURL\" style=\"color:#008000; text-decoration:none;\" target=\"_blank\" onMouseOver='window.status=\"" + gaArrayRes[lnI][1] + "\"; return true;' onmouseout='window.status=\"" + gaArrayRes[lnI][1] + "\"; return true;'>" + gaArrayRes[lnI][1] + "</a>\n";
      lsParseContent += "  </div>\n";
      lsParseContent += "</div>\n";
      lsParseContent += "</div>\n";
      lsParseContent += "<br style=\"line-height:1px; clear:both;\">\n";
    }
  }
  catch(e){}
  
  try{
    document.getElementById('LP_ADS_'+div+'_div').innerHTML = lsParseContent;
  }
  catch(e){}
}

function LP_print(){
  try{LP_Show('WIDE', 0, lp_wide);}catch(e){}
  try{LP_Show('NARROW', lp_wide, lp_narrow);}catch(e){}
}