automotive = new Array ( 
"1072|Automotive|013182|63694485|OAKRIDGE FORD|$1000 Visa card giveaway|63694485.pdf|OAKRIDGEFord.gif|http://oakridgeford.com|darren.smyle@oakridgeford.com|7970",
"9891|Automotive|30139633|63701856|LONDON MITSUBISHI|Summer's Hottest Ticket|63701856.pdf|mitsubishi_motors.gif|http://londonmitsubishi.ca|jdavison@londonmitsubishi.ca|7970",
"612|Automotive|017628|63689830|MINI LONDON|Only $299/month|63689830.pdf|GrandTouringCars.gif|http://www.bmwlondon.ca|tvicary@bmwlondon.ca|7970",
"1490|Automotive|013210|63656359|THRIFTY CAR RENTAL|Why pay more - buy from us!|63656359.pdf|thrifty_car_rental.gif|http://www.thriftylondon.ca|ghubley@thriftylondon.ca|7970",
"169|Automotive|019743|63699961|BRIAN FINCH PONTIAC BUICK|Used Vehicle Sale|63699961.pdf|Brianfinch.gif|http://brianfinch.com|jfinch@brianfinch.com|7970",
"1233|Automotive|019701|63703208|EXETER TOYOTA|Toyota Real Value Event|63703208.pdf|exeter_toyota.gif|http://www.exeter.toyota.ca|kfulton@exeter.toyota.ca|7970",
"612|Automotive|017628|63689816|MINI LONDON|Starting from $22,800|63689816.pdf|GrandTouringCars.gif|http://www.bmwlondon.ca|tvicary@bmwlondon.ca|7970",
"1515|Automotive|011304|63706818|TOYOTATOWN|Toyota Real Value Event|63706818.pdf|Toyotatown.gif|http://toyta-town.com|meisan@toyota-town.com|7970",
"340|Automotive|011088|63690800||7/06-7/19 online banner|63690800.pdf|Copps.gif|http://www.coppsbuildall.com||7970",
"683|Automotive|018151|63701926|HURON MOTOR PRODUCTS|Used Truck Event|63701926.pdf|HuronMotorProducts.gif|http://hmpexeter.com|billv@hmpexeter.com|7970",
"612|Automotive|017628|63689789|MINI LONDON|Come see what everyone is talking about|63689789.pdf|GrandTouringCars.gif|http://www.bmwlondon.ca|tvicary@bmwlondon.ca|7970",
"449|Automotive|019366|63699939|FINCH HYUNDAI|Hyundai Smart Advantage|63699939.pdf|hyundai_south.gif|http://finchhyundai.com|sverma@finchhyundai.com|7970"
);

entertainment = new Array ( 
"672|Food & Entertainment|013324|63699095|FOUR POINTS BY SHERATON|Hot Luncheon Buffet|63699095.pdf|FourPointsSheraton.gif|http://fourpoints.com||7976",
"9908|Food & Entertainment|30140750|63674012|THE BUFFET FAMILY RESTAURANT|Super special $6.50|63674008.pdf|restaurant_.gif|||7976",
"9944|Food & Entertainment|30143001|63696772|LONDONLICIOUS|Londonlicious - July 10-23|63696772.pdf|londonlicious.gif|http://www.londonlicious.ca/||7976",
"9944|Food & Entertainment|30143001|63685034|LONDONLICIOUS.CA FESTIVAL|Experience exquisite cuisine|63685020.pdf|londonlicious.gif|http://www.londonlicious.ca/||7976",
"14|Food & Entertainment|010003|63705893||8/6-27 early bird|63705893.pdf|shelleys_tapandgrill.gif|||7976",
"9917|Food & Entertainment|30141066|63659859|THE DENTURE CLINIC|Welcome Matt McCallum, Mario Mouamer|63659859.pdf||||7976",
"14|Food & Entertainment|010003|63665287|SHELLEY'S TAP AND GRILL|Early Bird dinner menu|63665274.pdf|shelleys_tapandgrill.gif|||7976"
);

