<!--
var ddcurpageurl=window.location.toString() //current page url
var bnum=new Number(Math.floor(99999999 * Math.random())+1); //Hostway random num
var showincontentheader=0

var randban=new Array()
randban[0]='<a target="_blank" HREF="http://www.tkqlhce.com/click-1566445-10398501" TARGET="_top"><IMG SRC="http://www.afcyhf.com/image-1566445-10398501" width="500" height="90" alt="Let agents compete for your business!" title="Let agents compete for your business!" border="0"></a>'
randban[1]='<a target="_blank" href="http://www.dpbolvw.net/click-1566445-10420272" target="_top"><img src="http://www.tqlkg.com/image-1566445-10420272" width="728" height="90" alt="Find and compare Top  REALTORŪs" title="Find and compare Top  REALTORŪs" border="0"></a>'
randban[2]='<a target="_blank" href="http://www.tkqlhce.com/click-1566445-10297803" target="_top" ><img src="http://www.awltovhc.com/image-1566445-10297803" width="468" height="60" alt="VA Home Loans! Buy or Refinance" title="VA Loans! Buy or Refinance" border="0"></a>'
randban[3]='<a target="_blank" href="http://www.kqzyfj.com/click-1566445-10292676" target="_top"><img src="http://www.ftjcfx.com/image-1566445-10292676" width="468" height="60" alt="Lower My Bills" title="Lower My Bills" border="0"></a>'
randban[4]='<a target="_blank" href="http://www.dpbolvw.net/click-1566445-9837858" target="_top" ><img src="http://www.tqlkg.com/image-1566445-9837858" width="468" height="60" alt="7 out of 10 credit reports have errors - fix yours" title="7 out of 10 credit reports have errors - fix yours" border="0"></a>'
randban[5]='<a target="_blank" href="http://www.jdoqocy.com/click-1566445-10287032" target="_top" ><img src="http://www.awltovhc.com/image-1566445-10287032" width="468" height="60" alt="Foreclosures" title="foreclosures" border="0"></a>'
randban[6]='<a target="_blank" href="http://www.dpbolvw.net/click-1566445-10381183" target="_top" ><img src="http://www.awltovhc.com/image-1566445-10381183" width="468" height="60" alt="stop foreclosures" title="stop foreclosures" border="0"></a>'
randban[7]='<a target="_blank" href="http://www.anrdoezrs.net/click-1566445-9884430"" target="_top" ><img src="http://www.lduhtrp.net/image-1566445-9884430" width="468" height="60" alt="Foreclosure Home" title="Foreclosure Home" border="0"></a>'
randban[8]='<a target="_blank" href="http://www.kqzyfj.com/click-1566445-10434299" target="_top" ><img src="http://www.lduhtrp.net/image-1566445-10434299" width="728" height="90"  alt="Foreclosures" title="Foreclosures" border="0"></a>'

var bweight=new Array()

bweight[0]=3
bweight[1]=2
bweight[2]=3 //fastclick
bweight[3]=1
bweight[4]=1 //hs
bweight[5]=1
bweight[6]=1
bweight[7]=1
bweight[8]=1

var banner_num=0
var stepbystep=totalweight=bweight[0]

for (ct=1;ct<bweight.length;ct++)
totalweight+=bweight[ct]

var revised_ranban=new Array()
var ran_num=Math.floor(Math.random()*totalweight)

while (banner_num<randban.length){
for (ct=0;ct<bweight[banner_num];ct++)
revised_ranban[revised_ranban.length]=randban[banner_num]
banner_num++
}

if (typeof isfrontpage !="undefined") //if frontpage
document.write('<div id="topbanner" align="center"><scr'+'ipt language=javascript src="http://baltimorehudhomes.com.com/j.ad?site=baltimorehudhomes&adSpace=ros&size=540x280&type=horiz&pop=0&noAd=1&requestID='+((new Date()).getTime() % 2147483648) + Math.random()+'"></scr'+'ipt></div>');
else if (typeof ismenucategory!="undefined") //if Menu Category page
ismenucategory=1 //do nothing
else if (revised_ranban[ran_num].indexOf("tribal")!=-1 || ddcurpageurl.indexOf("dynamicindex")==-1) //if TF or non script page
document.write('<div id="topbanner" align="center">'+revised_ranban[ran_num]+'</div>')
else
showincontentheader=1

/////Highlight Current Category/////

var testre=/dynamicindex(\d+)/i

if (ddcurpageurl.match && ddcurpageurl.match(testre)!=null){
var catid="#c"+ddcurpageurl.match(testre)[1]
document.write('<style type="text/css">')
document.write(catid+" a{ color: #000;	background: #D7FBBC; text-decoration: none; }\n")
document.write(catid+" a{ color: black; background: #D7FBBC}")
document.write('<\/style>')
}

/////Highlight textarea stuff/////

function highlight(x){
var x=x+1
document.forms[x].elements[0].select()
}
//-->
