function nvweb_menu_load_dictionary()
{
	global $DB;	
	global $structure;
	global $current;
	global $website;
			
	if(empty($structure['dictionary']))
	{
		$structure['dictionary'] = array();

		$DB->query('SELECT node_id, text
					  FROM nv_webdictionary 
					 WHERE node_type = "structure"
					   AND subtype = "title" 
					   AND lang = '.protect($current['lang']).'
					   AND website = '.$website->id);		
					
		$data = $DB->result();
		
		if(!is_array($data)) $data = array();
		$dictionary = array();
		
		foreach($data as $item)
		{
			$structure['dictionary'][$item->node_id] = $item->text;
		}
	}
}