events = new Array ( 
"9946|Announcements & Events|30141660|63697325|McMICHAEL CANADIAN ART COLLECTION|A Canadian Premiere!|63697325.pdf|mcmichael_art.gif|http://mcmichael.com 18882131121||7986",
"9951|Announcements & Events|30142841|63678188|EXECUTIVE SOLAR|Use sun and snow to save money|63677821.pdf|executive_solar.gif|http://www.executivesolar.net/||7986",
"2319|Announcements & Events|307536|63702438|HOME COUNTY FOLK FESTIVAL|Home County Folk Festival -- July 17-19|63702438.pdf|home_county_folk_festival.gif|http://homecounty.ca||7986",
"9947|Announcements & Events|30143437|63700950|MJ CASH 4 GOLD|Cash for Gold|63700950.pdf|cash_for_gold.gif|||7986",
"2333|Announcements & Events|018650|63705318|SARNIA BAYFEST|Festival of Performing Arts|63705318.pdf|sarnia_bayfest.gif|http://www.sarniabayfest.com||7986",
"9934|Announcements & Events|30141378|63629868|LONDON CITY MUSIC THEATRE|I'm a Soulman! -- July 24-Aug. 9|63629868.pdf|music_note.gif|http://londoncitymusictheatre.com||7986"
);

health = new Array ( 
"9945|Health & Wellbeing|341109|63697020|HEAL BY TOUCH|Bowen Therapy|63697020.pdf|healbytouch.gif|http://www.healbytouch.ca/||7984",
"9640|Health & Wellbeing|342858|63686615|DR. GORDON SCHACTER|Opioid-induced constipation research study|63686615.pdf|kgk_synergize.gif|http://www.giresearchstudy.com||7984",
"283|Health & Wellbeing|018868|63703295|CHILDREN'S HEALTH FOUNDATION|20 Year Milestone Reached!|63703295.pdf|childrens_health_foundation.gif|http://www.childhealth.ca||7984",
"1318|Health & Wellbeing|015716||Shoppers Drug Mart|Weekly Shoppers Drug Mart Flyer|http://director.flyerservices.com/SDM/postalcode.aspx?banner=ShoppersDrugMart&branding=SDM&language=EN|ShoppersPositive.gif|||7984",
"1122|Health & Wellbeing|016498|63705357|SJHC PARKWOOD/COMMUNICATIONS|Do you have memory problems?|63705357.pdf||http://www.sjhc.london.on.ca||7984",
"706|Sports & Leisure|010366|63674490|INGERSOLL GOLF AND COUNTRY CLUB|Public golf specials|63674490.pdf|ingersoll_golfclub.gif|http://ingersollgolf.com||7991",
"562|Sports & Leisure|010443|63679190|FOREST GOLF AND COUNTRY HOTEL|Hotel, golf, breakfast special|63679190.pdf|ForestGofCountryHotel.gif|http://www.golfforest.com||7991",
"1627|Sports & Leisure|011064|63674131|WESTERN FAIR GROUNDS|Sunshine Carnival -- July 8-12|63674131.pdf|WesternFairLogo.gif|http://westernfair.com||7991",
"9925|Sports & Leisure|017173|63640509|KETTLE CREEK GOLF AND COUNTRY CLUB|Golf with power carts|63640509.pdf|kettle_creek_gc.gif|http://kettlecreekgolf.ca||7991",
"1620|Sports & Leisure|017832|63676311|OLG SLOTS|Feel the excitement even before you get here|63676311.pdf|WesternFairLogo.gif|http://olg.ca||7991",
"2453|Sports & Leisure|010840|63674374|INDIAN HILLS GOLF CLUB|Summer twilight|63674374.pdf|indian_hills_golf.gif|http://indianhillsgolf.ca||7991",
"2453|Sports & Leisure|010840|63678415|INDIAN HILLS GOLF CLUB|Summer Twilight|63678415.pdf|indian_hills_golf.gif|http://indianhillsgolf.ca||7991"
);

