try {if (ga) {}} catch(e) {as=0; ae=0; ga=0; gn=0;}
function get_ads() {
ad_testmode = '0';
url = document.location.href;url = url.replace(/\?.+/, "");
def_ad_client = 'Itelligence_jobportal';
def_kw = 'jobs';
try { if (ad_client == '') { ad_client = def_ad_client; }} catch(e) { ad_client = def_ad_client; }
try { if (ad_keywords == '') { ad_keywords = def_kw; }} catch(e) { ad_keywords = def_kw; }
document.write('<scr'+'ipt language="JavaScript" src="/ads/getads.php?c='+ad_client+'&k='+ad_keywords+'&t='+ad_testmode+'&u='+url+'"></scr'+'ipt>');
return;
}
function get_ads_done(ads) { ga = ads.length; if (ga>0) { display_ads(gn); } return; }
function show_ads(na) {
gn = na;
if (ga == 0) { get_ads(); }
else { display_ads(gn); }
}
function display_ads(na) {
na++; na--;
if (as >= ga) { as = 0; }
ae = as + na;
if (ae > ga) { ae = ga; }
html = '<br /><b style="margin:10px;">Sponsored Results</b><br /><br />';
for (i=as; i<ae; i++) {
html+=
'<div class="ads" style="width:160px;">' +
'<a href="' + ads[i].url + '" onclick="javascript:urchinTracker(\'/ov-adclick\');" onmouseout="window.status=\' \'; return true;" onmouseover="window.status=\'go to ' + ads[i].visible_url + '\'; return true;" target="_blank">' +
'<strong>' + ads[i].title + '</strong></a><br />' +
ads[i].description + '<br />' +
'<a class="rmore" href="' + ads[i].url + '" onclick="javascript:urchinTracker(\'/ov-adclick\');" onmouseout="window.status=\' \'; return true;" onmouseover="window.status=\'go to ' + ads[i].visible_url + '\'; return true;" target="_blank">' + ads[i].visible_url + '</a>' +
'</div><br />';
}
html+='</div>';
document.write(html);
as = ae;
return;
}
