try {if (ga) {}} catch(e) {as=1; ga=0; gn=0;}
function get_ads() {
def_organic = '1';
def_ad_testmode = '0';
def_ad_skipspons = '0';
def_ad_partner = '';
def_ad_id = '';
def_kw = 'credit';
try { if (ad_partner == '') { ad_partner = def_ad_partner; }} catch(e) { ad_partner = def_ad_partner; }
try { if (ad_id == '') { ad_id = def_ad_id; }} catch(e) { ad_id = def_ad_id; }
try { if (ad_keywords == '') { ad_keywords = def_kw; }} catch(e) { ad_keywords = def_kw; }
try { if (ad_testmode == '') { ad_testmode = def_ad_testmode; }} catch(e) { ad_testmode = def_ad_testmode; }
try { if (ad_skipspons == '') { ad_skipspons = def_ad_skipspons; }} catch(e) { ad_skipspons = def_ad_skipspons; }
try { if (incl_organic == '') { incl_organic = def_organic; }} catch(e) { incl_organic = def_organic; }
document.write('<scr'+'ipt language="JavaScript" src="http://js.yieldtracker.com/feed?partner='+ad_partner+'&id='+ad_id+'&query='+ad_keywords+'&clickHost=js.yieldtracker.com&clickTest='+ad_testmode+'&skipSpons='+ad_skipspons+'&inclOrganic='+incl_organic+'"></scr'+'ipt>');
return;
}
function get_ads_done(ads) { ga = ads.length-1; if (ga>0) { display_ads(gn); } else { display_noads(); } return; }
function show_ads(na) {
gn=na;
if (ga==0) { get_ads(); }
else { display_ads(gn); }
}
function display_ads(na) {
ae=as+na-1;
if (ae>ga) { ae=ga; }
if (as>ae) { display_noads(); return }
try { if (adboxid == '') {adboxid = 'adbox'; }} catch(e) { adboxid = 'adbox'; }
html='<div class="' + adboxid + '">';
for (i=as; i<=ae; i++) {
html+=
'<div class="ad">' +
'<div class="adtitle"><a href="'+ads[i].url+'" onmouseout="window.status=\' \'; return true;" onmouseover="window.status=\'go to '+ads[i].visible_url+'\';return true;" target="_top">' + ads[i].title + '</a></div>' +
'<div class="adtext"><a href="'+ads[i].url+'" onmouseout="window.status=\' \'; return true;" onmouseover="window.status=\'go to '+ads[i].visible_url+'\';return true;" target="_top">' +ads[i].description+'</a></div>' +
'<div class="adurl"><a href="'+ads[i].url+'" onmouseout="window.status=\' \'; return true;" onmouseover="window.status=\'go to '+ads[i].visible_url+'\';return true;" target="_top">' +ads[i].visible_url+'</a></div>' +
'</div>';
}
html+='</div>';
document.write(html);
as=ae+1;
return;
}
function display_noads() {
try { if (noads_html == '') {}} catch(e) { noads_html = ''; }
document.write(noads_html);
}