homes = new Array ( 
"1981|Real Estate|014241|63695980|RE/MAX ADVANTAGE REALTY LTD., BROKERAGE|Homes for sale|63695980.pdf|REMAXAdvantageRealty.gif|http://www.remax-advantabe.on.com|ReMaxAdvantagebarb@rogers.com|7989",
"1265|Real Estate|010695|63697828|ROYAL LEPAGE TRILAND REALTY|Helping you is what we do|63697828.pdf|RoyalLepageMapleLeaf.gif|http://royallepagetriland.com|london@royallepage.ca|7989",
"1220|Real Estate|017360|63696019|RE/MAX CENTRE CITY|Home for sale|63696019.pdf|remax_centrecity.gif||remaxcc@rogers.com|7989",
"1265|Real Estate|010695|63697822|ROYAL LEPAGE TRILAND REALTY|Helping you is what we do|63697822.pdf|RoyalLepageMapleLeaf.gif|http://royallepagetriland.com|london@royallepage.ca|7989",
"1210|Real Estate|014794|63694591|PAT BROWN|Open house Sunday|63694591.pdf|RoyalLePageLandco.gif||landcolondon@royallepage.com|7989",
"1436|Real Estate|012189|63666390|SUTTON SELECT REALTY INC.|Homes for sale|63666390.pdf|SuttonPreferredlogo.gif|http://suttonselect.com|patricia@suttonselect.com|7989",
"2608|Real Estate|341651|63571415|SARATOGA HOMES|A horizon of new ideas|63571415.pdf|saratoga_homes.gif|http://www.saratogahomes.ca||7989",
"1083|Real Estate|016938|63695997|OLIVER AND ASSOCIATES|Open houses Saturday, Sunday|63695997.pdf|OliverAssociates.gif|http://www.oliver-and-associates.com|office@oliver-and-associates.com|7989",
"1772|Real Estate|012881|63698035|COLDWELL BANKER|We Never Stop Moving|63698035.pdf|coldwell_banker.gif|http://1stlondon.com|first-london@coldwellbanker.ca|7989",
"1436|Real Estate|012189|63696716|SUTTON SELECT REALTY INC.|Our Difference is Attitude|63696716.pdf|SuttonPreferredlogo.gif|http://suttonselect.com|patricia@suttonselect.com|7989",
"1759|Real Estate|018104|63697806|CENTURY 21 FIRST CANADIAN CORP.|Open Houses|63697806.pdf|Century21.gif|http://century21london.com|hrayo@yahoo.com|7989"
);

miscellaneous = new Array ( 
"1166|Legals and Tenders|018500|63698990|PRICEWATERHOUSE COOPERS INC.|In the Matter of Bankruptcy|63698990.pdf|pricewaterhouse_coopers.gif|||7973",
"1166|Legals and Tenders|018500|63698963|PRICEWATERHOUSE COOPERS INC.|In the Matter of Bankruptcy|63698963.pdf|pricewaterhouse_coopers.gif|||7973",
"9948|Miscellaneous|30143420|63699954|POWER WORKERS' UNION|Power Workers' Union Strike|63699954.pdf|power_workers_union.gif|||7988",
"9867|Miscellaneous|30138297|63679321|AMICA AT LONDON|Celebrate Summer with Amica|63679321.pdf|amica_of_london.gif|http://amica.ca/||7988"
);

retail = new Array ( 
"340|Flyers Online|011088|63694794|Copp's Buildall|Hot Savings|http://virtual.lfpress.com/doc/londonfreepress/Copps_July09/2009070601/|Copps.gif|http://www.coppsbuildall.com||7925",
"641|Flyers Online|017131|63703978|HENRY'S|100 Years!|http://virtual.lfpress.com/doc/londonfreepress/Henrys100Deals_flyer/2009071301/|HenrysPhoto.gif|http://www.henrys.com||7925",
"9627|Flyers Online|010179|63674266|Joseph's Furniture|Hot Summer Savings!|http://virtual.lfpress.com/doc/londonfreepress/Josephs_JulyAug_Flyer_Final/2009062201/|josephs_furniture.gif|||7925",
"2492|Flyers Online|014765||Canadian Tire|Weekly Canadian Tire Flyer|http://canadiantire.shoplocal.com/canadiantire/default.aspx?action=entryflash&LanguageID=1|canadian_tire.gif|http://www.canadiantire.ca||7925",
"1676|Flyers Online|011128||Zellers|Weekly Zellers Flyer|http://director.flyerservices.com/HBC/postalcode.aspx?banner=ZELL&language=EN|zellers.jpg|||7925",
"2562|Flyers Online|018813|63704526|SOLUTIONS|Summer Sale|http://virtual.lfpress.com/doc/londonfreepress/SO727_SUMMER_SALE_FLYER_v4p1/2009071301/|solutions.gif|http://www.solutions-stores.ca||7925",
"831|Retail Shopping|014032|63688671|LENS MILL STORE|Summer Clearout|63688671.pdf|lens_mill.gif|http://lensmill.ca|london@lensmill.com|7972",
"9942|Retail Shopping|011780|63690224|SEARS CANADA|Warehouse Sale|63690224.pdf|searsoutlet.gif|||7972",
"1|Education|014985|63686696|TRIOS COLLEGE|Earn reputable diploma and start new career|63686696.pdf|TriOScmylogo.gif|http://trios.com|MicheleKeeler@trios.com|7977",
"1|Education|014985|63686919|TRIOS COLLEGE|Looking for a great career?|63686919.pdf|TriOScmylogo.gif|http://trios.com|MicheleKeeler@trios.com|7977",
"1|Education|014985|63686899|TRIOS COLLEGE|Police foundations diploma|63686899.pdf|TriOScmylogo.gif|http://trios.com|MicheleKeeler@trios.com|7977",
"1|Education|014985|63686847|TRIOS COLLEGE|Personal support worker|63686847.pdf|TriOScmylogo.gif|http://trios.com|MicheleKeeler@trios.com|7977",
"2296|Financial Services|018700|63668307|CANACCORD CAPITAL|Canaccord|63668307.pdf|canaccord_caital.gif|http://www.canaccord.com|angela_hamilton@canaccord.com|7993",
"9949|Lawn and Garden|342644|63697921|RAMSEY'S ORNAMENTAL CONCRETE|Easter Island Heads|63697921.pdf|ramseys_ornamental.gif|http://www.ramseysconcrete.com/||7994"
);

