			var st701_shops_corp = new Array();
	
			st701_shops_corp["id"] = "358";
			st701_shops_corp["registered_name"] = "KCS Medical Centre";
			st701_shops_corp["corporate_logo"] = "http://img.st701.com/corp_logos/358_Pe.jpg";
			st701_shops_corp["xml_hash"] = "6q1bguizp9s8so0ok8gkgcccg";
	
var st701_shops_ad = new Array();


						
		st701_shops_ad[0] = new Array();
		st701_shops_ad[0]["type"] = "Service";
		st701_shops_ad[0]["title"] = "KCS MEDICAL CENTRE – Your Specialist &amp; General Medical Centre";
		st701_shops_ad[0]["title_full"] = "KCS MEDICAL CENTRE – Your Specialist &amp; General Medical Centre";
		st701_shops_ad[0]["link"] = "http://shops.st701.com/shops/view/84928";
		st701_shops_ad[0]["category"] = "Beauty / Hair Care";
		st701_shops_ad[0]["price"] = "N.A.";
		st701_shops_ad[0]["photo"] = "http://img.st701.com/ads/shops/2008/11/21/78878b511d716ae34a10ac301526b3e2_t.jpg";
		st701_shops_ad[0]["type"] = "Service";
		st701_shops_ad[0]["publish"] = "2009-11-20 15:38:38";
		st701_shops_ad[0]["sold"] = "0";
		st701_shops_ad[0]["description"] = "Founded in 2004, KCS Medical Centre offers specialist medical care on aesthetic treatments as well as general practit...";
					
		st701_shops_ad[1] = new Array();
		st701_shops_ad[1]["type"] = "Service";
		st701_shops_ad[1]["title"] = "KCS MEDICAL CENTRE – Your Specialist &amp; General Medical Centre";
		st701_shops_ad[1]["title_full"] = "KCS MEDICAL CENTRE – Your Specialist &amp; General Medical Centre";
		st701_shops_ad[1]["link"] = "http://shops.st701.com/shops/view/95412";
		st701_shops_ad[1]["category"] = "Beauty / Hair Care";
		st701_shops_ad[1]["price"] = "N.A.";
		st701_shops_ad[1]["photo"] = "http://img.st701.com/ads/shops/2008/12/19/21838dd52ad8181248d8dc68e6eb6462_t.jpg";
		st701_shops_ad[1]["type"] = "Service";
		st701_shops_ad[1]["publish"] = "2009-11-20 15:38:33";
		st701_shops_ad[1]["sold"] = "0";
		st701_shops_ad[1]["description"] = "Founded in 2004, KCS Medical Centre offers specialist medical care on aesthetic treatments as well as general practit...";
					
		st701_shops_ad[2] = new Array();
		st701_shops_ad[2]["type"] = "Service";
		st701_shops_ad[2]["title"] = "Brighten your Eyes with Eye Bag Treatment @ KCS Medical Centre";
		st701_shops_ad[2]["title_full"] = "Brighten your Eyes with Eye Bag Treatment @ KCS Medical Centre";
		st701_shops_ad[2]["link"] = "http://shops.st701.com/shops/view/84930";
		st701_shops_ad[2]["category"] = "Others";
		st701_shops_ad[2]["price"] = "N.A.";
		st701_shops_ad[2]["photo"] = "http://img.st701.com/ads/shops/2008/11/21/db476d070131ea5b2d498086e70bdc49_t.jpg";
		st701_shops_ad[2]["type"] = "Service";
		st701_shops_ad[2]["publish"] = "2009-11-20 15:31:44";
		st701_shops_ad[2]["sold"] = "0";
		st701_shops_ad[2]["description"] = "Bothered by noticeable eye bags even though you have adequate sleep? \n\nA common complaint from young adults is the ...";
					
		st701_shops_ad[3] = new Array();
		st701_shops_ad[3]["type"] = "Service";
		st701_shops_ad[3]["title"] = "Feel good about yourself with Aesthetic treatments @ KCS MEDICAL";
		st701_shops_ad[3]["title_full"] = "Feel good about yourself with Aesthetic treatments @ KCS MEDICAL";
		st701_shops_ad[3]["link"] = "http://shops.st701.com/shops/view/84931";
		st701_shops_ad[3]["category"] = "Beauty / Hair Care";
		st701_shops_ad[3]["price"] = "N.A.";
		st701_shops_ad[3]["photo"] = "http://img.st701.com/ads/shops/2008/11/21/4eb3a4670b902dc7dc9a50134e21856f_t.jpg";
		st701_shops_ad[3]["type"] = "Service";
		st701_shops_ad[3]["publish"] = "2009-11-20 15:31:40";
		st701_shops_ad[3]["sold"] = "0";
		st701_shops_ad[3]["description"] = "Beauty is not just about looking good, it evokes the depth of human emotion within and beyond. \n\nAt KCS Medical Cen...";
					
		st701_shops_ad[4] = new Array();
		st701_shops_ad[4]["type"] = "Service";
		st701_shops_ad[4]["title"] = "Stay Blemish&#45;free with Acne Scars Treatment at KCS Medical";
		st701_shops_ad[4]["title_full"] = "Stay Blemish&#45;free with Acne Scars Treatment at KCS Medical";
		st701_shops_ad[4]["link"] = "http://shops.st701.com/shops/view/84927";
		st701_shops_ad[4]["category"] = "Spa / Facial / Relaxation";
		st701_shops_ad[4]["price"] = "N.A.";
		st701_shops_ad[4]["photo"] = "http://img.st701.com/ads/shops/2008/11/21/f0a86ed98185f88a2bd1f9d9c91ad646_t.jpg";
		st701_shops_ad[4]["type"] = "Service";
		st701_shops_ad[4]["publish"] = "2009-11-20 15:31:35";
		st701_shops_ad[4]["sold"] = "0";
		st701_shops_ad[4]["description"] = "Approved by the FDA 15 years ago, CO2 Laser Resurfacing is still considered the gold standard in treating acne scars....";
					
		st701_shops_ad[5] = new Array();
		st701_shops_ad[5]["type"] = "Service";
		st701_shops_ad[5]["title"] = "Chemical Peels for Smoother and Younger&#45;looking Skin";
		st701_shops_ad[5]["title_full"] = "Chemical Peels for Smoother and Younger&#45;looking Skin";
		st701_shops_ad[5]["link"] = "http://shops.st701.com/shops/view/84929";
		st701_shops_ad[5]["category"] = "Cosmetic / Make Up";
		st701_shops_ad[5]["price"] = "N.A.";
		st701_shops_ad[5]["photo"] = "http://img.st701.com/ads/shops/2008/11/21/305296f915e9034d3cd5235236677b6d_t.jpg";
		st701_shops_ad[5]["type"] = "Service";
		st701_shops_ad[5]["publish"] = "2009-11-20 15:31:29";
		st701_shops_ad[5]["sold"] = "0";
		st701_shops_ad[5]["description"] = "At KCS Medical Centre, we offer glycolic acid, saliclyate acid, lactic acid and tricloroacetic acid peels in differen...";
					
		st701_shops_ad[6] = new Array();
		st701_shops_ad[6]["type"] = "Service";
		st701_shops_ad[6]["title"] = "Restore your Youthful Appearance with Fractional CO2 Laser";
		st701_shops_ad[6]["title_full"] = "Restore your Youthful Appearance with Fractional CO2 Laser";
		st701_shops_ad[6]["link"] = "http://shops.st701.com/shops/view/84932";
		st701_shops_ad[6]["category"] = "Beauty / Hair Care";
		st701_shops_ad[6]["price"] = "N.A.";
		st701_shops_ad[6]["photo"] = "http://img.st701.com/ads/shops/2008/11/21/494cc501cac9c6ec5d9f4ef1cb07df1f_t.jpg";
		st701_shops_ad[6]["type"] = "Service";
		st701_shops_ad[6]["publish"] = "2009-11-20 15:31:22";
		st701_shops_ad[6]["sold"] = "0";
		st701_shops_ad[6]["description"] = "KCS Medical Centre is proud to offer its patients the benefits of fractional laser resurfacing. \n\nThis treatment ca...";
					
		st701_shops_ad[7] = new Array();
		st701_shops_ad[7]["type"] = "Product";
		st701_shops_ad[7]["title"] = "acne scars, large pores";
		st701_shops_ad[7]["title_full"] = "acne scars, large pores";
		st701_shops_ad[7]["link"] = "http://shops.st701.com/shops/view/125877";
		st701_shops_ad[7]["category"] = "Others";
		st701_shops_ad[7]["price"] = "S$ 800.00";
		st701_shops_ad[7]["photo"] = "http://img.st701.com/ads/shops/2009/03/12/14b74fbe61b55d9eab2a5c820e799bdc_t.jpg";
		st701_shops_ad[7]["type"] = "Product";
		st701_shops_ad[7]["publish"] = "2009-11-19 22:07:34";
		st701_shops_ad[7]["sold"] = "0";
		st701_shops_ad[7]["description"] = "KCS medical centre is a one stop centre for your medical needs. All our doctors are qualified and equipped with Grad ...";
					
		st701_shops_ad[8] = new Array();
		st701_shops_ad[8]["type"] = "Service";
		st701_shops_ad[8]["title"] = "oxygen JET peel";
		st701_shops_ad[8]["title_full"] = "oxygen JET peel";
		st701_shops_ad[8]["link"] = "http://shops.st701.com/shops/view/125876";
		st701_shops_ad[8]["category"] = "Others";
		st701_shops_ad[8]["price"] = "S$ 200.00";
		st701_shops_ad[8]["photo"] = "http://img.st701.com/ads/shops/2009/03/12/ce0e2922c85470aa14b93f1e2f1b0d4c_t.jpg";
		st701_shops_ad[8]["type"] = "Service";
		st701_shops_ad[8]["publish"] = "2009-11-19 22:06:26";
		st701_shops_ad[8]["sold"] = "0";
		st701_shops_ad[8]["description"] = "KCS medical centre is a one stop centre for your medical needs. All our doctors are qualified and equipped with Grad ...";
					
		st701_shops_ad[9] = new Array();
		st701_shops_ad[9]["type"] = "Service";
		st701_shops_ad[9]["title"] = "IPL hair removal";
		st701_shops_ad[9]["title_full"] = "IPL hair removal";
		st701_shops_ad[9]["link"] = "http://shops.st701.com/shops/view/125875";
		st701_shops_ad[9]["category"] = "Dental / Medical Services";
		st701_shops_ad[9]["price"] = "N.A.";
		st701_shops_ad[9]["photo"] = "http://img.st701.com/ads/shops/2009/03/12/b777c9b95d6af0d64d6b2fd9f643ad12_t.jpg";
		st701_shops_ad[9]["type"] = "Service";
		st701_shops_ad[9]["publish"] = "2009-11-19 22:03:10";
		st701_shops_ad[9]["sold"] = "0";
		st701_shops_ad[9]["description"] = "KCS medical centre is a one stop centre for your medical needs. All our doctors are qualified and equipped with Grad ...";
					
		st701_shops_ad[10] = new Array();
		st701_shops_ad[10]["type"] = "Product";
		st701_shops_ad[10]["title"] = "fractional laser resurfacing for acne scars";
		st701_shops_ad[10]["title_full"] = "fractional laser resurfacing for acne scars";
		st701_shops_ad[10]["link"] = "http://shops.st701.com/shops/view/125874";
		st701_shops_ad[10]["category"] = "Others";
		st701_shops_ad[10]["price"] = "S$ 800.00";
		st701_shops_ad[10]["photo"] = "http://img.st701.com/ads/shops/2009/03/12/4e036f0c9e4360b380c9b55d2aa9fa1b_t.jpg";
		st701_shops_ad[10]["type"] = "Product";
		st701_shops_ad[10]["publish"] = "2009-11-19 21:59:55";
		st701_shops_ad[10]["sold"] = "0";
		st701_shops_ad[10]["description"] = "KCS medical centre is a one stop centre for your medical needs. All our doctors are qualified and equipped with Grad ...";
	
				
	// 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();
	