//Remove Fortizi and other advertisers
// Date modified:  01/26/2009
// Temporarily STOP an Ad by removing its number from the following list.
// Take care when adding a new Ad to appropriately resequence their numbers etc...
//
var adsPublished="0,1,2,3,5,6,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,36,38,39,41,43,44";
var adsRecent=new Array();
//
//
var adsText=new Array(
//new Array(url,Head,Body,Foot,"Cats"),
//
// Ads begin below starting at 0...
//
// Text ad00
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://click.linksynergy.com/fs-bin/click?id=nsbtSg5*P*k&offerid=78684.10000062&type=3&subid=0",
//Head
"Netflix Free Trial",
//Body
"<br>Over 100,000 Titles<br>No late fees<br><br>Great Gift<br><br><font color='#910003'>Movies, Classics<br>TV Series<br></font>",
//Footer
"Mail DVD",
0,
//Categories, CSV string
"12,24,29,444"
),

//===============================

// Text ad01
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.westchestertowns.com/htm/lnk/L220C042.html",
//Head
"New Rochelle Restaurants",
//Body
"<br>Top-rated<br>Delicious &<br>Affordable",
//Footer
"<br>Visit<br>New Rochelle",
0,
//Categories, CSV string
"220,482"
),

// Text ad02
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=22",
//Head
"Best Sellers",
//Body
"<br>Popular books at discount prices.",
//Footer
"Bargain Books",
0,
//Categories, CSV string
"24,482"
),


// Text ad03
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=10",
//Head
"Digital Photography",
//Body
"<br>Best equipment.<br>Best prices.",
//Footer
"Discount Cameras",
0,
//Categories, CSV string
"12,217,37,482"
),


// Text ad04 ***reuse
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=2",
//Head
"Gadget Heaven",
//Body
"<br>Popular Items for Your Computer.<br>Latest equipment.<br>Best Prices.",
//Footer
"Computer Store",
0,
//Categories, CSV string
"12,482"
),


// Text ad05
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=23",
//Head
"Computer Software",
//Body
"<br>Discount software products. Quality prgrams. Best prices.",
//Footer
"<br>Software Store",
0,
//Categories, CSV string
"12,482"
),


// Text ad06
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=17",
//Head
"Video Gaming",
//Body
"All popular computer & video games at discount prices.",
//Footer
"Game Vault!",
0,
//Categories, CSV string
"482"
),


// Text ad07 ***reuse
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=1",
//Head
"Classical Easy Listening",
//Body
"<br>The best music at the best prices.",
//Footer
"Music Source",
0,
//Categories, CSV string
"12,24,30,482"
),


// Text ad08
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=3",
//Head
"DVD Movies",
//Body
"<br>Build your own<br>Movie & Film Library.<br>",
//Footer
"View Titles",
0,
//Categories, CSV string
"12,24,482"
),


// Text ad09
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=24",
//Head
"Everything Electronic",
//Body
"Only the best quality equipment.",
//Footer
"Discount Prices!",
0,
//Categories, CSV string
"12,482"
),


// Text ad10  ***reuse
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=21",
//Head
"Automotive",
//Body
"<br>Everything for your car.",
//Footer
"Click for Deals!",
0,
//Categories, CSV string
"217,93,482"
),


// Text ad11
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=5",
//Head
"Gourmet Living",
//Body
"<br>Specialty Foods<br>Everything for the<br>Gourmet.",
//Footer
"Indulge Yourself",
0,
//Categories, CSV string
"51,46,61,482"
),



// Text ad12
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=6",
//Head
"Keep Healthy",
//Body
"<br>Your source for Health & Personal Care.",
//Footer
"<br>Click to Visit!",
0,
//Categories, CSV string
"139,254,482"
),


// Text ad13
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=15",
//Head
"Kitchen & Household",
//Body
"<br>For all your home, kitchen appliance & cookware needs.",
//Footer
"<br>See New Items",
0,
//Categories, CSV string
"62,482"
),

// Text ad14
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=8",
//Head
"Popular Music",
//Body
"<br>Best selling music at the best prices.",
//Footer
"Music 4 You!",
0,
//Categories, CSV string
"12,24,30,482"
),


// Text ad15
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=4",
//Head
"Tools & Hardware",
//Body
"<br>Build your workshop. High quality and the best prices.",
//Footer
"Hardware Heaven",
0,
//Categories, CSV string
"482"
),

