//////////////
// INCLUDE Function
sj=[];
sj.path='../dhtml/';
if (typeof(sj_codebase)!="undefined"){
	sj.path=sj_codebase;
}
sj.setPath=function(path){
	if (path.substring(path.length-1)!='/' && path!='') 
		path+='/'; 
	sj.path=path;
}
sj.include=function(js){
	js=js.replace(/\./g,'\/');
	document.write('<script language="javascript" type="text/javascript" src="'+sj.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;
} 


sj.include('include.sj_resource')
sj.include('include.sj_config')
sj.include('include.sj_browser')
sj.include('include.sj_core')
sj.include('include.sj_textloader')
sj.include('include.sj_hashtable')
sj.include('include.sj_element')
sj.include('include.sj_layer')
sj.include('include.sj_picture')
sj.include('include.sj_zoom')
sj.include('include.sj_zoomviewer')
