<!--

 function linka(fomenu)
  {
//    alert(lang);
    document.title="Trust Hungary";
    var kep="q";
    var foifo="q";
    var alme="q";
 //   alert(fomenu);
    switch (fomenu) 
     {
       case 1:  kep="kepek/news.gif";  
                foifo="php/news.php?l="+lang+"&w=n";         
//                foifo="develop.php";         
                alme="uresalmenu.php"; 
                break;

       case 2:  kep="kepek/our-commitment.gif"; 
                foifo="ourcomm.php?l="+lang;
                alme="uresalmenu.php"; 
                break;

       case 3:  kep="kepek/cooperage.gif";      
                foifo="cooperage.php?l="+lang;        
                alme="uresalmenu.php"; 
                break;

       case 4:  kep="kepek/large-265.gif"; 
                foifo="products.php?l="+lang;         
                alme="almenu_products.inc.php?l="+lang; 
                break;

       case 5:  kep="kepek/buying-logs.gif"; 
                foifo="manufacturing.php?l="+lang;    
                alme="almenu_manufacturing.inc.php?l="+lang; 
                break;

       case 6:  kep="kepek/brochure.gif"; 
                foifo="brochure.php?l="+lang;    
                alme="uresalmenu.php"; 
                break;

       case 7:  kep="kepek/resellers.gif"; 
                foifo="resellers.php?l="+lang;    
                alme="uresalmenu.php"; 
                break;

       case 8:  kep="kepek/price-request-form.gif"; 
                foifo="pqr.php?l="+lang;    
                alme="uresalmenu.php"; 
                break;

       case 9:  kep="kepek/award.gif"; 
                foifo="award.php?l="+lang;    
                alme="uresalmenu.php"; 
                break;

       case 10: kep="kepek/map.gif"; 
                foifo="contact.php?l="+lang;    
                alme="uresalmenu.php"; 
                break;

     }

//      alert(alme);
//    alert(kep);
//    alert(foifo);
//    alert(alme);
    document.images["balkep"].src=kep;

//    alert(document.frames);
    document.getElementById("foif").src=foifo;
//    document.frames['foif'].location.href=foifo;
//    alert(document.frames['foif'].location.href);

//      alert(document.getElementById("almenu").src);
//    alert(document.frames['almenu'].location.href);
    document.getElementById("almenu").src=alme;
//    document.frames['almenu'].location.href=alme;
//    alert(alme);
//    alert(document.frames['almenu'].location.href);
    return true;
  }

 function allink(fomenu)
  {
    document.title="Trust Hungary";
    var kep="q";
    var foifo="q";
    switch (fomenu) 
     {

       case 41: kep="kepek/burgundy-export.gif"; 
                foifo="products.php?t=burg&l="+lang;         
                break;

       case 42: kep="kepek/bordeaux-export.gif"; 
                foifo="products.php?t=bord&l="+lang;         
                break;

       case 43: kep="kepek/large-265.gif"; 
                foifo="products.php?t=large&l="+lang;         
                break;

       case 51: kep="kepek/buying-logs.gif"; 
                foifo="manufacturing.php?am=1&l="+lang;         
                break;

       case 52: kep="kepek/split-wood.gif"; 
                foifo="manufacturing.php?am=2&l="+lang;         
                break;

       case 53: kep="kepek/seasoning.gif "; 
                foifo="manufacturing.php?am=3&l="+lang;         
                break;

       case 54: kep="kepek/irrigation.gif"; 
                foifo="manufacturing.php?am=4&l="+lang;         
                break;

       case 55: kep="kepek/coopering.gif"; 
                foifo="manufacturing.php?am=5&l="+lang;         
                break;

       case 56: kep="kepek/pre-heating.gif"; 
                foifo="manufacturing.php?am=6&l="+lang;         
                break;

       case 57: kep="kepek/toasting.gif"; 
                foifo="manufacturing.php?am=7&l="+lang;         
                break;

       case "4burg1":  kep="kepek/burgundy-export.gif"; 
                  foifo="products.php?t=burg&h=1&l="+lang;
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4burg2":  kep="kepek/burgundy-traditional.gif"; 
                  foifo="products.php?t=burg&h=2&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4burg3":  kep="kepek/drouhin.gif"; 
                  foifo="products.php?t=burg&h=3&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4bord1":  kep="kepek/bordeaux-export.gif"; 
                  foifo="products.php?t=bord&h=1&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4bord2":  kep="kepek/chateau-traditional.gif"; 
                  foifo="products.php?t=bord&h=2&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4bord3":  kep="kepek/chateau-ferre.gif"; 
                  foifo="products.php?t=bord&h=3&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4bord4":  kep="kepek/bordeaux-export.gif"; 
                  foifo="products.php?t=bord&h=4&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4large1":  kep="kepek/large-265.gif"; 
                  foifo="products.php?t=large&h=1&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4large2":  kep="kepek/large-300.gif"; 
                  foifo="products.php?t=large&h=2&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4large3":  kep="kepek/large-400.gif"; 
                  foifo="products.php?t=large&h=3&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;

       case "4large4":  kep="kepek/large-500.gif"; 
                  foifo="products.php?t=large&h=4&l="+lang;    
                  alme="almenu_products.inc.php?l="+lang; 
                  break;
     }

 
//    alert(window.parent.images);
    parent.document.getElementById("balkep").src=kep;
//    parent.document.images["balkep"].src=kep;
//    alert(parent.document.getElementById("foif").src);
    parent.document.getElementById("foif").src=foifo;
//    parent.document.frames['foif'].location.href=foifo;
//    alert(parent.frames['foif'].location.href);
//    alert(alme);
//    alert(document.frames['almenu'].location.href);
    return true;
  }



