//////////////
// INCLUDE Function
tsj=[];
tsj.path='../dhtml/';
if (typeof(ts_codebase)!="undefined"){
	tsj.path=ts_codebase;
}
tsj.setPath=function(path){
	if (path.substring(path.length-1)!='/' && path!='')
		path+='/';
	tsj.path=path;
}
tsj.include=function(js){
	js=js.replace(/\./g,'\/');
	//alert(tsj.path+js);
	document.write('<script language="javascript" type="text/javascript" src="'+tsj.path+js+'.js"><\/script>');
}


sj_resource = new Object();
sj_resource.getResource  = function(inString){
var res = inString;
	for (var key in this) {
		if (typeof key == 'string') {
			var old;
			do {
				old = res;
				res = res.replace('%' + key + '%', this[key]);
			} while (old != res);
		}
	}

	return res;
}

tsj.include('include.sj_resource');
tsj.include('include.sj_config');
tsj.include('include.sj_browser');
tsj.include('include.sj_core');
tsj.include('include.sj_textloader');
tsj.include('include.sj_hashtable');
tsj.include('include.sj_element');
tsj.include('include.sj_layer');
tsj.include('include.sj_picture');
tsj.include('include.sj_zoom');
tsj.include('include.ts_zoomviewer');