 function ShowEnlarged(cx,cy,wd,ht, src,title,alt,border,hspace,vspace)
    {
      var ow,dx,dy;
      dx=wd+2*(border+hspace);
      dy=ht+2*(border+vspace);
      ow=window.open("about:blank","_blank","left="+cx+",top="+cy+",width="+dx+",height="+dy+",status=no,menubar=no,titlebar=no,scrollbars=no,resizable=no,location=no,top=50,left=90");
      ow.document.write("<TITLE>"+title+"</TITLE>");  
      ow.document.write("<BODY topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0>");  
      ow.document.write("<IMG src='"+src+"' alt='"+alt+"' border="+border+" hspace="+hspace+" vspace="+vspace+">");  
      ow.document.write("</BODY>");  
    }
//--------------------------------------------------------
 function ToggleChilds(cfl)
   {
      var pmas=["Img/standart_plus.gif",  "Img/standart_minus.gif",
                "Img/g_standart_plus.gif","Img/g_standart_minus.gif"];
      var id  = event.srcElement.parentElement.id;
      var obj = document.getElementById("m"+id.substring(1));

      if (obj.style.display=="none")
      {	
		 	obj.style.display="block";
		 	event.srcElement.src=pmas[2*cfl+1]; 
      }
      else
      {
           obj.style.display="none";
		   event.srcElement.src=pmas[2*cfl];
      } 
      event.cancelBubble=true;
   }
//--------------------------------------------------------
 function ChVersion(lngcode,selcode)
  {
    //alert("ch");
    location.href="default.php?language="+lngcode+"&sl="+selcode;
  }	
//--------------------------------------------------------
 function MenuAction(url) {MenuClick(event.srcElement,url)}
 function MenuClick(item,url)
  {
     var id=item.id.substring(1);
     var url;
     
     var obj=document.getElementById("m"+id);

     SelectItem(item);
     if (!url)
     {
	 	// url='about:blank';
		//location.href=url;
	 }
     else
	 {
	 	if(url.indexOf("?id=") != -1){location.href=url;}
		else{location.href=url+"?id="+item.id.substring(1);}
	}
 
  }
//--------------------------------------------------------
 function SelectItem(obj)
   {
   	if(obj){
     if (sel) document.getElementById("c"+sel).className="mn";
     obj.className="mnsel";
     sel=obj.id.substring(1);
	}
   }  
//--------------------------------------------------------