travel = new Array ( 
"362|Travel|016235|63667182|AUBURN HOMES|Live where life is sweet|63667182.pdf|auburn_developments.gif|http://auburndev.com|sales@fusionhomes.com|7980",
"1263|Travel|288393|63674482|ROUNDSTONE INN|Summerside 1-bedroom cottage|63674482.pdf|roundstoneinn.gif|http://www.roundstoneinn.com|info@roundstoneinn.on.ca|7980",
"126|Travel|313515|63696562|BEYOND BORDERS TRAVEL|Best of Branson's Christmas Season Tour|63696562.pdf|BeyondBorderslogo.gif|http://beyondborderstravel.ca||7980",
"1263|Travel|288393|63674522|ROUNDSTONE INN|Sahara Lodge Room|63674522.pdf|roundstoneinn.gif|http://www.roundstoneinn.com|info@roundstoneinn.on.ca|7980"
 );

power_cats = new Array(automotive,entertainment,events,health,homes,miscellaneous,retail,travel);



if(!Array.prototype.push) {
	function array_push() {
		for(var i=0;i<arguments.length;i++){
			this[this.length]=arguments[i]
		};
		return this.length;
	}
	Array.prototype.push = array_push;
}

var control_array= new Array();
var listing_array= new Array();
var ad= new Array();
var form_url = '/perl-bin/publish.cgi';
var xml= 'powerpage';
var template = 'blank' 
var template_printonly = 'printonly' 
var category = ''
var category_type = 'powerpage'
var max_listings = 1;

function show_power(array_type) {
// alert("IN array: "+array_type+"\n");
 if (array_type) {
 var in_array = eval(array_type); 
// alert("IN array: "+array_type+" NEw Array Length: "+in_array.length+"\n");
 if (in_array.length > 0) {
	print_ad(random_ad(in_array));
	}
} else {
	print_ad(random_array());
} 
}
   
    
function random_ad(in_array) {
// alert("IN array: "+in_array+" NEw Array Length: "+in_array.length+"\n");
	 if (in_array.length > 0) {
	 	 var random_index = Math.floor(Math.random() * in_array.length);	
	 	 return(in_array[random_index]);	
	 } else {	
	 	return(0);
	 }
}
  
function random_array() {
	 if (power_cats.length > 0) {
	 	var random_index = Math.floor(Math.random() * power_cats.length);	 	 	
	 	return(random_ad(eval(power_cats[random_index])));
	} else {	
	 	return(0);
	 }	
}       