// Text ad16
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://astore.amazon.com/westchester03-20/104-7492699-3676727?%5Fencoding=UTF8&node=13",
//Head
"Toys & Games",
//Body
"<br>Entertainment for children of all ages.",
//Footer
"Kid Zone!",
0,
//Categories, CSV string
"444,482"
),


// R & K Pest Control, Inc. ******** Text ad17
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.allpestsbegone.com",
//Head
"R & K<br>Pest Control",
//Body
"<br>Since 1976<br><br><font color=#910003'>\No more<br>Bugs, Rodents, Insects<br><br>Licensed Exterminators\</font><br>",
//Footer
"914-632-5374",
0,
//Categories, CSV string 
"220,343,338,293,290,246,197,189,157,124"
),

// Textad18	
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://clickserve.cc-dt.com/link/click?lid=41000000015745008",
//Head
"Zagat",
//Body
"<br>Reviews & Ratings<br><font color=#910003'><br>Restaurants<br>Nightlife<br>Hotels<br>Attractions<br></font>",
//Footer
"Click here!",
0,
//Categories, CSV string
"489,60,104,399,271,125,106,142,507,174,181,182,485,203,483,487,297,509,346,322,467"
),

// Text ad19	
new Array(
//Each ad begins with the 'Target URL'
"/dsplybox.html?http://www.lalanterna.com/",
//Head
"La Lanterna<br>Ristorante",
//Body
"<br>Fine Italian Cuisine<br>with a <br>Swiss Twist<br><br><font color=#910003'>\"Exemplary Dining Experience\"</font>",
//Footer
"<br>Outdoor Dining<br>Yonkers",
0,
//Categories, CSV string
"181,343,88,330,159,124"
),

// Text ad20
new Array(
//Each ad begins with the 'Target URL'
"/dsplybox.html?http://www.TyryndaThai.com/",
//Head
"Tyrynda Thai<br>",
//Body7
"Traditional<br>Authentic<br>Thai Cuisine<br><br>\"Great Food\"<br>",
//Footer
"Sleepy Hollow<br>914-524-5003",
0,
//Categories, CSV string
"119,248,157,186,210,220,293,338,343"
),

// Text ad21
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://click.linksynergy.com/fs-bin/click?id=nsbtSg5*P*k&offerid=63029.10000573&type=3&subid=0",
//Head
"Need a New Computer?",
//Body
"<br>The best prices on quality systems",
//Footer
"Get a Dell!",
0,
//Categories, CSV string
"12,482"
),


// Text ad22
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.westchestertowns.com/htm/lnk/Link0373.html",
//Head
"Find a Therapist",
//Body
"<br>Suffering from anxiety<br> or depression?<br><br>Are you having<br>relationship problems?<br>",
//Footer
"Get Help Now",
0,
//Categories
"139,254"
),



// Text ad23
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.WestchesterTowns.com/htm/lnk/Link0453.html",
//Head
"Online Shopping",
//Body
"<br>Best Quality<br>Huge Selection<br>Quality Shopping",
//Footer
"<br>Click for Anything You Need!",
0,
//Categories, CSV string
""
),

//===============================

// Text ad24
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.respectu.com",
//Head
"BullyProof Your<br>Child for Life",
//Body
"<br><font color='#910003'>Bullying Hurts<br>Leaves Lasting<br>Scars<br>and<br>Can Destroy Lives</font><br><br>Protect Your Child",
//Footer
"<br>Click to BullyProof",
0,
//Categories, CSV string
"270,22,444,429,102"
),


// Text ad25
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://chiropractor.chiroweb.com",
//Head
"Chiropractor<br>Same Day Care",
//Body 
"<br><font color='#910003'>Dr. Esposito</font><br><br>Neck Pain<br>Back Pain<br>Headaches<br>Disc Injuries<br>Carpal Tunnel<br>Sport Injury<br>Scoliosis<br>Sciatica<br>",
//Footer
"White Plains<br>914-686-6660",
0,
//Categories, CSV string
"100, 29, 124, 150, 157, 158, 338, 384, 342"
),

// Text ad26
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.FaustHarrisonPianos.com/",
//Head
"Faust Harrison Pianos",
//Body
"<br>Vintage Era &<br>New Pianos<br><br>Steinway<br>Mason & Hamlin Estonia, Brodmann<br><br><font color='#910003'>America's<br>Largest Inventory<br></font>",
//Footer
"914-591-5026",
0,
//Categories, CSV string
"402,121,157,338,239,180,291,83,388,29,451,452,46,464,429"
),

