var ad_tile_width_2 = ad_tile_width - 5;
if (ad_title.length > 0) {
	document.write ("<table border='"+ ad_show_border +"' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#"+ ad_show_border_color +"' width='" + ad_tile_width + "'>  <tr>    <td width='100%'>\n");
	document.write ("<table border=0 width='" + ad_tile_width + "' cellpadding=1 cellspacing=1  bgcolor='#" + ad_show_bg_color + "'>\n");
	document.write ("<tr><td colspan=2>\n");
	document.write ("</td></tr>\n");
	document.write ("<tr><td colspan=2 align='right'>\n");
	document.write ("<font style='font-family:arial; font-weight:bold; font-size:8pt'>Sponsored Links By <a title='What is " + ad_network_name + "' href='" + ad_network_link + "' target='_blank'>" + ad_network_name + "</font></a>\n");
	document.write ("</td></tr>\n");
	for (i=0; i < ad_title.length; i++) {
		if(i==0){
			document.write ("<tr><td valign=top><div style='overflow:hidden; width=" + ad_tile_width_2 + "px; font-family:arial; font-size:9pt;font-weight:bold'><a href='" + ad_clickthru [i] + "' target='_blank' style='color:blue'><b>" + ad_title [i] + "</b></a></div>\n");
		} else {
			document.write ("<tr><td valign=top><div style='overflow:hidden; width=" + ad_tile_width_2 + "px; font-family:arial; font-size:9pt;font-weight:bold'><br><a href='" + ad_clickthru [i] + "' target='_blank' style='color:blue'><b>" + ad_title [i] + "</b></a></div>\n");
		}
		document.write ("<div style='overflow:hidden; width=" + ad_tile_width_2 + "px; font-family:arial; font-size:9pt;'>" + ad_description [i] + "</div>\n");
		document.write ("<div style='overflow:hidden; width=" + ad_tile_width_2 + "px; font-family:arial; font-size:8pt;'><a href='" + ad_clickthru [i] + "' target='_blank' style='color:blue'>" + ad_domain [i] + "</a></div></td></tr>\n");
	}
	document.write ("<tr><td colspan=2>\n");
	document.write ("</td></tr>\n");
	document.write ("</table>\n");
	document.write ("</td>  </tr></table>\n");
}
	var b = i;
	var next_query_offset = b + next_query_offset;
