

	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// INITIALIZATION LIBRARY / NEGORA © 2007
	//
	// Description: General purpose constants.
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// INITIALIZATION
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	function Init () {
		
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		// ATTRIBUTES AND CONSTRUCTORS
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		
		this.syspath =  "";
		this.lang = "";
		this.flashver = "";
		
		this.initPath ();
		this.initConf ();

	}
	
	
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		// INIT METHODS
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			// SYSTEM PATH
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			
			Init.prototype.initPath = function () {
				var arr_script = document.documentElement.getElementsByTagName ("script");
				var count = 0;
				while (count < arr_script.length && arr_script [count].src.indexOf ("sys/js/init.js") == -1) {
					count++;
				}
				this.syspath =  arr_script [count].src.replace ("js/init.js", "");
			}
			
			
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			// LANGUAGE AND FLASH VERSION
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		
			Init.prototype.initConf = function () {
				var xml_conf = CliXML.loadGET (this.syspath + "conf.xml");
				this.lang = CliXML.getByXPath (xml_conf, "/ conf [1] / lang [1] / @default").value;
				this.flashver = CliXML.getByXPath (xml_conf, "/ conf [1] / flash-ver [1] / text () [1]").nodeValue;
			}
	
	
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		// METHODS
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		
		
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			// IT GETS THE SYSTEM PATH
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////	
			
			Init.prototype.getSysPath = function () {
				return this.syspath;
			}
			
			
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			// IT GETS / SETS THE LANGUAGE OF THE SITE
			//
			// _lang					Language ID																			S
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////	
			
			Init.prototype.getLang = function () {
				return this.lang;
			}
			
			Init.prototype.setLang = function (_lang) {
				this.lang = _lang;
				this.initConf ();
			}
			
			
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			// IT GETS THE FLASH VERSION USED ON THE SITE
			/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////	
			
			Init.prototype.getFlashVer = function () {
				return this.flashver;
			}
			
			
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		// AUTO-INSTANCE
		/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
			
		$INIT = new Init ();
		
		