// Text ad27
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.RistoranteLaSala.com/",
//Head
"Ristorante La&nbsp;Sala",
//Body
"<br><font color=#910003'>\"Cullinary<br>Excellence\"<br></font><br>Fine dining<br> Exceptional food<br>High-quality service<br>",
//Footer
"914-833-7900<br>Larchmont",
0,
//Categories, CSV string
"151,181,189,197"
),

// Reuse this box  ******** Text ad28 
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.emilyshaws.com",
//Head
"Emily Shaw's<br>Inn At<br>Pound Ridge",
//Body
"<br>\"High Elegance & <br>Rustic Intimacy\"<br><br><font color='#910003'>Reserve Now<br>Weddings<br>Private Affairs<br></font>",
//Footer
"914-764-5779",
0,
//Categories, CSV string 
"30,60,83,151,264,489"
),


// Text ad29
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.thethaigarden.com/",
//Head
"Thai Garden",
//Body
"<br>Excellent Reviews<br>Great Food!<br><br>New York Times<br>Zagat<br><br>\"Just Delicious\"<br>",
//Footer
"Orangeburg<br>Rockland",
0,
//Categories
"29,322,304,319"
),

// Text ad30
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.buyersedgerealty.com/",
//Head
"Buyer's Edge Realty",
//Body
"<br>Exclusive<br>Buyer's Broker<br>& Agents<br><br><font color='#910003'>The<br>Intelligent Way<br>To<br>Buy a Home</font><br>",
//Footer
"914-419-1342",
0,
//Categories
"29,40,83,87,97,157,186,189,197,200,273,234,293,319,338,507"
),


// Text ad31
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.westchestertowns.com/htm/lnk/Link0139.html",
//Head
"Exercise for Health",
//Body
"<br>Fitness<br>Training<br><br>Benefit<br>Mind & Body<br>",
//Footer
"Click for Health",
0,
//Categories
"139,254,83"
),

// Reuse this box  ******** Text ad32 
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://http://www.westchestertowns.com/htm/lnk/Link0056.html",
//Head
"Outdoor Dining",
//Body
"<br>Dine Outdoors<br>In the Fresh Air<br><br>Visit<br>Al Fresco<br>Dining<br>Destinations<br>",
//Footer
"Westchester",
0,
//Categories
"174,343,29"
),

// Text ad33  
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.VoxNorthSalem.com/",
//Head
"VOX Bar &<br>Restaurant",
//Body
"<font color=#910003'>\<br>Contemporary<br>French Cuisine<br><br>Warm & Sophisticated<br><br>Prix Fixe Menus<br>3 courses for $30</font><br>",
//Footer
"Press for Menus",
0,
//Categories
"29,142,83,112,149,186,221,307,308,336"
),

// Text ad34  *** Reuse this Ad ***
// Text ad34
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.NorthStarNY.com/",
//Head
"North Star Restaurant",
//Body
"<font color='#990033'>\<br>Quality American Cuisine</font><br><br>Excellent<br> Reviews<br><br><font color='#990033'>\Relaxed & Casual Atmosphere</font>",
//Footer
"Live Music",
0,
//Categories
"30,489,264,83,500"
),


// Text ad35  *** Reuse this Ad ***
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.HomesNY.com/",
//Head
"Westchester<br>Real Estate",
//Body
"<br>Serving<br>Westchester<br>Putnam, Fairfield<br>and<br>New York City<br>",
//Footer
"HomesNY.com",
0,
//Categories
"189,186,67,288"
),


// Text ad36   
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.CopacabanaPortchester.com/",

//Head
"Churrascaria Copacabana",
//Body
"<br>Upscale Brazilian Steakhouse<br><br>All you can eat!<br><br><font color='#990033'>\"Every Bite is Perfection\"</font>",
//Footer
"<br>914-939-6894",
0,
//Categories
"197,220,263,290,291,357,399,487,509"
),


// Reuse this box  ******** Text ad37 
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://click.linksynergy.com/fs-bin/click?id=nsbtSg5*P*k&offerid=63383.10000007&type=3&subid=0",
//Head
"Italian Fashion",
//Body
"<br>Spring & Summer Trends.",
//Footer
"Forzieri.com",
0,
//Categories
""
),

