function hideCircleTop(obj) {
   if (typeof obj == 'undefined')
       return false;
	var Node = obj.parentNode.parentNode; 
	var selected = Node.getAttribute('selectednode');
	if (selected == 'false')
		 Node.className = 'menu_d_g';
   return true;
}

function showCircleTop(obj) {
  if (typeof obj == 'undefined')
       return false;
   obj.parentNode.parentNode.className = 'menu_d_s';
   return true;
}

function ShowPicture(pic, w, h, title, noinfo) {
    var winW = w;
    var winH = h;

   var vieWin = window.open('', '_blank', "top=100,left=100,width="+(winW)+",height="+(winH)+",status=0");
       vieWin.document.clear();
       vieWin.document.writeln('<html>');
       vieWin.document.writeln('<head>');
       vieWin.document.writeln('<title>'+title+'</title>');
       vieWin.document.writeln('</head>');
       vieWin.document.writeln('<body bgcolor="#FFFFFF" style="margin:0px">');
       vieWin.document.writeln('<img onclick="window.close();" title="Закрыть окно" src="'+pic+'" width="'+w+'" height="'+h+'" border="0" vspace="0" style="cursor:hand;cursor:pointer;" />');
       vieWin.document.writeln('</body>');
       vieWin.document.writeln('</html>');
       vieWin.document.close();
   return false;
}


  function ShowLight(obj) {
				  if (typeof obj == 'undefined')
						return false;
				  var src = obj.getAttribute('src');
				  src = src.replace(/([^\/.]+)(\.[a-z]+)$/i, '$1' + '-1' + '$2');
				  obj.setAttribute('src', src);
				  return true;
  }
  
  function HideLight(obj) {
		if (typeof obj == 'undefined')
			 return false;
		var src = obj.getAttribute('src');
		src = src.replace(/([^\/.]+)-\d(\.[a-z]+)$/i, '$1' + '$2');
		obj.setAttribute('src', src);
		return true;
  }
  
  function ShowLang(obj) {
      if (typeof obj == 'undefined')
          return false;
      var src = obj.getAttribute('src');
      src = src.replace(/([^\/.]+)-\d(\.[a-z]+)$/i, '$1' + '-1' + '$2');
      obj.setAttribute('src', src);
      return true;
  }
  
  function HideLang(obj, state) {
		if (typeof obj == 'undefined')
			 return false;
      var imageIndex;
      imageIndex = '3';
      if (state == 'true')
          imageIndex = '2';
		var src = obj.getAttribute('src');
      var activeIndex;
		src = src.replace(/([^\/.]+)-\d(\.[a-z]+)$/i, '$1' + '-' + imageIndex + '$2');
		obj.setAttribute('src', src);
		return true;
  }
  
   /* function checkBack() {
		var cont = document.getElementById('main_back_section_small');
		if (typeof cont=='undefined')
			 return false;
		var height = cont.offsetHeight;
		if (parseInt(height) > 1000) 
			 cont.setAttribute('id', 'main_back_section');
		if (parseInt(height) < 500 ) {
			 var cont_b = document.getElementById('content_section_back');
			 if (typeof cont_b != 'undefined')
				  cont_b.style.height = '500px';
		}
		return true;
  } */


