﻿


// JScript File
function SchreibeQuadrate () {
  var SinnDesLebens = 42;
  var i, x;
  var Satzteil = "Das Quadrat von ";
  for (i = 1; i <= SinnDesLebens; ++i) {
    x = i * i;
    document.write(Satzteil + i + " ist " + x + "<br>");
  }
}
function CreateMenu (lang, num)
{


   var sname="Products";
   
   
       var station = new Array('Tungsten Powder','Tungsten Carbide Powder','Ready-to-Press Powder','Blue Tungsten Oxide','Tungsten Trioxide','Ammonium Paratungstate','Molybdenum Metal','Ferro Tungsten','Pure Tungsten Metal','Tungsten Carbide Scraps');
    var links=new Array('./tmp.htm', './tcp.htm','./rtp.htm','./bto.htm','./yto.htm','./apt.htm','./mm.htm', './ft.htm','./ptm.htm','./tcs.htm');
    if(lang==1)
    {
        sname="Produkte";
        station = new Array('Wolframmetallpulver','Wolfram-Karbid Pulver','Ready-to-Press Pulver','Blaues Wolframoxid','Wolframtrioxid','Ammonium Paratungstate','Molybdän Stäbe','Ferro Wolfram','Rein Wolfram Stäbe','Hartmetall Schrott');
        links=new Array('./tmpger.htm', './tcpger.htm','./rtpger.htm','./btoger.htm','./ytoger.htm','./aptger.htm','./mmger.htm', './ftger.htm','./ptmger.htm','./tcsger.htm');
    }
   
   /*
    var station = new Array('Molybdenum Metal','Ferro Tungsten','Pure Tungsten Metal','Tungsten Carbide Scraps');
    var links=new Array('./mm.htm', './ft.htm','./ptm.htm','./tcs.htm');
    if(lang==1)
    {
        sname="Produkte";
        station = new Array('Molybdän Stäbe','Ferro Wolfram','Rein Wolfram Stäbe','Hartmetall Schrott');
        links=new Array('./mmger.htm', './ftger.htm','./ptmger.htm','./tcsger.htm');
    }*/
    document.write("<div class=\"nav\">");
    document.write("<ul>");    
    document.write("<li><b>"+ sname +"</b></li>");

    for(count=0;count<10;count++) {
          if(count == num)
          {
            document.write("<li>"+station[count]+"</li>");
          }
          else
          {
            document.write("<li><a href=\""+links[count]+"\">"+station[count]+"</a></li>");
          }
    }
     document.write("</ul></div>");
}

function CreateFooter()
{
document.write("<br/><br/><br/><div id=\"footer\">");
document.write("Copyright &copy; 2010 Tima Tungsten GmbH     Design by <a href=\"http://www.myeuro.net\" target=\"window\">MyEuro.Net</a></div>");
document.write("</div>");
}

function CreateTop()
{
       document.write("<div id=\"toph\"></div>");      
        document.write("<div id=\"header\">");
            document.write("<div class=\"rside\">");
                document.write("<div class=\"citation\">");
                    document.write("Tima Tungsten GmbH</div>");
            document.write("</div>");
            document.write("<div class=\"lside\">");
                document.write("<div class=\"title\">");
                document.write("</div>");
            document.write("</div>");
        document.write("</div>");
}

function CreateTopMenu(lang,num)
{
   var sname="Products";
    var station = new Array('Home','About Us','Contact','Imprint');
    var links=new Array('./index.htm', './aboutus.htm','./contact.htm','./imprint.htm');
    if(lang==1)
    {
     station = new Array('Home','Über uns','Kontakt','Impressum');
     links=new Array('./indexger.htm', './ueberuns.htm','./kontakt.htm','./impressum.htm');
    }
    
        document.write("<div class=\"topmenu\">");
            document.write("<div class=\"menudiv\" id=\"menu\">");
                document.write("<div id=\"Div1\" class=\"float_left width_e\">");
                   document.write("&nbsp;</div>");
                document.write("<div class=\"float_left width_a\">");
                    document.write("<a href=\"" +links[0] +"\" class=\"menu\" title=\""+station[0]+"\">"+station[0]+"</a></div>");
                document.write("<div class=\"float_left width_b\" id=\"domain_nav\">");
                   document.write("<a href=\"" +links[1] +"\" class=\"menu\" title=\""+station[1]+"\">"+station[1]+"</a></div>");
                document.write("<div id=\"hosting_nav\" class=\"float_left width_b\">");
                   document.write("<a href=\"" +links[2] +"\" class=\"menu\" title=\""+station[2]+"\">"+station[2]+"</a></div>");
                document.write("<div id=\"mail_nav\" class=\"float_left width_b\">");
                   document.write("<a href=\"" +links[3] +"\" class=\"menu\" title=\""+station[3]+"\">"+station[3]+"</a></div>");
                document.write("<div id=\"Div2\" class=\"float_left width_f\">");
                    document.write("&nbsp;</div>");
    //  if(lang==1)
   
                document.write("<div class=\"float_left width_c\"><a href=\"index.htm\">");
                    
                        document.write("<img src=\"./images/engfl.gif\" border=\"0\" class=menuflag></a>");
               document.write("</div>");
              document.write("<div class=\"float_left width_c\">");
                   document.write("<a href=\"indexger.htm\">");
                       document.write("<img src=\"./images/gerfl.gif\" border=\"0\" class=menuflag></a>");
                       
                document.write(" </div>");
           
   /*           else
              {
                              document.write("<div class=\"float_left width_c\">");
                    
                        document.write("<img src=\"./images/engfl.gif\" border=\"0\" class=menuflag>");
                document.write("</div>");
                document.write("<div class=\"float_left width_c\">");
                    document.write("<a href=\"indexger.htm\" class=\"menu\">");
                       document.write("<img src=\"./images/gerfl.gif\"  class=menuflag>");
                   document.write(" </a>");
               document.write(" </div>");
              }*/
                document.write("<div class=\"float_right\">");
                    document.write("<img src=\"images/topmenu_right.gif\"></div>");
                document.write("<div class=\"clear\">");
                document.write("</div>");
           document.write(" </div>");
        document.write("</div>");
}