//===============================


// Text ad38
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.ThroughGrandmasEyes.com/",
//Head
"English Villages",
//Body
"<br>Beautiful<br>Serene<br>PhotoArt<br>",
//Footer
"Fine Art Photography",
0,
//Categories
""
),

// Text ad39
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.WestchesterTowns.com/htm/lnk/Link0040.html",
//Head
"Real&nbsp;Estate Listings",
//Body
"<br>Buying or selling a home in Westchester?",
//Footer
"Click Here",
0,
//Categories, CSV string
""
),


// Text ad40   ***This ad is removed***
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.lionheartgallery-bonniesplace.com",
//Head
"LionHeart Gallery",
//Body
"<br>Specialty<br>Wall Finishes<br><br><font color='#990033'>Faux<br>Furniture<br>Giclees<br>Murals<br>Original Art<br></font>",
//Footer
"Bonnies Place",
0,
//Categories, CSV string
"264,470,116,29,61,83,167,505,458,123,"
),


// Text ad41
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.memphismaes.com",
//Head
"Memphis Mae's<br>BBQ Bistro ",
//Body
"<br><font color='#990033'>Authentic<br>Southern BBQ<br>& Down-Home Comfort<br><br>Served in a Warm Bistro-style Setting<br></font>",
//Footer
"Terrific<br>Specialty Beers",
0,
//Categories, CSV string
"114,399,60,234,478,115,29"
),

// reuse this ad!
// Text ad42  
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.tastefultreats.com",
//Head
"Tasteful Treats & Treasures<br><br>Gift Baskets",
//Body
"<br>For Every Occasion<br><br><font color='#990033'>Baby Gift Basket<br>Corporate Basket<br>Sympathy Basket</font><br>",
//Footer
"914-219-5260",
0,
//Categories, CSV string
"66,83,157,186,293,338,148,453,471"
),


// Text ad43
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.WestchesterTowns.com/htm/pp/Promote1.html",
//Head
"Blue Button Listing",
//Body
"<br>Promote your website.<br>We send you visitors!",
//Footer
"<br>Click here!",
1,
//Categories, CSV string
""
),


// Text ad44
new Array(
//Each ads begins with the 'Target URL'
"/dsplybox.html?http://www.WestchesterTowns.com/htm/pp/Promote1.html",
//Head
"Promote Your Business",
//Body
"<br>Build Your Own Advertising Campaign!",
//Footer
"<br>Click for Customers",
0,
//Categories, CSV string
""
),

// Text ad45
new Array(
//Each ads begins with the 'Target URL'
"mailto:gail@WestchesterTowns.com?subject=www.MyBusiness.com&body=I would like to see my business on the internet - Please advise.",
//Head
"Need a Website?",
//Body
"<br>Put your business on the worldwide web.<br>",
//Footer
"YourBusiness",
0,
//Categories, CSV string - the final following closing parens has no comma
""
)


);