var detect = navigator.userAgent.toLowerCase();
var OS,browser,version;
var version,total,thestring;

function DetectBrowser()
 {

   if (checkIt('konqueror'))
    {
      browser = "Konqueror";
      OS = "Linux";
    } else if (checkIt('safari')) browser = "Safari"
      else if (checkIt('omniweb')) browser = "OmniWeb"
      else if (checkIt('opera')) browser = "Opera"
      else if (checkIt('webtv')) browser = "WebTV";
      else if (checkIt('icab')) browser = "iCab"
      else if (checkIt('msie')) browser = "Internet Explorer"
      else 
       if (!checkIt('compatible'))
        {
          browser = "Netscape Navigator"
	  version = detect.charAt(8);
        }
         else 
        {
          browser = "An unknown browser";
        }

   if (!version) version = detect.charAt(place + thestring.length);
   if (!OS)
    {
      if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS="an unknown operating system";
    }
 }

function checkIt(string)
 {
   place = detect.indexOf(string) + 1;
   thestring = string;
   return place
 }

function CenteredOpenWin(linka,name,settings)
 {
   DetectBrowser();
   var sw=screen.width;
   var hw=screen.height;
   var win_w=780;
   var win_h=540;
   var settings="scrollbars=no,width="+win_w+",height="+win_h+",";
   if (hw<=600) 
    {
      var bal_felso_x=(sw-win_w)/2-5; 
      // a -5 az ablak kerete miatt van
      var bal_felso_y=(hw-win_h)/2-28;
    } else
    {
      var bal_felso_x=(sw-win_w)/2; 
      var bal_felso_y=(hw-win_h)/2;
    }
   if (browser=="Netscape Navigator")
    { settings+="screenX="+bal_felso_x+",screenY="+bal_felso_y; } else
    { settings+="left="+bal_felso_x+",top="+bal_felso_y; } 
//   alert(settings);
   x=window.open(linka,name,settings);
 }

function show(y,x)
 {
//   alert(y);
//   alert(x);
   for (i=0; i<50; i++)
    {
     var d=document.getElementById("id"+i); 
     if (d) { d.style.display = 'none'; }
    }  
//   x=x+1;
   var d=document.getElementById("id"+x);
//   alert(x);
//   alert(d.style);
   d.style.display = 'block';
 }	

-->