/* cached (type 2) @ Fri, 10 Feb 2012 18:12:49 GMT, sid=14  */
			//JS object: objectid=23952292 datasource=harrowobserver method=javascript_default
document.write('\n\t\n\t<div class=\"span-31 last box lm-text-ads\" id=\"holds-businessWidget_14AD9D7E\">\n\t\t\n\t\t<div class=\"three-col\">\n\t\t\n\t\t\t\n\t\t\t<h4 class=\"list-head-colour1\">Local Businesses</h4>\n\t\t\t\n\t\t\t\n\t\t\t<div id=\"top-widget-listview\" style=\"display: block;\">\n\t\t\t\t<div class=\"text-ads last\" id=\"businessWidget_14AD9D7E\">\n\t\t\t\t\t\n\t\t\t\t\t<noscript><div><h5><a href=\'http://www.localmole.co.uk/Business/4870004\'>Kenton Park Service Station</a></h5><p><a href=\'http://www.localmole.co.uk/Business/4870004\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/Harrow/MOT+Testing\'>More MOT Testing in Harrow </a></p></div><div><h5><a href=\'http://www.localmole.co.uk/Business/4001501\'>Northwood Hills Service Station</a></h5><p><a href=\'http://www.localmole.co.uk/Business/4001501\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/Harrow/MOT+Testing\'>More MOT Testing in Harrow </a></p></div><div><h5><a href=\'http://www.localmole.co.uk/Business/3844185\'>Cricklewood Lane Service Station</a></h5><p><a href=\'http://www.localmole.co.uk/Business/3844185\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/Harrow/MOT+Testing\'>More MOT Testing in Harrow </a></p></div><div><a href=\'http://www.localmole.co.uk\'> Search LocalMole.co.uk Now </a></div></noscript>\n\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\n\t\t</div>\n\t\t\n\t</div>\n\t\n\t<script type=\"text/javascript\">\n\t//<![CDATA[\n\n\t\t\n\t\tvar z14AD9D7F = new Object();\n\t\tvar CentIndBusDir = new Object();\n\t\tvar moreURL = \'\';\n\t\t\n\t\tz14AD9D7F.numDisplayResults = 20;\n\t\t\n\t\t\n\t\tz14AD9D7F.premiumBusArray = [];\n\t\tz14AD9D7F.enhancedBusArray = [];\n\t\tz14AD9D7F.basicBusArray = [{\"LOCATION\":\"Harrow\",\"NAME\":\"Kenton Park Service Station\",\"ADDRESS\":\"384 Kenton Road, Harrow, HA3 9DP\",\"LISTINGLEVEL\":\"FREE\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/Harrow\\/MOT+Testing\",\"IMAGEURL\":\"http:\\/\\/www.localmole.co.uk\\/content\\/images\\/common\\/thumb-fake-ad.jpg\",\"LONGITUDE\":\"-0.301409\",\"WEBCARDID\":\"a1991acc2738dece6175b1bded3fb16f\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/4870004\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"MOT Testing\",\"LATITUDE\":\"51.5875\"},{\"LOCATION\":\"Harrow\",\"NAME\":\"Northwood Hills Service Station\",\"ADDRESS\":\"105-107 Pinner Road, Northwood, HA6 1DD\",\"LISTINGLEVEL\":\"FREE\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/Harrow\\/MOT+Testing\",\"IMAGEURL\":\"http:\\/\\/www.localmole.co.uk\\/content\\/images\\/common\\/thumb-fake-ad.jpg\",\"LONGITUDE\":\"-0.41731\",\"WEBCARDID\":\"b253f67733a735fe3dc8ed64c2c90c79\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/4001501\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"MOT Testing\",\"LATITUDE\":\"51.6045\"},{\"LOCATION\":\"Harrow\",\"NAME\":\"Cricklewood Lane Service Station\",\"ADDRESS\":\"114 Cricklewood Lane, London, NW2 2DP\",\"LISTINGLEVEL\":\"FREE\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/Harrow\\/MOT+Testing\",\"IMAGEURL\":\"http:\\/\\/www.localmole.co.uk\\/content\\/images\\/common\\/thumb-fake-ad.jpg\",\"LONGITUDE\":\"-0.209401\",\"WEBCARDID\":\"629e466f96008b84c7df32b5fa49ff97\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/3844185\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"MOT Testing\",\"LATITUDE\":\"51.5598\"}];\n\t\n\t\t\n\t\tCentIndBusDir.getSelectionIndexes = function(numToSelect, totalNum){\n\t\t\t\n\t\t\tif(numToSelect-1 > totalNum)\n\t\t\t\tthrow(\"Attempting to select \" + numToSelect + \" unique numbers from \" \n\t\t\t\t\t+ totalNum + \".\");\n\t\t\t\n\t\t\t\n\t\t\tvar selArray = new Array();\n\n\t\t\t\n\t\t\tvar selMap = new Object();\n\t\t\t\n\t\t\t\n\t\t\twhile(selArray.length != numToSelect){\n\t\t\t\tvar ranNum = Math.random();\n\t\t\t\tranNum *= totalNum;\n\t\t\t\tranNum = Math.round(ranNum);\n\t\t\t\tif(selMap[ranNum] == undefined){\n\t\t\t\t\tselArray[selArray.length] = ranNum;\n\t\t\t\t\tselMap[ranNum] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn selArray;\n\t\t}\n\n\n\t\t\n\t\tCentIndBusDir.displayBusinessResults = function(busResObj, numDispRes){\n\t\t\t\n\t\t\tvar widgetDiv = document.getElementById(\"businessWidget_14AD9D7E\");\n\t\t\tvar widgetParentDiv = document.getElementById(\"holds-businessWidget_14AD9D7E\");\n\t\t\t\n\t\t\t\n\t\t\tif(busResObj.premiumBusArray.length == 0\n\t\t\t\t\t\t\t&& busResObj.enhancedBusArray.length == 0 \n\t\t\t\t\t\t\t&& busResObj.basicBusArray.length == 0){\n\t\t\t\tthis.showEmptyResultsMessage(widgetDiv, widgetParentDiv);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tvar resultCount = this.addPremiumListings(busResObj.premiumBusArray, \n\t\t\t\t\t\t\t\t\twidgetDiv, numDispRes);\n\t\t\tresultCount += this.addEnhancedListings(busResObj.enhancedBusArray, \n\t\t\t\t\t\t\t\t\twidgetDiv, numDispRes - resultCount);\n\t\t\tthis.addBasicListings(busResObj.basicBusArray, widgetDiv, numDispRes - resultCount);\n\t\t\t\n\t\t\tCentIndBusDir.addMoreLink(widgetDiv);\n\t\t}\n\t\t\n\t\tCentIndBusDir.addMoreLink = function(divElem){\n\t\t\tdivElem.innerHTML += \"<div><a href=\'\" + moreURL \n\t\t\t\t\t\t\t\t+ \"\'> Search LocalMole.co.uk Now </a></div>\";\n\t\t}\n\t\t\n\t\tCentIndBusDir.addListingToMap = function(busObj){\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\tCentIndBusDir.addPremiumListings = function(busArray, divElem, numDispRes){\n\t\t\t\n\t\t\tif(busArray.length == 0 || numDispRes <= 0)\n\t\t\t\treturn 0;\n\t\t\t\n\t\t\t\n\t\t\tif(busArray.length < numDispRes){\n\t\t\t\t\n\t\t\t\tvar indArr = this.getSelectionIndexes(busArray.length, busArray.length-1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tvar indArr = this.getSelectionIndexes(numDispRes, busArray.length-1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(var i=0; i<indArr.length; ++i){\n\t\t\t\tvar busObj = busArray[indArr[i]];\n\t\t\t\tvar htmlStr = \"<div>\";\n\t\t\t\t\n\t\t\t\t\thtmlStr += \"<a href=\'\" + busObj.URL + \n\t\t\t\t\t\t\"\'><img src=\'\" + busObj.IMAGEURL +   \n\t\t\t\t\t\t\"\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a>\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\thtmlStr += \"<h5><a href=\'\" + busObj.URL + \"\'>\" + busObj.NAME + \"</a></h5>\";\n\t\t\t\t\thtmlStr += \"<p><a href=\'\" + busObj.URL + \"\'> Contact details </a></p>\";\n\t\t\t\t\t\n\t\t\t\t\tif(busObj.BUSTYPE != undefined || busObj.LOCATION != undefined){\n\t\t\t\t\t\thtmlStr += \"<p><a href=\'\" + busObj.MORELIKETHISURL + \"\'>More \"; \n\t\t\t\t\t\thtmlStr += busObj.BUSTYPE + \" in \" + busObj.LOCATION + \" </a></p>\";\n\t\t\t\t\t}\n\t\t\t\t\thtmlStr += \"</div>\";\n\t\t\t\t\tdivElem.innerHTML += htmlStr;\n\t\t\t\t}\n\t\t\t\tif (moreURL == \'\'){\n\t\t\t\t\tmoreURL = busObj.MOREURL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn indArr.length;\n\t\t\t}\n\t\t\n\t\t\tCentIndBusDir.addEnhancedListings = function(busArray, divElem, numDispRes){\n\t\t\t\n\t\t\tif(busArray.length == 0 || numDispRes <= 0)\n\t\t\t\treturn 0;\n\t\t\t\n\t\t\t\n\t\t\tif(busArray.length < numDispRes){\n\t\t\t\t\n\t\t\t\tvar indArr = this.getSelectionIndexes(busArray.length, busArray.length-1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tvar indArr = this.getSelectionIndexes(numDispRes, busArray.length-1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(var i=0; i<indArr.length; ++i){\n\t\t\t\tvar busObj = busArray[indArr[i]];\n\t\t\t\tvar htmlStr = \"<div>\";\n\t\t\t\t\n\t\t\t\t\thtmlStr += \"<a href=\'\" + busObj.URL + \n\t\t\t\t\t\t\"\'><img src=\'\" + busObj.IMAGEURL +   \n\t\t\t\t\t\t\"\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a>\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\thtmlStr += \"<h5><a href=\'\" + busObj.URL + \"\'>\" + busObj.NAME + \"</a></h5>\";\n\t\t\t\t\thtmlStr += \"<p><a href=\'\" + busObj.URL + \"\'> Contact details </a></p>\";\n\t\t\t\t\t\n\t\t\t\t\tif(busObj.BUSTYPE != undefined || busObj.LOCATION != undefined){\n\t\t\t\t\t\thtmlStr += \"<p><a href=\'\" + busObj.MORELIKETHISURL + \"\'>More \"; \n\t\t\t\t\t\thtmlStr += busObj.BUSTYPE + \" in \" + busObj.LOCATION + \" </a></p>\";\n\t\t\t\t\t}\n\t\t\t\t\thtmlStr += \"</div>\";\n\t\t\t\t\tdivElem.innerHTML += htmlStr;\n\t\t\t\t}\n\t\t\t\tif (moreURL == \'\'){\n\t\t\t\t\tmoreURL = busObj.MOREURL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn indArr.length;\n\t\t\t}\n\t\t\n\t\t\tCentIndBusDir.addBasicListings = function(busArray, divElem, numDispRes){\n\t\t\t\n\t\t\tif(busArray.length == 0 || numDispRes <= 0)\n\t\t\t\treturn 0;\n\t\t\t\n\t\t\t\n\t\t\tif(busArray.length < numDispRes){\n\t\t\t\t\n\t\t\t\tvar indArr = this.getSelectionIndexes(busArray.length, busArray.length-1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tvar indArr = this.getSelectionIndexes(numDispRes, busArray.length-1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor(var i=0; i<indArr.length; ++i){\n\t\t\t\tvar busObj = busArray[indArr[i]];\n\t\t\t\tvar htmlStr = \"<div>\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\thtmlStr += \"<h5><a href=\'\" + busObj.URL + \"\'>\" + busObj.NAME + \"</a></h5>\";\n\t\t\t\t\thtmlStr += \"<p><a href=\'\" + busObj.URL + \"\'> Contact details </a></p>\";\n\t\t\t\t\t\n\t\t\t\t\tif(busObj.BUSTYPE != undefined || busObj.LOCATION != undefined){\n\t\t\t\t\t\thtmlStr += \"<p><a href=\'\" + busObj.MORELIKETHISURL + \"\'>More \"; \n\t\t\t\t\t\thtmlStr += busObj.BUSTYPE + \" in \" + busObj.LOCATION + \" </a></p>\";\n\t\t\t\t\t}\n\t\t\t\t\thtmlStr += \"</div>\";\n\t\t\t\t\tdivElem.innerHTML += htmlStr;\n\t\t\t\t}\n\t\t\t\tif (moreURL == \'\'){\n\t\t\t\t\tmoreURL = busObj.MOREURL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn indArr.length;\n\t\t\t}\n\t\t\n\t\t\t\t\t\n\t\t\n\t\tCentIndBusDir.showEmptyResultsMessage = function(widgetDiv, widgetParentDiv){\n\t\t\twidgetDiv.innerHTML = \"<p>Server connection down.</p>\";\n\t\t\t\n\t\t\twidgetParentDiv.className += \' lm-no-results\';\n\t\t}\n\t\t\n\t\t\n\t\tCentIndBusDir.displayBusinessResults(z14AD9D7F, z14AD9D7F.numDisplayResults);\n\t//]]>\n\t</script>\n');