function print_ad(ad) {
// alert("IN AD: "+ad+" \n");	
var ads= ad.split("|");
if (ads[0] > 0) {
if (document.getElementById || document.all || document.layers) {
//document object supports all modern WC3 DOM stuff 
document.open();  
document.write('<style type="text/css">');
document.write(' .box_powerpage {width:440px;height:130px;background: #FFFFFF;border: 1px dotted #000099; margin-top:10px;margin-bottom:10px;padding: 10px 5px 5px 5px;position:relative;}\n');
document.write(' .title_powerpage {width:320px;font-family: "Arial","Verdana";font-size:13px; font-weight:bold;color:#FFFFFF;background-color:#000099;letter-spacing:0.1em;margin-bottom:5px;padding: 1px 3px 1px 3px;top:-10px;left:10px;position:absolute;}\n');
document.write(' .pp_image {padding: 3px 3px 3px 3px;margin-right: 10px;;}\n');
document.write('.cat_link {font-size:11px; font-family: "Arial","Verdana"; color:#000000; text-decoration:none;  }\n');
document.write('.power_link {font-size:14px; font-family: "Arial","Verdana"; color:#000000; text-decoration:none; font-weight: bold; }\n');
document.write('a.power_link:link {font-size:11px;  color:#000000; text-decoration:none;text-transform: none;  font-weight: bold;  }\n');
document.write('a.power_link:visited {font-size:11px;  color:#000000; text-decoration:none;text-transform: none;  font-weight: bold;  }\n');
document.write('a.power_link:active {font-size:11px;  color:#000000; text-decoration:none;text-transform: none;  font-weight: bold; }\n');
document.write('a.power_link:hover {font-size:11px;  color:#000000; text-decoration:underline;text-transform: none;  font-weight: bold;  }\n');
document.write('</style>\n');
document.write('<div class="box_powerpage"><div class="title_powerpage"> As Advertised in the London Free Press </div><span class="power_link">\n');
if (ads[7]) {
	document.write('<a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url='+form_url+'?p='+ads[0]+'&x='+xml+'&s='+template+'"><img src="/images/powerpages/'+ads[7]+'" width=118 height=118 align="left" border=0 class="pp_image"></a>\n');
} else {
	document.write('<a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url='+form_url+'?p='+ads[0]+'&x='+xml+'&s='+template+'"><img src="/images/powerpages/icons/shopsmart.jpg" width=118 height=118 align="left" border=0 class="pp_image"></a>\n');
}
	document.write('<br /><div class="power_link" align="left">'+ads[5]+'.<br /> <span class="cat_link">('+ads[1]+': '+ads[4]+')</span>');
	
	document.write('<br /><br /><a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url=http://www2.lfpress.com/adsonline/'+ads[6]+'" onclick="NewWindow( this.href,\'pdf\',\'600\',\'480\',\'yes\',\'yes\');return false;"  class="listing_title"><img src="/images/powerpages/icons/view_ad.gif" width="58" height="20" border=0 alt="'+ads[5]+'"></a>\n');
if (ads[8]) {
	document.write('&nbsp; <a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url='+ads[8]+'" target="_blank"><img src="/images/powerpages/icons/website.gif" width="58" height="20" border=0 alt="'+ads[5]+'"></a>\n');
}
if (ads[9]) {
	document.write(' &nbsp; <a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url=mailto:'+ads[9]+'"><img src="/images/powerpages/icons/email.gif" width="58" height="20" border=0 alt="'+ads[9]+'"></a>\n');
}
if (ads[0]) {
	document.write(' &nbsp; <a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url='+form_url+'?p='+ads[0]+'&x='+xml+'&s='+template+'" class="listing_title"><img src="/images/powerpages/icons/details.gif" width="58" height="20" border=0 alt="'+ads[4]+'"></a>\n'); 
}	
document.write('<div align="right"><br /><a href="/perl-bin/publish.cgi?s=blank&x=powerpage&s_cat_type=Powerpage&s_keywords=&s_category='+ads[10]+'&search=power" class="power_link">See All '+ads[1]+' Ads</a> &nbsp;&nbsp; </div>\n');
document.write('</span></div></div><br clear="both" />\n');
document.close()
// log_exposure('PowerPage',ads[2],ads[3],'Impression');
} else {
//document doesn't support all WC3 stuff, so feed it crap
  with (document) {
    open();
document.write('<style type="text/css">');
document.write(' .box_powerpage {width:440px;height:130px;background: #FFFFFF;border: 1px dotted #000099; margin-top:10px;margin-bottom:10px;padding: 10px 5px 5px 5px;position:relative;);}\n');
document.write(' .title_powerpage {width:320px;font-family: "Arial","Verdana";font-size:13px; font-weight:bold;color:#FFFFFF;background-color:#000099;letter-spacing:0.1em;margin-bottom:5px;padding: 1px 3px 1px 3px;top:-10px;left:10px;position:absolute;}\n');
document.write(' .pp_image {padding: 3px 3px 3px 3px;margin-right: 10px;;}\n');
document.write('.cat_link {font-size:11px; font-family: "Arial","Verdana"; color:#000000; text-decoration:none;  }\n');
document.write('.power_link {font-size:11px; font-family: "Arial","Verdana"; color:#000000; text-decoration:none; font-weight: bold; }\n');
document.write('a.power_link:link {font-size:11px;  color:#000000; text-decoration:none;text-transform: none;  font-weight: bold;  }\n');
document.write('a.power_link:visited {font-size:11px;  color:#000000; text-decoration:none;text-transform: none;  font-weight: bold;  }\n');
document.write('a.power_link:active {font-size:11px;  color:#000000; text-decoration:none;text-transform: none;  font-weight: bold; }\n');
document.write('a.power_link:hover {font-size:11px;  color:#000000; text-decoration:underline;text-transform: none;  font-weight: bold;  }\n');
document.write('</style>\n');
document.write('<div class="box_powerpage"><div class="title_powerpage"> As Advertised in the London Free Press </div><span class="power_link">\n');
if (ads[7] != "") {
	document.write('<a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url='+form_url+'?p='+ads[0]+'&x='+xml+'&s='+template+'"><img src="/images/powerpages/'+ads[7]+'" width=118 height=118 align="left" border=0 class="pp_image"></a>\n');
} else {
	document.write('<a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url='+form_url+'?p='+ads[0]+'&x='+xml+'&s='+template+'"><img src="/images/powerpages/icons/shopsmart.jpg" width=118 height=118  align="left" border=0 class="pp_image"></a>\n');
}
	document.write('<br /><div class="power_link" align="left">'+ads[5]+'.<br /> <span class="cat_link">('+ads[1]+': '+ads[4]+')</span>');
	
	document.write('<br /><br /><a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url=http://www2.lfpress.com/adsonline/'+ads[6]+'" onclick="NewWindow( this.href,\'pdf\',\'600\',\'480\',\'yes\',\'yes\');return false;"  class="listing_title"><img src="/images/powerpages/icons/view_ad.gif" width="58" height="20" border=0 alt="'+ads[5]+'"></a>\n');
if (ads[8]) {
	document.write('&nbsp; <a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url='+ads[8]+'" target="_blank"><img src="/images/powerpages/icons/website.gif" width="58" height="20" border=0 alt="'+ads[5]+'"></a>\n');
}
if (ads[9]) {
	document.write(' &nbsp; <a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url=mailto:'+ads[9]+'"><img src="/images/powerpages/icons/email.gif" width="58" height="20" border=0 alt="'+ads[9]+'"></a>\n');
}
if (ads[0]) {
	document.write(' &nbsp; <a href="/perl-bin/adtrack.pl?s=PowerPage&d='+ads[2]+'&o='+ads[3]+'&url='+form_url+'?p='+ads[0]+'&x='+xml+'&s='+template+'" class="listing_title"><img src="/images/powerpages/icons/details.gif" width="58" height="20" border=0 alt="'+ads[4]+'"></a>\n'); 
}	
document.write('<div align="right"><br /><a href="/perl-bin/publish.cgi?s=blank&x=powerpage&s_cat_type=Powerpage&s_keywords=&s_category='+ads[10]+'&search=power" class="power_link">See All '+ads[1]+' Ads</a> &nbsp;&nbsp; </div>\n');
document.write('</span></div></div><br clear="both" />\n');
document.close()
close();
  }
}
} else {
	// Took this out so it won't appear on live pages 02/17/2009 - Pat O'Donnell
	//document.write('Power Ad, '+ad+' was not displayed  \n');
	document.write('\n');
	}
}

function NewWindow(mypage, myname, w, h, scroll) {
        	var winl = (screen.width - w) / 2;
                var wint = (screen.height - h) / 2;
                winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
                win = window.open(mypage, myname, winprops)
                  	if (parseInt(navigator.appVersion) >= 4) { 
                                win.window.focus(); }
       }
       

function log_exposure(in_type,in_dealer,in_order,in_url) {
// alert('/perl-bin/adtrack.pl?s='+in_type+'&d='+in_dealer+'&o='+in_order+'&url='+in_url+"\n");
		AjaxRequest.get(
		  {
			'url':'/perl-bin/adtrack.pl?s='+in_type+'&d='+in_dealer+'&o='+in_order+'&url='+in_url
			,'onSuccess':function(req){ show_results(); }
			,'onError':function(req){ show_error(); }
		  }
		);
	}

function show_error() {	
	}

function show_results() {	
	}


