/**************************************************************************************************
	DICTIONARY.JS [SITE-MANAGER]
**************************************************************************************************/
//* create dectionary object
var $SITE	= {};
var siteDic	= {};

try {
	var dicdom = new ActiveXObject("Microsoft.XMLDOM");
	dicdom.async=false;
	dicdom.load("\\site\\HE\\dictionary.xml")

	// get related node
	var dicsec = dicdom.selectNodes('//DICTIONARY/*');
		
		
	// text section reference
	var sectxt;

	// loop through text nodes
	while(sectxt = dicsec.nextNode()) {
		// create a new text object
		$SITE[sectxt.nodeName] = {};

		// get attribute reference
		var txtatts = sectxt.attributes;

		// attribute reference
		var attr;

		// loop through all attributes
		while(attr = txtatts.nextNode()) {
			// fill the dictionary object
			$SITE[sectxt.nodeName][attr.nodeName]=attr.nodeValue;
		}
	}
	for(var x in $SITE){
		try{
			siteDic[x] = $SITE[x][lang]
		}
		catch(e){
			alert('$SITE ERROR:=' + e.description);
		}
	}
}
catch(e){
	alert('siteDic ERROR:=' + e.description);
}
