/* cached (type 2) @ Sun, 12 Feb 2012 10:47:27 GMT, sid=12  */
			//JS object: objectid=23265590 datasource=ayrshirepost method=javascript_default
document.write('\n\t\n\t<div class=\"span-31 last box lm-text-ads\" id=\"holds-businessWidget_6BBF1011\">\n\t\t\n\t\t<div class=\"one-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_6BBF1011\">\n\t\t\t\t\t\n\t\t\t\t\t<noscript><div><a href=\'http://www.localmole.co.uk/Business/corran_inn_01294_4710001\'><img src=\'http://resources.centralindex.com/c/corran_inn_ka21_5sh/4fa9c448-1961-4a23-99a6-c8809cee437a.jpg\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a><h5><a href=\'http://www.localmole.co.uk/Business/corran_inn_01294_4710001\'>Corran Inn</a></h5><p><a href=\'http://www.localmole.co.uk/Business/corran_inn_01294_4710001\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/KA7%2B2HT/Restaurants\'>More Restaurants in KA7 2HT </a></p></div><div><a href=\'http://www.localmole.co.uk/Business/the_coyle_water_fishery_01292_5714901\'><img src=\'http://resources.centralindex.com/t/the_coyle_water_fishery_ka6_6lz/1b2359d8-9611-4844-8309-28560bd6a2e3.jpg\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a><h5><a href=\'http://www.localmole.co.uk/Business/the_coyle_water_fishery_01292_5714901\'>The Coyle Water Fishery</a></h5><p><a href=\'http://www.localmole.co.uk/Business/the_coyle_water_fishery_01292_5714901\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/KA7%2B2HT/Fish+Farms\'>More Fish Farms in KA7 2HT </a></p></div><div><a href=\'http://www.localmole.co.uk/Business/3981871_2\'><img src=\'http://resources.centralindex.com/s/saffys_cafe_bar_and_brasserie/36d985cd-5051-4354-87c7-28db3623579b.jpg\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a><h5><a href=\'http://www.localmole.co.uk/Business/3981871_2\'>Saffys Cafe Bar And Brasserie</a></h5><p><a href=\'http://www.localmole.co.uk/Business/3981871_2\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/KA7%2B2HT/Restaurants\'>More Restaurants in KA7 2HT </a></p></div><div><a href=\'http://www.localmole.co.uk/Business/the_rupee_room_01292_283_0021\'><img src=\'http://resources.centralindex.com/t/the_rupee_room/91daed01-e289-49ac-a6c5-74b5a24d7f76.jpg\' alt=\'\' width=\'60\' style=\'max-height:40px\' /></a><h5><a href=\'http://www.localmole.co.uk/Business/the_rupee_room_01292_283_0021\'>The Rupee Room</a></h5><p><a href=\'http://www.localmole.co.uk/Business/the_rupee_room_01292_283_0021\'> Contact details </a></p><p><a href=\'http://www.localmole.co.uk/Find-business/KA7%2B2HT/Restaurants\'>More Restaurants in KA7 2HT </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 z6BBF1012 = new Object();\n\t\tvar CentIndBusDir = new Object();\n\t\tvar moreURL = \'\';\n\t\t\n\t\tz6BBF1012.numDisplayResults = 4;\n\t\t\n\t\t\n\t\tz6BBF1012.premiumBusArray = [{\"LOCATION\":\"KA7 2HT\",\"NAME\":\"Corran Inn\",\"ADDRESS\":\"45 Jacks Road, Salcoats, Ayrshire, Salcoats, KA21 5SH\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/KA7%2B2HT\\/Restaurants\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/c\\/corran_inn_ka21_5sh\\/4fa9c448-1961-4a23-99a6-c8809cee437a.jpg\",\"LONGITUDE\":\"-4.49411120000002\",\"WEBCARDID\":\"1e3e0a69c0d4f496eab415b5ea14f163\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/corran_inn_01294_4710001\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Restaurants\",\"LATITUDE\":\"55.4546639\"},{\"LOCATION\":\"KA7 2HT\",\"NAME\":\"The Coyle Water Fishery\",\"ADDRESS\":\"Coyle Brae House, Shieldmains Farm, Coylton, Coylton, KA6 6LZ\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/KA7%2B2HT\\/Fish+Farms\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/t\\/the_coyle_water_fishery_ka6_6lz\\/1b2359d8-9611-4844-8309-28560bd6a2e3.jpg\",\"LONGITUDE\":\"-4.51776229999996\",\"WEBCARDID\":\"e78270b57e5434afc2911a230e06b259\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/the_coyle_water_fishery_01292_5714901\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Fish Farms\",\"LATITUDE\":\"55.4451127\"},{\"LOCATION\":\"KA7 2HT\",\"NAME\":\"Saffys Cafe Bar And Brasserie\",\"ADDRESS\":\"2 Dalblair Road Ayr, Ayr, KA7 1UL\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/KA7%2B2HT\\/Restaurants\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/s\\/saffys_cafe_bar_and_brasserie\\/36d985cd-5051-4354-87c7-28db3623579b.jpg\",\"LONGITUDE\":\"-4.63198\",\"WEBCARDID\":\"eb376e7853dfd99a671dd026ea98b352\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/3981871_2\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Restaurants\",\"LATITUDE\":\"55.4595\"},{\"LOCATION\":\"KA7 2HT\",\"NAME\":\"The Rupee Room\",\"ADDRESS\":\"26 Wellington Square, Ayr, Ayr, KA7 1HH\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/KA7%2B2HT\\/Restaurants\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/t\\/the_rupee_room\\/91daed01-e289-49ac-a6c5-74b5a24d7f76.jpg\",\"LONGITUDE\":\"-4.63516359999994\",\"WEBCARDID\":\"46fbc4242e98a1e27448abc89f2a426a\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/the_rupee_room_01292_283_0021\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Restaurants\",\"LATITUDE\":\"55.4608402\"},{\"LOCATION\":\"KA7 2HT\",\"NAME\":\"Browne\'s Restaurant At Enterkine House Hotel\",\"ADDRESS\":\"Enterkine Country House, Ayrshire, Ayrshire, KA6 5AL\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/KA7%2B2HT\\/Restaurants\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/b\\/browne_s_restaurant_at_enterkine_house_hotel\\/2d318bcc-4617-42ba-bab9-890301ec85ad.jpg\",\"LONGITUDE\":\"-4.50052479999999\",\"WEBCARDID\":\"cbea6a9c3038a3047e75b250e4514982\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/browne_s_restaurant_at_enterkine_house_hotel_01292_5205801\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Restaurants\",\"LATITUDE\":\"55.4810547\"},{\"LOCATION\":\"KA7 2HT\",\"NAME\":\"Donald Ross Estate Agents\",\"ADDRESS\":\"11 Beresford Terrace, Ayr, Ayr, KA7 2ER\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/KA7%2B2HT\\/Estate+Agents\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/d\\/donald_ross_estate_agents\\/web_28_4470269_CropperCapture[328]_l.jpg\",\"LONGITUDE\":\"-4.62893\",\"WEBCARDID\":\"b99b3e27acd7afcf95cad6720b5441ed\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/4470269_1\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Estate Agents\",\"LATITUDE\":\"55.4575\"},{\"LOCATION\":\"KA7 2HT\",\"NAME\":\"Lomond Estate Agents\",\"ADDRESS\":\"26, Parkhouse Street, Ayr, Ayrshire, Ayr, KA7 2HH\",\"LISTINGLEVEL\":\"PREMIUM\",\"MORELIKETHISURL\":\"http:\\/\\/www.localmole.co.uk\\/Find-business\\/KA7%2B2HT\\/Estate+Agents\",\"IMAGEURL\":\"http:\\/\\/resources.centralindex.com\\/l\\/lomond\\/15ef7501-ded8-4cfd-ac86-31b21d46510a.jpg\",\"LONGITUDE\":\"-4.61096\",\"WEBCARDID\":\"9281c35af276aaf5040183f071075c42\",\"URL\":\"http:\\/\\/www.localmole.co.uk\\/Business\\/5160491_1\",\"MOREURL\":\"http:\\/\\/www.localmole.co.uk\",\"BUSTYPE\":\"Estate Agents\",\"LATITUDE\":\"55.4985\"}];\n\t\tz6BBF1012.enhancedBusArray = [];\n\t\tz6BBF1012.basicBusArray = [];\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_6BBF1011\");\n\t\t\tvar widgetParentDiv = document.getElementById(\"holds-businessWidget_6BBF1011\");\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(z6BBF1012, z6BBF1012.numDisplayResults);\n\t//]]>\n\t</script>\n');<!-- Served by SID: 15 status: 0 writing to disk: YES -->