function adsWrite(){
//Arg 0: Mode V/H 
//Arg 1: Box width
//Arg 2: Set
//Arg 3: Count
//Arg N..N: Ad Categories

var adsThisPage=new Array();
var adsToDisplay=new Array();
var adsSubCat=new Array();
var arTemp=new Array();

var iIx=0;
var iLookBack=20;
var iSkip=0;

if(adsWrite.arguments.length>2){
	if(adsWrite.arguments.length>4){
		adsToDisplay=adsPublished.split(",");
		for(var i=0;i<adsToDisplay.length;i++){
			arTemp=adsText[adsToDisplay[i]][5].split(",");
			iSkip=0;			
			for(var k=4;k<adsWrite.arguments.length && iSkip==0;k++){
				for(var j=0;j<arTemp.length && iSkip==0;j++){
					if(arTemp[j]==adsWrite.arguments[k]){
						if(k==4){
							adsThisPage.push(adsToDisplay[i]);
						}else{
							adsSubCat.push(adsToDisplay[i]);
						}
						iSkip=1;
					}
				}
			}
		}
		adsToDisplay=new Array();
	}
	document.writeln('<table border="0" cellpadding="0" cellspacing="0"><tr><td align="right">');
	document.writeln('<div ID="BillBox' + adsWrite.arguments[2] + '">');
	document.writeln('<table class="BillBox">');
	document.writeln('<tr>');
	
	do{
		if(adsThisPage.length==0)
			if(adsSubCat.length>0){
				adsThisPage=adsSubCat;
				adsSubCat=new Array();
			}else{
				adsThisPage=adsPublished.split(",");
			}
		iIx=Math.floor(Math.random()*adsThisPage.length);
		for(i=0;i<adsRecent.length && adsThisPage[iIx]!=adsRecent[i];i++);
		if(i==adsRecent.length){
			adsToDisplay.push(adsThisPage[iIx]);
			adsRecent.push(adsThisPage[iIx]);
			if(adsRecent.length>iLookBack)adsRecent=adsRecent.slice(adsRecent.length-iLookBack);
		}
		adsThisPage.splice(iIx,1);
	}while(adsToDisplay.length<adsWrite.arguments[3] && adsToDisplay.length<255);

	for(i=0;i<adsToDisplay.length;i++){
		if(i==3 && adsWrite.arguments[0]==0){
			document.writeln('</tr>');
			document.writeln('</table>');
			document.writeln('</div>');
			document.writeln('</td></tr><tr><td align="right">');
			document.writeln('<div ID="BillBox' + adsWrite.arguments[2] + '2">');
			document.writeln('<table class="BillBox">');
			document.writeln('<tr>');
		}
		iIx=adsToDisplay[i];
		if(i>0 && adsWrite.arguments[0]==0)document.writeln('</tr><tr ALIGN="CENTER">');
		var newWindow='NEW TARGET="_blank" ';
		if(adsText[iIx][0].indexOf('WestchesterTowns.com')>0)newWindow='';
		document.writeln('<td  class="BillBox" WIDTH="' + adsWrite.arguments[1] + '" ALIGN="CENTER">');
		document.writeln('<a href="' + adsText[iIx][0] + '" ' + newWindow + 'onMouseOver="adStatusSet(' + i + ',' + adsWrite.arguments[2] + '); return true;" onMouseOut="adStatusClr(' + i + ',' + adsWrite.arguments[2] + ')" ID="adUrl_' + i + '_' + adsWrite.arguments[2] + '">');
		document.writeln('<span Class="AdBoxLine1" ID="adv1_' + i + '_' + adsWrite.arguments[2] +'">' + adsText[iIx][1] + '</span><br>');
		document.writeln('<span Class="AdBoxLine2" ID="adv2_' + i + '_' + adsWrite.arguments[2] +'">' + adsText[iIx][2] + '</span><br>');
		document.writeln('<span Class="AdBoxLine3" ID="adv3_' + i + '_' + adsWrite.arguments[2] +'">' + adsText[iIx][3] + '</span>');
		if(adsText[iIx][4]!=0)document.writeln('&nbsp;<img border="0" src="' + imgCache[btnModeNormal].src + '" ID="advB_' + i + '_' + adsWrite.arguments[2] + '">');
		document.writeln('</a></td>');
	}

	document.writeln('</tr>');
	document.writeln('</table>');
	document.writeln('</div>');
	document.writeln('</td></tr></table>');
}
}

function adStatusSet(i,s){
	var elm=document.getElementById("advB_" + i + "_" + s);
	if(elm!=null)elm.src=imgCache[btnModeHover].src;
	classChange(document.getElementById('adv1_' + i + '_' + s),"AdBoxLine1Hover");
	classChange(document.getElementById('adv3_' + i + '_' + s),"AdBoxLine3Hover");
	var strWk=document.getElementById('adUrl_' + i + '_' + s).href + '/';
	var iSt=strWk.indexOf('/dsplybox.html?');
	if(iSt>0)strWk=strWk.substr(iSt+15);
	if(strWk.indexOf('westchestertown')>0){
		window.status=strWk.substr(0,strWk.length-1);
	}else{
		if(strWk.indexOf('linksynergy')>0){
			window.status='Click for special offers!';
		}else{
			iSt=strWk.indexOf('/',10);
			window.status=strWk.substr(0,iSt);
		}
	}
}

function adStatusClr(i,s){
	var elm=document.getElementById("advB_" + i + "_" + s);
	if(elm!=null)elm.src=imgCache[btnModeNormal].src;
	classChange(document.getElementById('adv1_' + i + '_' + s),"AdBoxLine1");
	classChange(document.getElementById('adv3_' + i + '_' + s),"AdBoxLine3");
	window.status="";
}

function classChange(element,newclass) {
	element.className = newclass;
}
