var current_goroda = 0;
function fillIt(num, goroda) {
         
	 
	document.getElementById('goroda_desc').innerHTML = goroda[num];
	//document.getElementById('goroda_title').innerHTML = num;
	var question = document.getElementById('lbf'+current_goroda).innerHTML;
	var cut = question.substr(0, 27);
	if(cut.length >= 27){
		if(question.charAt(cut.length)!=' '){
			cut = cut.substr(0, cut.lastIndexOf(' '));
		}
		cut = cut + '...?';
	}
	document.getElementById('goroda_title').innerHTML = cut;
}
var current_goroda_ll = 0;
function fillIt_ll(num, goroda) {

 var current_goroda_ll = 'lbf' + num;
 var elem = document.getElementById(current_goroda_ll);
 var menuNodes = document.getElementById('gorodaMenu').childNodes;

 for (i = 0; i < menuNodes.length; i++) {
   if (menuNodes[i].tagName == 'LI') {
       var childs = menuNodes[i].childNodes;
       for (n = 0; n < childs.length; n++) {
          if (childs[n].tagName == 'A') {
              var menuItem = document.getElementById(childs[n].id);
              if (childs[n].id == current_goroda_ll) {
                  menuItem.style.fontWeight     = 'bold';
                  menuItem.style.textDecoration = 'none';
              } else {
                  menuItem.style.fontWeight     = 'normal';
                  menuItem.style.textDecoration = 'underline';
              }
          }
       }
   }
 }
        
/*        for (k = 1;k<6;k++){ 
            if (k==num){		
                  document.getElementById('lbf'+k).style.fontWeight = 'bold';
                  document.getElementById('lbf'+k).style.textDecoration = 'none';
            }
            else {
                document.getElementById('lbf'+k).style.fontWeight = 'normal';
                document.getElementById('lbf'+k).style.textDecoration = 'underline';
            }
        }
*/
        
	document.getElementById('goroda_desc').innerHTML = goroda[num];
	var question_ll = document.getElementById('lbf'+num).innerHTML;
	document.getElementById('goroda_title').innerHTML = question_ll;
}

