document.onclick = function() {
	if( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("dropdown")){
		 _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("dropdown").style.display = "none";
		dropheight =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("dropdown").offsetHeight;
		 _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("langbar").height = dropheight;
	}
}

function InitLangDropdown() {
	var o =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("trigger");
	var dropdown =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("dropdown");
	o.onclick = function(e) {
		 _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("dropdown").style.display = "block";
		(e || event).cancelBubble = true;
		dropheight =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("dropdown").offsetHeight;
		
		//alert(dropheight);
		 _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("langbar").height = dropheight +3;
	}
	
	var nodes =  _proxy_jslib_handle( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("dropdown"), 'getElementsByTagName', '', 1, 0)("a");
	for(var i=0;i<nodes.length;i++){
		 _proxy_jslib_handle(nodes, (i), 0, 0).onclick = function(e) {
			 _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("dropdown").style.display = "none";
			(e || event).cancelBubble = true;
		}
	}
} ;
_proxy_jslib_flush_write_buffers() ;