			var st701_shops_corp = new Array();
	
			st701_shops_corp["id"] = "813";
			st701_shops_corp["registered_name"] = "Spa Automotive";
			st701_shops_corp["corporate_logo"] = "http://img.st701.com/corp_logos/813_fo.jpg";
			st701_shops_corp["xml_hash"] = "2rieezte3cmcsscckwgw4o0gg";
	
var st701_shops_ad = new Array();


						
		st701_shops_ad[0] = new Array();
		st701_shops_ad[0]["type"] = "Service";
		st701_shops_ad[0]["title"] = "Professional Car Polishing/ Waxing";
		st701_shops_ad[0]["title_full"] = "Professional Car Polishing/ Waxing";
		st701_shops_ad[0]["link"] = "http://shops.st701.com/shops/view/144376";
		st701_shops_ad[0]["category"] = "Other Business Products &amp; Services";
		st701_shops_ad[0]["price"] = "N.A.";
		st701_shops_ad[0]["photo"] = "http://img.st701.com/ads/shops/2009/04/28/a048886eadedabdbeddf1bd71d341429_t.jpg";
		st701_shops_ad[0]["type"] = "Service";
		st701_shops_ad[0]["publish"] = "2009-11-21 09:31:33";
		st701_shops_ad[0]["sold"] = "0";
		st701_shops_ad[0]["description"] = "Want to get that shine for your precious car?\n \nTo keep it buff and clean (like bikini waxing!), come to Spa Automo...";
					
		st701_shops_ad[1] = new Array();
		st701_shops_ad[1]["type"] = "Service";
		st701_shops_ad[1]["title"] = "Professional After Sales Service with Warranty @ Spa Automotive";
		st701_shops_ad[1]["title_full"] = "Professional After Sales Service with Warranty @ Spa Automotive";
		st701_shops_ad[1]["link"] = "http://shops.st701.com/shops/view/144362";
		st701_shops_ad[1]["category"] = "Others";
		st701_shops_ad[1]["price"] = "N.A.";
		st701_shops_ad[1]["photo"] = "http://img.st701.com/ads/shops/2009/04/28/1fb59f196ee776a5a72ed778ccd9f574_t.jpg";
		st701_shops_ad[1]["type"] = "Service";
		st701_shops_ad[1]["publish"] = "2009-11-21 09:30:13";
		st701_shops_ad[1]["sold"] = "0";
		st701_shops_ad[1]["description"] = "Spa Automotive is your friendly, trusted car servicing outfit that believes in providing quality services, customisab...";
					
		st701_shops_ad[2] = new Array();
		st701_shops_ad[2]["type"] = "Service";
		st701_shops_ad[2]["title"] = "Car Polishing/ Waxing/Washing Services @ Spa Automotive";
		st701_shops_ad[2]["title_full"] = "Car Polishing/ Waxing/Washing Services @ Spa Automotive";
		st701_shops_ad[2]["link"] = "http://shops.st701.com/shops/view/141909";
		st701_shops_ad[2]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[2]["price"] = "N.A.";
		st701_shops_ad[2]["photo"] = "http://img.st701.com/ads/shops/2009/05/20/c926b6fbc9a6dc0f1e07aa40dc377117_t.jpg";
		st701_shops_ad[2]["type"] = "Service";
		st701_shops_ad[2]["publish"] = "2009-11-21 09:29:23";
		st701_shops_ad[2]["sold"] = "0";
		st701_shops_ad[2]["description"] = "Spa Automotive is your trusted car service provider that offers professional and quality services & customisable pack...";
					
		st701_shops_ad[3] = new Array();
		st701_shops_ad[3]["type"] = "Service";
		st701_shops_ad[3]["title"] = "Professional After Sales Service with Warranty @ Spa Automotive";
		st701_shops_ad[3]["title_full"] = "Professional After Sales Service with Warranty @ Spa Automotive";
		st701_shops_ad[3]["link"] = "http://shops.st701.com/shops/view/141911";
		st701_shops_ad[3]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[3]["price"] = "N.A.";
		st701_shops_ad[3]["photo"] = "http://img.st701.com/ads/shops/2009/04/22/7b623b411f44749e817c5f6c929a2fa6_t.jpg";
		st701_shops_ad[3]["type"] = "Service";
		st701_shops_ad[3]["publish"] = "2009-11-21 09:28:53";
		st701_shops_ad[3]["sold"] = "0";
		st701_shops_ad[3]["description"] = "Spa Automotive is your friendly, trusted car servicing outfit that believes in providing quality services, customisab...";
					
		st701_shops_ad[4] = new Array();
		st701_shops_ad[4]["type"] = "Service";
		st701_shops_ad[4]["title"] = "Professional Car Polishing/ Waxing";
		st701_shops_ad[4]["title_full"] = "Professional Car Polishing/ Waxing";
		st701_shops_ad[4]["link"] = "http://shops.st701.com/shops/view/142125";
		st701_shops_ad[4]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[4]["price"] = "N.A.";
		st701_shops_ad[4]["photo"] = "http://img.st701.com/ads/shops/2009/04/23/19c1e162ccf7fd27b4a339b7b80461d9_t.jpg";
		st701_shops_ad[4]["type"] = "Service";
		st701_shops_ad[4]["publish"] = "2009-11-21 09:28:42";
		st701_shops_ad[4]["sold"] = "0";
		st701_shops_ad[4]["description"] = "Want to get that shine for your precious car?\n \nTo keep it buff and clean (like bikini waxing!), come to Spa Automo...";
					
		st701_shops_ad[5] = new Array();
		st701_shops_ad[5]["type"] = "Product";
		st701_shops_ad[5]["title"] = "Accessorise your Car with Stylish Audio/Interior/Car Parts Pdts!";
		st701_shops_ad[5]["title_full"] = "Accessorise your Car with Stylish Audio/Interior/Car Parts Pdts!";
		st701_shops_ad[5]["link"] = "http://shops.st701.com/shops/view/141772";
		st701_shops_ad[5]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[5]["price"] = "N.A.";
		st701_shops_ad[5]["photo"] = "http://img.st701.com/ads/shops/2009/04/22/b5738089015ba33eb0858b51d054c859_t.jpg";
		st701_shops_ad[5]["type"] = "Product";
		st701_shops_ad[5]["publish"] = "2009-11-21 09:28:29";
		st701_shops_ad[5]["sold"] = "0";
		st701_shops_ad[5]["description"] = "For those who view your car as more than just a mode of transportation, Spa Automotive offers you stylish yet functio...";
					
		st701_shops_ad[6] = new Array();
		st701_shops_ad[6]["type"] = "Service";
		st701_shops_ad[6]["title"] = "Get your Car Accessories for Phone/MP3/Car Seats/Interior";
		st701_shops_ad[6]["title_full"] = "Get your Car Accessories for Phone/MP3/Car Seats/Interior";
		st701_shops_ad[6]["link"] = "http://shops.st701.com/shops/view/142127";
		st701_shops_ad[6]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[6]["price"] = "N.A.";
		st701_shops_ad[6]["photo"] = "http://img.st701.com/ads/shops/2009/05/20/0fa2f4f75699ce4138b1c92ca130afca_t.jpg";
		st701_shops_ad[6]["type"] = "Service";
		st701_shops_ad[6]["publish"] = "2009-11-21 09:28:02";
		st701_shops_ad[6]["sold"] = "0";
		st701_shops_ad[6]["description"] = "Get your Car Accessories for Phone/MP3/Car Seats/Interior\n\nSpa Automotive is a leading car servicing company that t...";
					
		st701_shops_ad[7] = new Array();
		st701_shops_ad[7]["type"] = "Service";
		st701_shops_ad[7]["title"] = "Spa Automotive &#45; Reliable Premium One&#45;stop Car Shop";
		st701_shops_ad[7]["title_full"] = "Spa Automotive &#45; Reliable Premium One&#45;stop Car Shop";
		st701_shops_ad[7]["link"] = "http://shops.st701.com/shops/view/141882";
		st701_shops_ad[7]["category"] = "Tech &amp; Gadgets";
		st701_shops_ad[7]["price"] = "N.A.";
		st701_shops_ad[7]["photo"] = "http://img.st701.com/ads/shops/2009/04/22/6b1e3066e7cb07cbe0cba62545889fe4_t.jpg";
		st701_shops_ad[7]["type"] = "Service";
		st701_shops_ad[7]["publish"] = "2009-11-21 09:27:46";
		st701_shops_ad[7]["sold"] = "0";
		st701_shops_ad[7]["description"] = "Spa Automotive - Reliable Premium One-stop Car Shop\n\nSpa Automotive is a premium one-stop car shop you can rely on ...";
					
		st701_shops_ad[8] = new Array();
		st701_shops_ad[8]["type"] = "Service";
		st701_shops_ad[8]["title"] = "Professional Car Polishing/ Waxing";
		st701_shops_ad[8]["title_full"] = "Professional Car Polishing/ Waxing";
		st701_shops_ad[8]["link"] = "http://shops.st701.com/shops/view/141930";
		st701_shops_ad[8]["category"] = "Others";
		st701_shops_ad[8]["price"] = "N.A.";
		st701_shops_ad[8]["photo"] = "http://img.st701.com/ads/shops/2009/05/20/bf171a1d6dbcff88b820e5209fdb67d3_t.jpg";
		st701_shops_ad[8]["type"] = "Service";
		st701_shops_ad[8]["publish"] = "2009-11-21 09:27:32";
		st701_shops_ad[8]["sold"] = "0";
		st701_shops_ad[8]["description"] = "Want to get that shine for your precious car?\n \nTo keep it buff and clean (like bikini waxing!), come to Spa Automo...";
					
		st701_shops_ad[9] = new Array();
		st701_shops_ad[9]["type"] = "Service";
		st701_shops_ad[9]["title"] = "Get your Car Accessories for Phone/MP3/Car Seats/Interior";
		st701_shops_ad[9]["title_full"] = "Get your Car Accessories for Phone/MP3/Car Seats/Interior";
		st701_shops_ad[9]["link"] = "http://shops.st701.com/shops/view/141910";
		st701_shops_ad[9]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[9]["price"] = "N.A.";
		st701_shops_ad[9]["photo"] = "http://img.st701.com/ads/shops/2009/04/22/368211d39c2bd1acdcbb4ceb6265dab4_t.jpg";
		st701_shops_ad[9]["type"] = "Service";
		st701_shops_ad[9]["publish"] = "2009-11-20 10:40:18";
		st701_shops_ad[9]["sold"] = "0";
		st701_shops_ad[9]["description"] = "Spa Automotive is a leading car servicing company that takes pride in providing professional services & customisable ...";
					
		st701_shops_ad[10] = new Array();
		st701_shops_ad[10]["type"] = "Service";
		st701_shops_ad[10]["title"] = "Professional Car Polishing/ Waxing";
		st701_shops_ad[10]["title_full"] = "Professional Car Polishing/ Waxing";
		st701_shops_ad[10]["link"] = "http://shops.st701.com/shops/view/141768";
		st701_shops_ad[10]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[10]["price"] = "N.A.";
		st701_shops_ad[10]["photo"] = "http://img.st701.com/ads/shops/2009/04/22/7a48f38817956b5159ba5a305247faec_t.jpg";
		st701_shops_ad[10]["type"] = "Service";
		st701_shops_ad[10]["publish"] = "2009-11-19 10:01:16";
		st701_shops_ad[10]["sold"] = "0";
		st701_shops_ad[10]["description"] = "Want to get that shine for your precious car?\n \nTo keep it buff and clean (like bikini waxing!), come to Spa Automo...";
					
		st701_shops_ad[11] = new Array();
		st701_shops_ad[11]["type"] = "Service";
		st701_shops_ad[11]["title"] = "Spa Auto &#40;Car Washing/ Polishing/  Waxing/ Accessories&#41;";
		st701_shops_ad[11]["title_full"] = "Spa Auto &#40;Car Washing/ Polishing/  Waxing/ Accessories&#41;";
		st701_shops_ad[11]["link"] = "http://shops.st701.com/shops/view/141763";
		st701_shops_ad[11]["category"] = "Others";
		st701_shops_ad[11]["price"] = "N.A.";
		st701_shops_ad[11]["photo"] = "http://img.st701.com/ads/shops/2009/05/20/66534193452079dbb275bd19ad1cb330_t.jpg";
		st701_shops_ad[11]["type"] = "Service";
		st701_shops_ad[11]["publish"] = "2009-11-19 09:38:04";
		st701_shops_ad[11]["sold"] = "0";
		st701_shops_ad[11]["description"] = "Spa Auto (Car Washing/ Polishing/  Waxing/ Accessories)\n\nOur products and services include:\n\n- Car accessories \n...";
					
		st701_shops_ad[12] = new Array();
		st701_shops_ad[12]["type"] = "Service";
		st701_shops_ad[12]["title"] = "Wire up your Car and Zoom away in Style!";
		st701_shops_ad[12]["title_full"] = "Wire up your Car and Zoom away in Style!";
		st701_shops_ad[12]["link"] = "http://shops.st701.com/shops/view/141915";
		st701_shops_ad[12]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[12]["price"] = "N.A.";
		st701_shops_ad[12]["photo"] = "http://img.st701.com/ads/shops/2009/04/22/8407f2531e3aec0b39bc71f2f3996058_t.jpg";
		st701_shops_ad[12]["type"] = "Service";
		st701_shops_ad[12]["publish"] = "2009-11-19 09:29:53";
		st701_shops_ad[12]["sold"] = "0";
		st701_shops_ad[12]["description"] = "Custom wiring a car from scratch takes time, cost money and involves peering at your car wiring diagram a lot! Thus i...";
					
		st701_shops_ad[13] = new Array();
		st701_shops_ad[13]["type"] = "Service";
		st701_shops_ad[13]["title"] = "Spa Automotive &#45; Reliable Premium One&#45;stop Car Shop";
		st701_shops_ad[13]["title_full"] = "Spa Automotive &#45; Reliable Premium One&#45;stop Car Shop";
		st701_shops_ad[13]["link"] = "http://shops.st701.com/shops/view/142126";
		st701_shops_ad[13]["category"] = "Car Accessories &amp; Modifications";
		st701_shops_ad[13]["price"] = "N.A.";
		st701_shops_ad[13]["photo"] = "http://img.st701.com/ads/shops/2009/04/23/fea6a9aeeea136d6cf51c2b0cf43f1e8_t.jpg";
		st701_shops_ad[13]["type"] = "Service";
		st701_shops_ad[13]["publish"] = "2009-11-19 09:27:37";
		st701_shops_ad[13]["sold"] = "0";
		st701_shops_ad[13]["description"] = "Whether you are looking for car accessory/accessories, car wax, car polish or any aspect of vehicle electrical work, ...";
	
				
	// This is an example rendering, this is called only once during page load.
	function st701_shops_render() {
		document.writeln('<table class="st701_ad_row">');
		if (st701_shops_ad) {
			with (document) {
				writeln('<tr>');
				
								
				writeln('<th class="st701_ad_row_header1">Photo</th>');
				writeln('<th class="st701_ad_row_header2">Title</th>');
				writeln('<th class="st701_ad_row_header3">Price</th>');
				writeln('<th class="st701_ad_row_header4">Type</th>');
				writeln('<th class="st701_ad_row_header5">Date Posted</th>');
				
								
				writeln('</tr>');
			}
			for (var i=0; i < st701_shops_ad.length; i++) {
				if (st701_shops_ad[i]['sold'] == "1")
					sSold = '<div class="st701_ad_row_sold">(SOLD)</div>';
				else
					sSold = '';
				
				with(document) {
					writeln('<tr>');
						
										
					writeln('<td class="st701_ad_row_data1"><a target="_blank" href="' + st701_shops_ad[i]['link'] + '"><img src="' + st701_shops_ad[i]['photo'] + '" border="0" title="' + st701_escape_quote(st701_shops_ad[i]['title_full']) + '" /></a></td>');
					writeln('<td class="st701_ad_row_data2"><div><a target="_blank" href="' + st701_shops_ad[i]['link'] + '" title="' + st701_escape_quote(st701_shops_ad[i]['title_full']) + '">' + st701_shops_ad[i]['title'] + '</a></div></td>');
					writeln('<td class="st701_ad_row_data3">' + st701_shops_ad[i]['price'] + ' ' + sSold + '</td>');
					writeln('<td class="st701_ad_row_data4">' + st701_shops_ad[i]['type'] + '</td>');
					writeln('<td class="st701_ad_row_data5">' + showDate(st701_shops_ad[i]['publish'], true) + '</td>');
					
										
					writeln('</tr>');
				}
			}
		}
		document.writeln("</table>");
	}

	function showDate(s, st) {
		var r = "";
		var Y; var M; var D;
		var h; var m; var s;
		if (s.length == 19) {
			//yyyy-mm-dd hh:mm:ss
			Y = toNumber(s.substr(0,4));
			M = toNumber(s.substr(5,2));
			D = s.substr(8,2);
			h = toNumber(s.substr(11,2));
			m = s.substr(14,2);
			s = toNumber(s.substr(17,2));
			r = D + "-" + monthToName(M) + "-" + Y;
			if (st) r += " " + hour12(h) + ":" + m + AMPM(h)
		}
		return r;
	}
	
	function monthToName(n) {
		var monthnames = new Array("Month", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
		return monthnames[n];
	}
	
	function AMPM(n) {
		if (n < 12) return "AM";
		else return "PM";
	}
	
	function hour12(n) {
		if (n == 0) return 12;
		else if (n > 12) return n - 12;
		else return n;
	}
	
	function toNumber(n) {
		var regexp = /^0+/;
		n = n.replace(regexp, "");
		return parseInt(n);
	}
	
	function st701_escape_quote(s) {
		return s.replace(/\"/g, "&quot;");
	}
	
		
	function showPopup(n, s) {
		if (n == 1) {
			window.open(s, '', 'scrollbars=1,width=762,height=700,menubar=0,location=0');
			return false;
		} else {
			return true;
		}
	}
	
	st701_shops_render();
	