/* cached (type 2) @ Fri, 10 Feb 2012 06:36:13 GMT, sid=15  */
			//JS object: objectid=23976854 datasource=hamiltonadv method=javascript_default
document.write('\n\t\n\t<div class=\"span-31 last box lm-text-ads\" id=\"holds-businessWidget_FBC3D463\">\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_FBC3D463\">\n\t\t\t\t\t\n\t\t\t\t\t<noscript><div><a href=\'http://www.localmole.co.uk/Business/5343664_1\'><img src=\'http://resources.centralindex.com/s/strathclyde_auto_tune/web_28_5343664_strathclyde_auto_l.gif\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a><h5><a href=\'http://www.localmole.co.uk/Business/5343664_1\'>Strathclyde Auto Tune Ltd</a></h5><p><a href=\'http://www.localmole.co.uk/Business/5343664_1\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/Hamilton/Garages\'>More Garages in Hamilton </a></p></div><div><a href=\'http://www.localmole.co.uk/Business/4298937_2\'><img src=\'http://resources.centralindex.com/h/hallidays_garage/web_24_4298937_CropperCapture[336]_l.jpg\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a><h5><a href=\'http://www.localmole.co.uk/Business/4298937_2\'>Hallidays Garage</a></h5><p><a href=\'http://www.localmole.co.uk/Business/4298937_2\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/Hamilton/Garages\'>More Garages in Hamilton </a></p></div><div><a href=\'http://www.localmole.co.uk/Business/4769637_1\'><img src=\'http://resources.centralindex.com/a/a_k_m_autopoint/eb334dbe-7856-4223-8432-139719675d8d.jpg\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a><h5><a href=\'http://www.localmole.co.uk/Business/4769637_1\'>A K M Autopoint Ltd</a></h5><p><a href=\'http://www.localmole.co.uk/Business/4769637_1\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/Hamilton/Garages\'>More Garages in Hamilton </a></p></div><div><a href=\'http://www.localmole.co.uk/Business/4684261_2\'><img src=\'http://resources.centralindex.com/k/kingsway_mot_centre/web_24_4684261_KINGSWAY_l.JPG\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a><h5><a href=\'http://www.localmole.co.uk/Business/4684261_2\'>Kingsway Mot Centre</a></h5><p><a href=\'http://www.localmole.co.uk/Business/4684261_2\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/Hamilton/Garages\'>More Garages in Hamilton </a></p></div><div><h5><a href=\'http://www.localmole.co.uk/Business/3894662\'>Fred Mushett Independent Car Sales Ltd</a></h5><p><a href=\'http://www.localmole.co.uk/Business/3894662\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/Hamilton/Car+Dealers\'>More Car Dealers in Hamilton </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 zFBC3D464 = new Object();\n\t\tvar CentIndBusDir = new Object();\n\t\tvar moreURL = \'\';\n\t\t\n\t\tzFBC3D464.numDisplayResults = 20;\n\t\t\n\t\t\n\t\tzFBC3D464.premiumBusArray = [{\"LOCATION\":\"Hamilton\",\"NAME\":\"Strathclyde Auto Tune Ltd\",\"ADDRESS\":\"The Mill, Peacock Cross Ind Est, Hamilton, ML3 9AY\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/Hamilton\\/Garages\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/s\\/strathclyde_auto_tune\\/web_28_5343664_strathclyde_auto_l.gif\",\"LONGITUDE\":\"-4.05661\",\"WEBCARDID\":\"83d9a3fe76dc8567497624d98f264284\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/5343664_1\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Garages\",\"LATITUDE\":\"55.7792\"},{\"LOCATION\":\"Hamilton\",\"NAME\":\"Hallidays Garage\",\"ADDRESS\":\"143 Stewarton Street, Wishaw, ML2 8AG\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/Hamilton\\/Garages\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/h\\/hallidays_garage\\/web_24_4298937_CropperCapture[336]_l.jpg\",\"LONGITUDE\":\"-3.91615\",\"WEBCARDID\":\"977189cd306917893a2cdbf939ed4e77\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/4298937_2\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Garages\",\"LATITUDE\":\"55.7713\"},{\"LOCATION\":\"Hamilton\",\"NAME\":\"A K M Autopoint Ltd\",\"ADDRESS\":\"Unit 2, Canderside Ind Est, Carlisle Road, Larkhall, ML9 2TP\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/Hamilton\\/Garages\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/a\\/a_k_m_autopoint\\/eb334dbe-7856-4223-8432-139719675d8d.jpg\",\"LONGITUDE\":\"-3.96185\",\"WEBCARDID\":\"0f74029c7feb2a3019dd54160f069424\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/4769637_1\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Garages\",\"LATITUDE\":\"55.7201\"},{\"LOCATION\":\"Hamilton\",\"NAME\":\"Kingsway Mot Centre\",\"ADDRESS\":\"5 Glenfield Road, Kelvin Industrial Estate, East Kilbride, East Kilbride, G75 0RA\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/Hamilton\\/Garages\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/k\\/kingsway_mot_centre\\/web_24_4684261_KINGSWAY_l.JPG\",\"LONGITUDE\":\"-4.15981\",\"WEBCARDID\":\"0648b4045f3d324f17b121fb9be4fc8f\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/4684261_2\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Garages\",\"LATITUDE\":\"55.7502\"}];\n\t\tzFBC3D464.enhancedBusArray = [];\n\t\tzFBC3D464.basicBusArray = [{\"LOCATION\":\"Hamilton\",\"NAME\":\"Fred Mushett Independent Car Sales Ltd\",\"ADDRESS\":\"148 Almada Street, Hamilton, ML3 0EW\",\"LISTINGLEVEL\":\"FREE\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/Hamilton\\/Car+Dealers\",\"IMAGEURL\":\"http:\\/\\/www.localmole.co.uk\\/content\\/images\\/common\\/thumb-fake-ad.jpg\",\"LONGITUDE\":\"-4.05218\",\"WEBCARDID\":\"bff563f79817e11a4acfc91ba288a73c\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/3894662\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Car Dealers\",\"LATITUDE\":\"55.7783\"}];\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_FBC3D463\");\n\t\t\tvar widgetParentDiv = document.getElementById(\"holds-businessWidget_FBC3D463\");\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(zFBC3D464, zFBC3D464.numDisplayResults);\n\t//]]>\n\t</script>\n');

