//Alternating row colors var altRowColors = new Array("#FFFFFF","#FFFFFF"); var altAdv_m1 = 0; var altAdv_k1 = 0; var altColor_Change_Every1 = 1; function changeRowColor() { if (altAdv_m1 % altColor_Change_Every1 == 0 && altAdv_m1 > 0){ altAdv_k1++; } var currentRowColor = altRowColors[altAdv_k1%altRowColors.length]; altAdv_m1++; return currentRowColor } // Simple popwindow function, could be elsewhere function popUp(URL,iWidth,iHeight) { day = new Date(); id=day.getTime(); eval("page"+id+"=window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,width="+iWidth+",height="+iHeight+",left=550,top=500');"); } function doTopItems(){ //Core hotjobs routine... baseurl = "http://dwb.heraldonline.com"; var liveEdition="05-12-2008"; var adsection="Top Autos"; var shortname="hot_autos"; var adsectionpath="/classads/transportation/hot_autos"; var totaladcount="1"; var maxdisplay, adchars, adheader, adfooter, adformat, headerpic; if (!maxdisplay) {maxdisplay=2;} if (!adchars) {adchars=30;} if (!adheader) {adheader="'<'+'div id=\"promo-box\"><'+'div class=\"head\">
<'+'a href=\"http://dwb.heraldonline.com/' + liveEdition + adsectionpath + '\">'+adsection+'<'+'/a>
<'+'/div><'+'div class=\"content\">'";} adheader=adheader.replace(/\[/g, "\"+").replace(/\]/g, "+\""); if (!adfooter) {adfooter="'<'+'p align=\"center\"><'+'a href=\"http://dwb.heraldonline.com/' + liveEdition + adsectionpath + '/\" class=\"black-10-bold\">View all '+totaladcount+' ads<'+'/a><'+'/p><'+'/div><'+'/div>'";} adfooter=adfooter.replace(/\[/g, "\"+").replace(/\]/g, "+\""); if (!adformat) { adformat="'<'+'p><'+'img src=\"http://test.heraldonline.com/images/icons/'+shortname+'_icon.gif\" width=\"13\"> <'+'A HREF=\"javascript:popUp(\\''+adurl+'\\',475,225)\">'+adtext+'...<'+'/a><'+'/p>'";} var adarray = [ "6897448p-6163591c|$500! POLICE IMPOUNDS Hondas, etc from $500! For Listings", "xxx"]; var adcount = adarray.length-1; var adarraycount = adcount; var adhtml=''; for (count = 0; (count