﻿$(document).ready(function() {
	var tsid = $.url.param("ts");
	var tspath = "tradeshows/2009/";

	switch(tsid){
		case "0312_ima":
			$("#tstitle").text("IPACK-IMA");
			$("#tstext").text("Location: Milano, Italy");
			showflash(tsid);
			break;
					
		case "0409_cisile":
			$("#tstitle").text("CISILE");
			$("#tstext").text("Location: Beijing, China ");
			showflash(tsid);
			break;
					
		case "0420_ncse":
			$("#tstitle").text("National Chromatography Symposium and Exhibition");
			$("#tstext").text("Location: Changsha, China ");		
			showflash(tsid);
			break;
					
		case "0525_bisilee":
			$("#tstitle").text("Bohai International Scientific Instrument and Laboratory Equipment Exhibition");
			$("#tstext").text("Location: Tianjin, China ");
			showflash(tsid);
			break;

		case "0526_fce":
			$("#tstitle").text("CISILE");
			$("#tstext").text("Location: Beijing, China ");
			showflash(tsid);
			break;
					
		case "0531_asms":
			$("#tstitle").text("CISILE");
			$("#tstext").text("Location: Beijing, China ");
			showflash(tsid);
			break;
					
		case "0606_achema":
			$("#tstitle").text("Achema 2009");
			$("#tstext").text("Location: Frankfurt, Germany ");
			showflash(tsid);
			break;
					
		case "0609_eastpack":
			$("#tstitle").text("East Pack 2009");
			$("#tstext").text("Location: New York, United States ");
			showflash(tsid);
			break;		
					
		case "1026_chinapharma":
			$("#tstitle").text("China Pharm 2009");
			$("#tstext").text("Location: Shanghai, China  ");
			showflash(tsid);
			break;					
					
		default:
			/*$("h6").text();*/
	}

	function showflash(traceshow) {
		flashembed("showflash", "tradeshows/slideshowpro.swf",
				{ paramXMLPath: tspath + traceshow + '/param.xml' });
	};
});
