//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 Homes"; var shortname="hot_homes"; var adsectionpath="/classads/real_estate/hot_homes"; var totaladcount="10"; 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 = [ "6897337p-6163608c|4bd 2ba 199/mo. HUD! More homes available! 5%dn, 20", "6897336p-6163617c|4/5 BR available now. Rent or Sell! Brick ranch near", "6897335p-6163616c|4 BR, 2.5 BA, 2 story, 1062 Sloan Dr. off Rawlinson", "6897334p-6163610c|WE BUY HOUSES Any condition, vacant or occupied, no", "6897333p-6163615c| Waterfront Condo Lake Club, Lake Wylie 3 BR, 3 BA,", "6897332p-6163614c|NO MONEY DOWN in Rock Hill, 3 BR, 1 BA, new paint,", "6897331p-6163613c|NEW FINANCE PROGRAM $0 DOWN if you own land or use", "6897330p-6163612c|Cobb House Apts 366 E Main St, Rock Hill No Utility", "6897329p-6163611c|BY OWNER, near Ebenezer Park & lake access. 1700 sq.", "6897328p-6163609c|BANK FORECLOSURE! 5bd 3ba $19,900! More homes from", "xxx"]; var adcount = adarray.length-1; var adarraycount = adcount; var adhtml=''; for (count = 0; (count