﻿var urlBases =
   ["http://www.selfserviceads.co.uk/localwebsiteentry.aspx?REF=",
	"http://www.selfserviceads.co.uk/IRE/localwebsiteentry.aspx?REF="]

var data =
[


{ k:"banburyguardian.co.uk",t:"Banbury Guardian", bu:0, b:"www.banburyguardian.co.uk", m:"bang-sellyourcar"},
{ k:"bedfordtoday.co.uk",t:"Bedford Times & Citizen", bu:0, m:"btj-sellyourcar", b:"www.bedfordtoday.co.uk"},
{ k:"berkhamstedtoday.co.uk",t:"Berkhamsted & Tring Gazette", bu:0, m:"berk-sellyourcar"},
{ k:"biggleswadetoday.co.uk",t:"Biggleswade Chronicle", bu:0, b:"www.biggleswadetoday.co.uk", m:"bigg-sellyourcar"},
{ k:"bostonstandard.co.uk",t:"Boston Standard", bu:0, b:"www.bostonstandard.co.uk", m:"bost-sellyourcar"},
{ k:"bournelocal.co.uk",t:"Bourne Local", bu:0, m:"bour-sellyourcar", b:"www.bournelocal.co.uk"},
{ k:"buckinghamtoday.co.uk",t:"Bucks & Winslow Advertiser", bu:0, b:"www.buckinghamtoday.co.uk", m:"bwa-sellyourcar"},
{ k:"thametoday.co.uk",t:"Bucks Ad & Thame Gazette", bu:0, b:"www.thametoday.co.uk", m:"tt-sellyourcar"},
{ k:"bucksherald.co.uk",t:"Bucks Herald", bu:0, b:"www.bucksherald.co.uk", m:"bha-sellyourcar"},
{ k:"buryfreepress.co.uk",t:"Bury Free Press", bu:0, b:"www.buryfreepress.co.uk", m:"bfpj-sellyourcar"},
{ k:"daventryexpress.co.uk",t:"Daventry Express", bu:0, b:"www.daventryexpress.co.uk", m:"dwe-sellyourcar"},
{ k:"dissexpress.co.uk",t:"Diss Express", bu:0, b:"www.dissexpress.co.uk", m:"diss-sellyourcar"},
{ k:"fenlandcitizen.co.uk",t:"Fenland Citizen", bu:0, b:"www.fenlandcitizen.co.uk", m:"fenl-sellyourcar"},
{ k:"granthamjournal.co.uk",t:"Grantham Journal", bu:0, b:"www.granthamjournal.co.uk", m:"gj-sellyourcar"},
{ k:"harboroughmail.co.uk",t:"Harborough Mail", bu:0, b:"www.harboroughmail.co.uk", m:"hmj-sellyourcar"},
{ k:"haverhillecho.co.uk",t:"Haverhill Echo", bu:0, b:"www.haverhillecho.co.uk", m:"have-sellyourcar"},
{ k:"hemeltoday.co.uk",t:"Hemel Gazette", bu:0, b:"www.hemeltoday.co.uk", m:"hge-sellyourcar"},
{ k:"horncastlenews.co.uk",t:"Horncastle News", bu:0, b:"www.horncastlenews.co.uk", m:"horn-sellyourcar"},
{ k:"leamingtoncourier.co.uk",t:"Leamington Courier", bu:0, b:"www.leamingtoncourier.co.uk", m:"lscr-sellyourcar"},
{ k:"leightonbuzzardonline.co.uk",t:"Leighton Buzzard Observer", bu:0, b:"www.leightonbuzzardonline.co.uk", m:"lbc-sellyourcar"},
{ k:"louthleader.co.uk",t:"Louth Leader", bu:0, b:"www.louthleader.co.uk", m:"loul-sellyourcar"},
{ k:"lutontoday.co.uk",t:"Luton Herald & Post", bu:0, b:"www.lutontoday.co.uk", m:"lhp-sellyourcar"},
{ k:"dunstabletoday.co.uk",t:"Luton News & Dunstable Gazette", bu:0, b:"www.dunstabletoday.co.uk", m:"duns-sellyourcar"},
{ k:"lynnnews.co.uk",t:"Lynn News Friday", bu:0, b:"www.lynnnews.co.uk", m:"ln-sellyourcar"},
{ k:"marketrasenmail.co.uk",t:"Market Rasen Mail", bu:0, b:"www.marketrasenmail.co.uk", m:"mrm-sellyourcar"},
{ k:"meltontimes.co.uk",t:"Melton Times", bu:0, b:"www.meltontimes.co.uk", m:"mt-sellyourcar"},
{ k:"miltonkeynes.co.uk",t:"Milton Keynes Citizen", bu:0, b:"www.miltonkeynes.co.uk", m:"mkc-sellyourcar"},
{ k:"newmarketjournal.co.uk",t:"Newmarket Journal", bu:0, b:"www.newmarketjournal.co.uk", m:"newm-sellyourcar"},
{ k:"northamptonchron.co.uk",t:"Northampton Chronicle & Echo", bu:0, b:"www.northamptonchron.co.uk", m:"nce-sellyourcar"},
{ k:"northantset.co.uk",t:"Northants Evening Telegraph", bu:0, b:"www.northantset.co.uk", m:"ket-sellyourcar"},
{ k:"peterboroughtoday.co.uk",t:"Peterborough Evening Telegraph", bu:0, b:"www.peterboroughtoday.co.uk", m:"pet-sellyourcar"},
{ k:"rugbyadvertiser.co.uk",t:"Rugby Advertiser", bu:0, b:"www.rugbyadvertiser.co.uk", m:"rar-sellyourcar"},
{ k:"rutland-times.co.uk",t:"Rutland Times", bu:0, b:"www.rutland-times.co.uk", m:"rutl-sellyourcar"},
{ k:"skegnessstandard.co.uk",t:"Skegness Standard", bu:0, b:"www.skegnessstandard.co.uk", m:"skeg-sellyourcar"},
{ k:"sleafordstandard.co.uk",t:"Sleaford Standard", bu:0, b:"www.sleafordstandard.co.uk", m:"slea-sellyourcar"},
{ k:"spaldingtoday.co.uk",t:"Spalding Guardian", bu:0, b:"www.spaldingtoday.co.uk", m:"sgj-sellyourcar"},
{ k:"stamfordmercury.co.uk",t:"Stamford Mercury", bu:0, b:"www.stamfordmercury.co.uk", m:"stam-sellyourcar"},
{ k:"suffolkfreepress.co.uk",t:"Suffolk Free Press", bu:0, b:"www.suffolkfreepress.co.uk", m:"sfpj-sellyourcar"},
{ k:"batleynews.co.uk",t:"Batley & Birstall News", bu:0, m:"batl-sellyourcar", b:"www.batleynews.co.uk"},
{ k:"birstalltoday.co.uk",t:"Batley News", bu:0, b:"www.birstalltoday.co.uk"},
{ k:"beverleyguardian.co.uk",t:"Beverley Guardian", bu:0, b:"www.beverleyguardian.co.uk", m:"bevg-sellyourcar"},
{ k:"bridlingtonfreepress.co.uk",t:"Bridlington Free Press", bu:0, b:"www.bridlingtonfreepress.co.uk", m:"brfp-sellyourcar"},
{ k:"brighouseecho.co.uk",t:"Brighouse Echo", bu:0, b:"www.brighouseecho.co.uk", m:"bejj-sellyourcar"},
{ k:"dewsburyreporter.co.uk",t:"Dewsbury Reporter", bu:0, m:"dews-sellyourcar", b:"www.dewsburyreporter.co.uk"},
{ k:"driffieldtoday.co.uk",t:"Driffield Post & Times", bu:0, m:"dt-sellyourcar", b:"www.driffieldtoday.co.uk"},
{ k:"halifaxcourier.co.uk",t:"Evening Courier", bu:0, m:"hccn-sellyourcar", b:"www.halifaxcourier.co.uk"},
{ k:"fileymercury.co.uk",t:"Filey & Hunmanby Mercury", bu:0, m:"file-sellyourcar", b:"www.fileymercury.co.uk"},
{ k:"harrogateadvertiser.net",t:"Harrogate Advertiser", bu:0, b:"www.harrogateadvertiser.net", m:"harr-sellyourcar"},
{ k:"hartlepoolmail.co.uk",t:"Hartlepool Mail", bu:0, b:"www.hartlepoolmail.co.uk", m:"hmjj-sellyourcar"},
{ k:"hebdenbridgetimes.co.uk",t:"Hebden Bridge Times", bu:0, b:"www.hebdenbridgetimes.co.uk", m:"hebd-sellyourcar"},
{ k:"hemsworthandsouthelmsallexpress.co.uk",t:"Hemsworth & South Elmsall Express", bu:0, m:"hase-sellyourcar", b:"www.hemsworthandsouthelmsallexpress.co.uk"},
{ k:"horburytoday.co.uk",t:"HorburyToday", bu:0, b:"www.horburytoday.co.uk"},
{ k:"knaresboroughpost.co.uk",t:"Knaresborough Post", bu:0, b:"www.knaresboroughpost.co.uk", m:"knar-sellyourcar"},
{ k:"maltonmercury.co.uk",t:"Malton & Pickering Mercury", bu:0, m:"malt-sellyourcar", b:"www.maltonmercury.co.uk"},
{ k:"mirfieldreporter.co.uk",t:"Mirfield Reporter", bu:0, m:"mirf-sellyourcar", b:"www.mirfieldreporter.co.uk"},
{ k:"morleyobserver.co.uk",t:"Morley Observer", bu:0, b:"www.morleyobserver.co.uk", m:"morl-sellyourcar"},
{ k:"morpethherald.co.uk",t:"Morpeth Herald", bu:0, b:"www.morpethherald.co.uk", m:"morp-sellyourcar"},
{ k:"northyorkshirenews.com",t:"News ", bu:0, m:"nyn-sellyourcar", b:"www.northyorkshirenews.com"},
{ k:"newsguardian.co.uk",t:"News Guardian", bu:0, b:"www.newsguardian.co.uk", m:"ngdn-sellyourcar"},
{ k:"newspostleader.co.uk",t:"Newspost Leader", bu:0, b:"www.newspostleader.co.uk"},
{ k:"nidderdaleherald.co.uk",t:"Nidderdale Herald", bu:0, b:"www.nidderdaleherald.co.uk", m:"nidd-sellyourcar"},
{ k:"normantontoday.co.uk",t:"Normanton Today", bu:0, b:"www.normantontoday.co.uk"},
{ k:"northumberlandgazette.co.uk",t:"Northumberland Gazette", bu:0, b:"www.northumberlandgazette.co.uk", m:"ngaz-sellyourcar"},
{ k:"ossetttoday.co.uk",t:"Ossett Today", bu:0, b:"www.ossetttoday.co.uk"},
{ k:"pocklingtonpost.co.uk",t:"Pocklington Post", bu:0, b:"www.pocklingtonpost.co.uk", m:"ptj-sellyourcar"},
{ k:"pontefractandcastlefordexpress.co.uk",t:"Pontefract Express", bu:0, m:"pewt-sellyourcar", b:"www.pontefractandcastlefordexpress.co.uk"},
{ k:"pudseytoday.co.uk",t:"Pudsey Today", bu:0, b:"www.pudseytoday.co.uk", m:"puds-sellyourcar"},
{ k:"scarborougheveningnews.co.uk",t:"Scarborough Evening News", bu:0, b:"www.scarborougheveningnews.co.uk", m:"sen-sellyourcar"},
{ k:"shieldsgazette.com",t:"Shields Gazette", bu:0, b:"www.shieldsgazette.com", m:"sgjj-sellyourcar"},
{ k:"spenboroughguardian.co.uk",t:"Spenborough Guardian", bu:0, b:"www.spenboroughguardian.co.uk", m:"spen-sellyourcar"},
{ k:"sunderlandecho.com",t:"Sunderland Echo", bu:0, b:"www.sunderlandecho.com", m:"sejj-sellyourcar"},
{ k:"todmordennews.co.uk",t:"Todmorden News", bu:0, b:"www.todmordennews.co.uk", m:"todm-sellyourcar"},
{ k:"wakefieldexpress.co.uk",t:"Wakefield Express", bu:0, b:"www.wakefieldexpress.co.uk", m:"weeo-sellyourcar"},
{ k:"wetherbynews.co.uk",t:"Wetherby News", bu:0, b:"www.wetherbynews.co.uk", m:"weth-sellyourcar"},
{ k:"whitbygazette.co.uk",t:"Whitby Gazette", bu:0, b:"www.whitbygazette.co.uk", m:"wgj-sellyourcar"},
{ k:"yorkshireeveningpost.co.uk",t:"Yorkshire Evening Post", bu:0, b:"www.yorkshireeveningpost.co.uk", m:"leed-sellyourcar"},
{ k:"yorkshirepost.co.uk",t:"Yorkshire Post", bu:0, b:"www.yorkshirepost.co.uk", m:"ypos-sellyourcar"},
{ k:"bexhillobserver.net",t:"Bexhill Observer", bu:0, b:"www.bexhillobserver.net", m:"bexn-sellyourcar"},
{ k:"bognor.co.uk",t:"Bognor", bu:0, b:"www.bognor.co.uk", m:"bog-sellyourcar"},
{ k:"businessmatterssussex.co.uk",t:"Business Matters Sussex", bu:0, b:"www.businessmatterssussex.co.uk"},
{ k:"chichester.co.uk",t:"Chichester Observer", bu:0, b:"www.chichester.co.uk", m:"cho-sellyourcar"},
{ k:"wscountytimes.co.uk",t:"County Times", bu:0, b:"www.wscountytimes.co.uk", m:"wsct-sellyourcar"},
{ k:"crawleyobserver.co.uk",t:"Crawley Observer", bu:0, b:"www.crawleyobserver.co.uk", m:"cowh-sellyourcar"},
{ k:"eastbourneherald.co.uk",t:"Eastbourne Herald", bu:0, b:"www.eastbourneherald.co.uk", m:"ehg-sellyourcar"},
{ k:"hastingsobserver.co.uk",t:"Hastings & St. Leonards Observer", bu:0, m:"hasn-sellyourcar", b:"www.hastingsobserver.co.uk"},
{ k:"haylingtoday.co.uk",t:"Hayling Islander", bu:0, b:"www.haylingtoday.co.uk", m:"hi-sellyourcar"},
{ k:"littlehamptongazette.co.uk",t:"Little Hampton Gazette", bu:0, b:"www.littlehamptongazette.co.uk", m:"lgj-sellyourcar"},
{ k:"midsussextimes.co.uk",t:"Mid Sussex Times", bu:0, b:"www.midsussextimes.co.uk", m:"mst-sellyourcar"},
{ k:"midhurstandpetworth.co.uk",t:"Midhurst and Petworth", bu:0, b:"www.midhurstandpetworth.co.uk", m:"map-sellyourcar"},
{ k:"portsmouth.co.uk",t:"News", bu:0, b:"www.portsmouth.co.uk", m:"ppp-sellyourcar"},
{ k:"petersfieldpost.co.uk",t:"Petersfield Post", bu:0, b:"www.petersfieldpost.co.uk", m:"ptp-sellyourcar"},
{ k:"ryeandbattleobserver.co.uk",t:"Rye & Battle Observer", bu:0, m:"rbo-sellyourcar", b:"www.ryeandbattleobserver.co.uk"},
{ k:"shorehamherald.co.uk",t:"Shoreham Herald", bu:0, b:"www.shorehamherald.co.uk"},
{ k:"sussexexpress.co.uk",t:"Sussex Express", bu:0, b:"www.sussexexpress.co.uk", m:"sej-sellyourcar"},
{ k:"westsussextoday.co.uk",t:"West Sussex Gazette", bu:0, m:"wst-sellyourcar", b:"www.westsussextoday.co.uk"},
{ k:"worthingherald.co.uk",t:"Worthing Herald", bu:0, b:"www.worthingherald.co.uk", m:"whg-sellyourcar"},
{ k:"ballymenatimes.com",t:"Ballymena Times", bu:0, b:"www.ballymenatimes.com", m:"ball-sellyourcar"},
{ k:"ballymoneytimes.co.uk",t:"Ballymoney & Moyle Times", bu:0, m:"balm-sellyourcar"},
{ k:"antrimtimes.co.uk",t:"Ballymoney Times", bu:0, b:"www.antrimtimes.co.uk"},
{ k:"banbridgeleader.co.uk",t:"Banbridge Leader", bu:0, b:"www.banbridgeleader.co.uk", m:"banb-sellyourcar"},
{ k:"carricktoday.co.uk",t:"Carrick Gazette", bu:0, m:"carr-sellyourcar", b:"www.carricktoday.co.uk"},
{ k:"colerainetimes.co.uk",t:"Coleraine Times", bu:0, b:"www.ballymoneytimes.co.uk", m:"cole-sellyourcar"},
{ k:"derryjournal.com",t:"Derry Journal", bu:0, m:"derr-sellyourcar", b:"www.derryjournal.com"},
{ k:"donegaldemocrat.ie",t:"Donegal Democrat", bu:0, b:"www.donegaldemocrat.ie", m:"dngl-sellyourcar"},
{ k:"farminglife.com",t:"Farming Life", bu:0, b:"www.farminglife.com", m:"flife-sellyourcar"},
{ k:"larnetimes.co.uk",t:"Larne Times", bu:0, b:"www.carrickfergustimes.co.uk", m:"larn-sellyourcar"},
{ k:"londonderrysentinel.co.uk",t:"Londonderry Sentinel", bu:0, b:"www.londonderrytoday.co.uk", m:"lond-sellyourcar"},
{ k:"lurganmail.co.uk",t:"Lurgan Mail", bu:0, b:"www.lurganmail.co.uk", m:"lurg-sellyourcar"},
{ k:"midulstermail.co.uk",t:"Mid Ulster Mail", bu:0, b:"www.midulstermail.co.uk", m:"midu-sellyourcar"},
{ k:"newsletter.co.uk",t:"News Letter", bu:0, b:"www.newsletter.co.uk", m:"belf-sellyourcar"},
{ k:"portadowntimes.co.uk",t:"Portadown Times", bu:0, b:"www.portadowntimes.co.uk", m:"port-sellyourcar"},
{ k:"tyronetimes.co.uk",t:"Tyrone Times", bu:0, b:"www.tyronetimes.co.uk"},
{ k:"lisburntoday.co.uk",t:"Ulster Star", bu:0, b:"www.lisburntoday.co.uk", m:"lisb-sellyourcar"},
{ k:"blackpoolgazette.co.uk",t:"Blackpool Gazette", bu:0, b:"www.blackpoolgazette.co.uk", m:"blac-sellyourcar"},
{ k:"burnleyexpress.net",t:"Burnley Express", bu:0, b:"www.burnleyexpress.net", m:"burn-sellyourcar"},
{ k:"chorley-guardian.co.uk",t:"Chorley Guardian", bu:0, b:"www.chorley-guardian.co.uk", m:"chor-sellyourcar"},
{ k:"clitheroeadvertiser.co.uk",t:"Clitheroe Advertiser & Times", bu:0, b:"www.clitheroeadvertiser.co.uk", m:"croe-sellyourcar"},
{ k:"dirtbikerider.co.uk",t:"Dirt Bike Rider", bu:0, b:"www.dirtbikerider.co.uk"},
{ k:"fleetwoodtoday.co.uk",t:"Fleetwood Weekly News", bu:0, b:"www.fleetwoodtoday.co.uk", m:"fle-sellyourcar"},
{ k:"garstangcourier.co.uk",t:"Garstang Courier", bu:0, b:"www.garstangcourier.co.uk", m:"gtt-sellyourcar"},
{ k:"iomtoday.co.im",t:"IoM Courier", bu:0, m:"iom-sellyourcar", b:"www.iomtoday.co.im"},
{ k:"lep.co.uk",t:"Lancashire Evening Post", bu:0, b:"www.lep.co.uk", m:"pres-sellyourcar"},
{ k:"lancasterguardian.co.uk",t:"Lancaster Guardian", bu:0, b:"www.lancasterguardian.co.uk", m:"lanc-sellyourcar"},
{ k:"leighreporter.co.uk",t:"Leigh Reporter", bu:0, b:"www.leighreporter.co.uk", m:"leig-sellyourcar"},
{ k:"leyland-guardian.co.uk",t:"Leyland Guardian", bu:0, b:"www.leyland-guardian.co.uk", m:"leyl-sellyourcar"},
{ k:"longridgenews.co.uk",t:"Longridge News", bu:0, b:"www.longridgenews.co.uk", m:"lon-sellyourcar"},
{ k:"lythamstannesexpress.co.uk",t:"Lytham St Annes Express", bu:0, b:"www.lythamstannesexpress.co.uk", m:"lyt-sellyourcar"},
{ k:"pendletoday.co.uk",t:"Pendle Today", bu:0, b:"www.pendletoday.co.uk", m:"pend-sellyourcar"},
{ k:"sthelensreporter.co.uk",t:"St Helens Reporter", bu:0, b:"www.sthelensreporter.co.uk", m:"sthe-sellyourcar"},
{ k:"thevisitor.co.uk",t:"The Visitor", bu:0, b:"www.thevisitor.co.uk", m:"more-sellyourcar"},
{ k:"tmxnews.co.uk",t:"Trials & Motorcross News", bu:0, b:"www.tmxnews.co.uk"},
{ k:"wigantoday.net",t:"Wigan Evening Post", bu:0, b:"www.wigantoday.net", m:"wiga-sellyourcar"},
{ k:"dundalkdemocrat.ie",t:"Dundalk Democrat", bu:1, b:"www.dundalkdemocrat.ie", m:"dund-sellyourcar"},
{ k:"echo.ie",t:"Echo", bu:1, b:"www.echo.ie"},
{ k:"kilkennypeople.ie",t:"Kilkenny People", bu:1, b:"www.kilkennypeople.ie", m:"kilk-sellyourcar"},
{ k:"leinsterexpress.ie",t:"Leinster Express", bu:1, b:"www.leinsterexpress.ie"},
{ k:"leinsterleader.ie",t:"Leinster Leader", bu:1, b:"www.leinsterleader.ie"},
{ k:"leitrimobserver.ie",t:"Leitrim Observer", bu:1, b:"www.leitrimobserver.ie", m:"coun-sellyourcar"},
{ k:"limerickleader.ie",t:"Limerick Leader", bu:1, b:"www.limerickleader.ie", m:"lime-sellyourcar"},
{ k:"longfordleader.ie",t:"Longford Leader", bu:1, b:"www.longfordleader.ie", m:"long-sellyourcar"},
{ k:"nationalist.ie",t:"Nationalist", bu:1, b:"www.nationalist.ie", m:"nati-sellyourcar"},
{ k:"offalyexpress.ie",t:"Offaly Express", bu:1, b:"www.offalyexpress.ie", m:"offa-sellyourcar"},
{ k:"tipperarystar.ie",t:"Tipperary Star", bu:1, b:"www.tipperarystar.ie", m:"tipp-sellyourcar"},
{ k:"arbroathherald.co.uk",t:"Arbroath Herald", bu:0, b:"www.arbroathherald.co.uk", m:"arbr-sellyourcar"},
{ k:"bearsdenherald.co.uk",t:"Bearsden Herald", bu:0, m:"bear-sellyourcar"},
{ k:"bellshillspeaker.co.uk",t:"Bellshill Speaker", bu:0, m:"bell-sellyourcar"},
{ k:"berwick-advertiser.co.uk",t:"Berwick Advertiser", bu:0, b:"www.berwick-advertiser.co.uk", m:"ba-sellyourcar"},
{ k:"berwickshire-news.co.uk",t:"Berwickshire News", bu:0, b:"www.berwickshire-news.co.uk", m:"bern-sellyourcar"},
{ k:"bonessjournal.co.uk",t:"Boness Journal", bu:0, b:"www.Bonessjournal.co.uk", m:"boj-sellyourcar"},
{ k:"brechinadvertiser.co.uk",t:"Brechin Advertiser", bu:0, b:"www.Brechinadvertiser.co.uk", m:"brec-sellyourcar"},
{ k:"buchanobserver.co.uk",t:"Buchan Observer", bu:0, b:"www.Buchanobserver.co.uk", m:"buch-sellyourcar"},
{ k:"buteman.co.uk",t:"Buteman", bu:0, b:"www.buteman.co.uk", m:"bute-sellyourcar"},
{ k:"lanarkgazette.co.uk",t:"Carluke & Lanark Gazette (LGT)", bu:0, b:"www.lanarkgazette.co.uk", m:"lgt-sellyourcar"},
{ k:"carlukegazette.co.uk",t:"Carluke & Lanark Gazette CARL", bu:0, b:"www.Carlukegazette.co.uk", m:"carl-sellyourcar"},
{ k:"cumbernauld-news.co.uk",t:"Cumbernauld New", bu:0, b:"www.cumbernauld-news.co.uk", m:"cum-sellyourcar"},
{ k:"deesidepiper.co.uk",t:"Deeside & Donside Piper ", bu:0, m:"dees-sellyourcar", b:"www.deesidepiper.co.uk"},
{ k:"donsidepiper.co.uk",t:"Deeside & Donside Piper ", bu:0, m:"dons-sellyourcar", b:"www.donsidepiper.co.uk"},
{ k:"fifetoday.co.uk",t:"East Fife Mail", bu:0, b:"www.fifetoday.co.uk", m:"ffpl-sellyourcar"},
{ k:"eastlothiannews.co.uk",t:"East Lothian News Series", bu:0, b:"www.eastlothiannews.co.uk", m:"elt-sellyourcar"},
{ k:"edinburghnews.scotsman.com",t:"Edinburgh Evening News", bu:0, b:"www.edinburghnews.scotsman.com", m:"en-sellyourcar"},
{ k:"ellontimes.co.uk",t:"Ellon Times", bu:0, m:"ello-sellyourcar"},
{ k:"falkirkherald.co.uk",t:"Falkirk Herald", bu:0, b:"www.falkirkherald.co.uk", m:"falk-sellyourcar"},
{ k:"forfardispatch.co.uk",t:"Forfar Dispatch", bu:0, m:"forf-sellyourcar", b:"www.forfardispatch.co.uk"},
{ k:"fraserburghherald.co.uk",t:"Fraserburgh Herald", bu:0, b:"www.fraserburghherald.co.uk", m:"fras-sellyourcar"},
{ k:"gallowaygazette.co.uk",t:"Galloway Gazette", bu:0, b:"www.gallowaygazette.co.uk", m:"gall-sellyourcar"},
{ k:"glasgowsouthandeastwoodextra.co.uk",t:"Glasgow South & Eastwood Extra", bu:0, m:"glas-sellyourcar"},
{ k:"guideandgazette.co.uk",t:"Guide & Gazette", bu:0, m:"carn-sellyourcar"},
{ k:"hawick-news.co.uk",t:"Hawick News", bu:0, b:"www.hawick-news.co.uk", m:"hn-sellyourcar"},
{ k:"inverurieherald.co.uk",t:"Inverurie Herald", bu:0, m:"inve-sellyourcar"},
{ k:"kilsythchronicle.co.uk",t:"Kilsyth Chronicle", bu:0, m:"cna-sellyourcar"},
{ k:"kincardineshireobserver.co.uk",t:"Kincardineshire Observer", bu:0, b:"www.kincardineshireobserver.co.uk", m:"kinc-sellyourcar"},
{ k:"kirkintilloch-herald.co.uk",t:"Kirkintillloch Herald", bu:0, b:"www.kirkintilloch-herald.co.uk", m:"khsa-sellyourcar"},
{ k:"kirriemuirherald.co.uk",t:"Kirriemuir Herald", bu:0, b:"www.kirriemuirherald.co.uk", m:"kirr-sellyourcar"},
{ k:"linlithgowgazette.co.uk",t:"Linlithgow Gazette", bu:0, m:"ljg-sellyourcar", b:"www.Linlithgowgazette.co.uk"},
{ k:"mearnsleader.co.uk",t:"Mearns Leader", bu:0, b:"www.mearnsleader.co.uk", m:"mear-sellyourcar"},
{ k:"midlothianadvertiser.co.uk",t:"Midlothian Advertiser", bu:0, b:"www.midlothianadvertiser.co.uk", m:"mlt-sellyourcar"},
{ k:"milngavieherald.co.uk",t:"Milngavie & Bearsden Herald", bu:0, b:"www.Milngavieherald.co.uk", m:"miln-sellyourcar"},
{ k:"montrosereview.co.uk",t:"Montrose Review", bu:0, b:"www.montrosereview.co.uk", m:"mont-sellyourcar"},
{ k:"motherwelltimes.co.uk",t:"Motherwell Times", bu:0, b:"www.bellshillspeaker.co.uk", m:"mthw-sellyourcar"},
{ k:"paisleyandrenfrewextra.co.uk",t:"Paisley & Renfrew Extra", bu:0, m:"pais-sellyourcar"},
{ k:"queensferrygazette.co.uk",t:"Queensferry Gazette", bu:0, m:"qfg-sellyourcar", b:"www.queensferrygazette.co.uk"},
{ k:"scotlandonsunday.scotsman.com",t:"Scotland on Sunday", bu:0, b:"www.scotlandonsunday.scotsman.com", m:"sos-sellyourcar"},
{ k:"scotsman.com",t:"Scotsman", bu:0, b:"www.scotsman.com", m:"scot-sellyourcar"},
{ k:"selkirkweekendadvertiser.co.uk",t:"Selkirk Weekend Advertiser", bu:0, b:"www.selkirkweekendadvertiser.co.uk", m:"sa-sellyourcar"},
{ k:"thesouthernreporter.co.uk",t:"Southern Reporter", bu:0, m:"sr-sellyourcar", b:"www.thesouthernreporter.co.uk"},
{ k:"stornowaygazette.co.uk",t:"Stornoway Gazette", bu:0, b:"www.stornowaytoday.co.uk", m:"stor-sellyourcar"},
{ k:"lanarkshireextra.co.uk",t:"The Lanarkshire Extra", bu:0, m:"lana-sellyourcar"},
{ k:"westlothianhp.co.uk",t:"West Lothian Herald & Post", bu:0, m:"wlhp-sellyourcar"},
{ k:"bakewelltoday.co.uk",t:"Bakewell Today", bu:0, b:"www.bakewelltoday.co.uk", m:"bake-sellyourcar"},
{ k:"belpernews.co.uk",t:"Belper News", bu:0, b:"www.belpernews.co.uk", m:"bnj-sellyourcar"},
{ k:"buxtonadvertiser.co.uk",t:"Buxton Advertiser", bu:0, b:"www.buxtonadvertiser.co.uk", m:"batc-sellyourcar"},
{ k:"derbyshiretimes.co.uk",t:"Derbyshire Times", bu:0, b:"www.chesterfieldtoday.co.uk", m:"dtj-sellyourcar"},
{ k:"dinningtontoday.co.uk",t:"Dinnington Guardian", bu:0, m:"dg-sellyourcar", b:"www.dinningtontoday.co.uk"},
{ k:"doncasterfreepress.co.uk",t:"Doncaster Free Press", bu:0, b:"www.doncasterfreepress.co.uk", m:"dfpc-sellyourcar"},
{ k:"eastwoodadvertiser.co.uk",t:"Eastwood Advertiser", bu:0, b:"www.eastwoodadvertiser.co.uk", m:"eka-sellyourcar"},
{ k:"epworthbells.co.uk",t:"Epworth Bells", bu:0, b:"www.epworthbells.co.uk", m:"epwo-sellyourcar"},
{ k:"gainsboroughstandard.co.uk",t:"Gainsborough Standard", bu:0, b:"www.gainsboroughstandard.co.uk", m:"gain-sellyourcar"},
{ k:"goolecourier.co.uk",t:"Goole Courier", bu:0, b:"www.goolecourier.co.uk", m:"gtc-sellyourcar"},
{ k:"hucknalldispatch.co.uk",t:"Hucknall Dispatch", bu:0, b:"www.hucknalldispatch.co.uk", m:"hbd-sellyourcar"},
{ k:"ilkestonadvertiser.co.uk",t:"Ilkeston Advertiser", bu:0, b:"www.ilkestonadvertiser.co.uk", m:"ias-sellyourcar"},
{ k:"chad.co.uk",t:"Mansfield and Ashfield Chad", bu:0, m:"mc-sellyourcar", b:"www.chad.co.uk"},
{ k:"matlockmercury.co.uk",t:"Matlock Mercury", bu:0, b:"www.matlockmercury.co.uk", m:"mm-sellyourcar"},
{ k:"retfordtoday.co.uk",t:"Retford Today", bu:0, b:"www.retfordtoday.co.uk"},
{ k:"ripleyandheanornews.co.uk",t:"Ripley & Heanor News", bu:0, m:"rhn-sellyourcar", b:"www.ripleyandheanornews.co.uk"},
{ k:"selbytimes.co.uk",t:"Selby Times", bu:0, b:"www.selbytimes.co.uk", m:"stc-sellyourcar"},
{ k:"thestar.co.uk",t:"Sheffield Star", bu:0, b:"www.thestar.co.uk", m:"shef-sellyourcar"},
{ k:"sheffieldtelegraph.co.uk",t:"Sheffield Telegraph", bu:0, b:"www.sheffieldtelegraph.co.uk", m:"stel-sellyourcar"},
{ k:"southyorkshiretimes.co.uk",t:"South Yorkshire Times", bu:0, b:"www.southyorkshiretimes.co.uk", m:"syte-sellyourcar"},
{ k:"thornegazette.co.uk",t:"Thorne & District Gazette", bu:0, m:"thor-sellyourcar", b:"www.thornegazette.co.uk"},
{ k:"worksopguardian.co.uk",t:"Worksop Guardian", bu:0, b:"www.worksopguardian.co.uk", m:"wgjj-sellyourcar"},
{ k:"newtownabbeytoday.co.uk",t:"Newtownabbey  Times", bu:0, m:"newa-sellyourcar", b:"www.newtownabbeytoday.co.uk"},
{ k:"carrickfergustimes.co.uk",t:"Carrick Times", bu:0, b:"www.carrickfergustimes.co.uk", m:"carf-sellyourcar"}


]


function lookup()
{
	var n = window.location.hostname;

	for( var i = 0; i< data.length ; i++ )
	{
		if( n.indexOf(data[i].k) > -1 ) break;
	}

	if (i < data.length) {

		var d = data[i];

		var tn = document.getElementById("titleName");
		if( tn != null) tn.innerHTML = d.t;

		if (d.bu == 1) {
			hideAllSAMTiles();
			return;
		}

		if (d.m == undefined) {
			document.getElementById("SamCarItem").style.display = "none";
		}
		else {
			document.getElementById("SamCarAnchor").href = urlBases[d.bu] + d.m;
		}

		if (d.b == undefined) {
			document.getElementById("SamHappyItem").style.display = "none";
		}
		else {
			var u = urlBases[d.bu];
			if (d.b == "") {
				u +=  n;
			}
			else {
				u += d.b;
			}

			document.getElementById("SamHappyAnchor").href = u;
		}

		document.getElementById("SamAFSItem").style.display = "none";
	}
	else {
		hideAllSAMTiles();
	}
}

function hideAllSAMTiles() {
	document.getElementById("SamCarItem").style.display = "none";
	document.getElementById("SamHappyItem").style.display = "none";
	document.getElementById("SamAFSItem").style.display = "none";
}

lookup();
